Files
dsrc/sku.0/sys.server/compiled/game/script/event/gcwlaunch/gcwlaunch.java
T

42 lines
1.6 KiB
Java
Executable File

package script.event.gcwlaunch;
import script.dictionary;
import script.library.locations;
import script.location;
import script.obj_id;
public class gcwlaunch extends script.base_script
{
public gcwlaunch()
{
}
public static final String SHUTTLE = "object/creature/npc/theme_park/player_shuttle.iff";
public static final String ESCORT = "wookiee_brawler";
public static final String CELEB = "trandoshan_slavemaster";
public static final String STF_FILE = "event/ep3_trando_herald";
public static final float ONE_HOUR = 60 * 60;
public int OnInitialize(obj_id self) throws InterruptedException
{
location here = getLocation(self);
String myRegion = locations.getGuardSpawnerRegionName(here);
if (myRegion.equals("@naboo_region_names:theed") || myRegion.equals("@tatooine_region_names:bestine") || myRegion.equals("@corellia_region_names:coronet") || myRegion.equals("@tatooine_region_names:anchorhead"))
{
removeObjVar(self, "event");
removeObjVar(self, "auto_invasion");
messageTo(self, "repurposeToNewGCWEvents", null, 30, false);
}
return SCRIPT_CONTINUE;
}
public int repurposeToNewGCWEvents(obj_id self, dictionary params) throws InterruptedException
{
attachScript(self, "event.gcwraids.gcwraid");
messageTo(self, "detachGCWLaunchScript", null, 30, false);
return SCRIPT_CONTINUE;
}
public int detachGCWLaunchScript(obj_id self, dictionary params) throws InterruptedException
{
detachScript(self, "event.gcwlaunch.gcwlaunch");
return SCRIPT_CONTINUE;
}
}