mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
42 lines
1.6 KiB
Java
Executable File
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;
|
|
}
|
|
}
|