who isn't sick of converting the freaking scripts? this negates the need

This commit is contained in:
DarthArgus
2015-11-24 09:27:45 -06:00
parent 2e64106bc8
commit bbee2d328c
11077 changed files with 2604347 additions and 3425075 deletions
@@ -0,0 +1,36 @@
package script.item.camp;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.library.travel;
public class shuttle_beacon extends script.base_script
{
public shuttle_beacon()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
messageTo(self, "handleInitializeShuttleBeacon", null, 3.0f, false);
return SCRIPT_CONTINUE;
}
public int handleInitializeShuttleBeacon(obj_id self, dictionary params) throws InterruptedException
{
obj_id parent = getObjIdObjVar(self, "theater.parent");
if (!isIdValid(parent))
{
return SCRIPT_CONTINUE;
}
String name = getName(parent);
setObjVar(self, travel.VAR_TRAVEL_POINT_NAME, name);
setObjVar(self, travel.VAR_TRAVEL_COST, 500);
attachScript(self, "structure.municipal.starport");
return SCRIPT_CONTINUE;
}
}