IN WORK - Space GCW - Most schematics in place, purchaseable and craftable - just components are not yet in place fully.

This commit is contained in:
Cekis
2018-01-31 01:09:20 +00:00
parent 20d55fac6d
commit d6e37e2e43
114 changed files with 8148 additions and 2043 deletions
+9 -5
View File
@@ -146,11 +146,15 @@ public class texture_kit extends script.base_script
if (utils.getContainingPlayer(shipId) == player && isIdValid(shipId))
{
String index = "/shared_owner/index_texture_1";
hue.setRangedIntCustomVar(shipId, index, texture);
string_id message = new string_id(STF, "changed_paint_job");
sendSystemMessage(player, message);
destroyObject(self);
utils.removeScriptVar(self, "paint_kit.inuse");
if(hue.setRangedIntCustomVar(shipId, index, texture)) {
string_id message = new string_id(STF, "changed_paint_job");
sendSystemMessage(player, message);
destroyObject(self);
}
else{
sendSystemMessage(player, "Sorry, we were unable to paint this ship.", null);
utils.removeScriptVar(self, "paint_kit.inuse");
}
}
return SCRIPT_CONTINUE;
}