Files
dsrc/sku.0/sys.server/compiled/game/script/npe/station_experience_manager.java
TekaohandGitHub 5c2e112349 Java 11.0.2 migration (#32)
* Code compiles - execution NOT tested

* updating gitignore

* Removed intellij settings files

* Removed more intellij files

* Added exclusion for JDK classes.

* Fixed purchasing script for vendors that have listed coin types.

* Updated script to not kick off until the entire preload is complete.

* adds static name entry for Solo movie poster and tcg9 vendor entry

* clean up empty and orphaned object templates

* adds placeholder black market (static) spawns

* corrects entries for the video game table to correctly set it in tcg series 2 and remove series 1 console errors

* Updated gitignore and removed intellij project files

* Fixed appearance reference for thranta payroll and kashyyyk door, added skipLosCheck objvar due to cannit see issue. Requires updated src

* Fixed appearance and template for terminal (#2)

* Fixed appearance and template for terminal (#3)

* Fixed appearance and template for terminal (#4)

* Deleted another faulty/orphaned object template

* Fixed gcw ranks option on frog. Only issue is that it doesn't award the officer commands or badges.

* Fixed some unneeded java 11 changes
2019-04-18 18:31:52 -05:00

76 lines
3.5 KiB
Java
Executable File

package script.npe;
import script.library.create;
import script.library.utils;
import script.location;
import script.obj_id;
public class station_experience_manager extends script.base_script
{
public station_experience_manager()
{
}
public int OnInitialize(obj_id self) throws InterruptedException
{
obj_id droidCell = getCellId(self, "dockingbay2");
location droidLoc = new location(92.0f, 0.8f, -11.4f, "thm_spc_nebula_orion_station", droidCell);
obj_id droidInvis = create.object("object/tangible/npe/npe_node.iff", droidLoc);
setName(droidInvis, "C-3P0");
setObjVar(droidInvis, "convo.appearance", "object/mobile/c_3po.iff");
utils.setScriptVar(self, "objDroidInvis", droidInvis);
obj_id elevator = getCellId(self, "elevator");
obj_id cloneLab = getCellId(self, "thrawn");
obj_id hangar01 = getCellId(self, "hangarbay1");
obj_id hangar02 = getCellId(self, "hangarbay2");
obj_id hall1 = getCellId(self, "hall1");
obj_id hall2 = getCellId(self, "hall2");
obj_id hall3 = getCellId(self, "hall3");
obj_id hall4 = getCellId(self, "hall4");
obj_id armory = getCellId(self, "armory");
obj_id ranged = getCellId(self, "cloninglab");
obj_id grenade = getCellId(self, "basementroom02");
obj_id cantina = getCellId(self, "cantina");
attachScript(hangar02, "npe.npe_notify_journal");
attachScript(cloneLab, "npe.npe_notify_clone");
attachScript(elevator, "npe.npe_notify_elevator");
attachScript(hangar01, "npe.npe_notify_objects");
attachScript(hall1, "npe.npe_notify_map");
attachScript(hall2, "npe.npe_notify_map");
attachScript(hall3, "npe.npe_notify_map");
attachScript(hall4, "npe.npe_notify_map");
attachScript(armory, "npe.npe_armory_spawning");
attachScript(ranged, "npe.npe_ranged_spawning");
attachScript(grenade, "npe.npe_notify_grenade");
setObjVar(cantina, "healing.canhealshock", true);
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
obj_id elevator = getCellId(self, "elevator");
obj_id cloneLab = getCellId(self, "thrawn");
obj_id hangar01 = getCellId(self, "hangarbay1");
obj_id hangar02 = getCellId(self, "hangarbay2");
obj_id hall1 = getCellId(self, "hall1");
obj_id hall2 = getCellId(self, "hall2");
obj_id hall3 = getCellId(self, "hall3");
obj_id hall4 = getCellId(self, "hall4");
obj_id armory = getCellId(self, "armory");
obj_id ranged = getCellId(self, "cloninglab");
obj_id grenade = getCellId(self, "basementroom02");
obj_id cantina = getCellId(self, "cantina");
attachScript(cloneLab, "npe.npe_notify_clone");
attachScript(hangar02, "npe.npe_notify_journal");
attachScript(elevator, "npe.npe_notify_elevator");
attachScript(hangar01, "npe.npe_notify_objects");
attachScript(hall1, "npe.npe_notify_map");
attachScript(hall2, "npe.npe_notify_map");
attachScript(hall3, "npe.npe_notify_map");
attachScript(hall4, "npe.npe_notify_map");
attachScript(armory, "npe.npe_armory_spawning");
attachScript(ranged, "npe.npe_ranged_spawning");
attachScript(grenade, "npe.npe_notify_grenade");
setObjVar(cantina, "healing.canhealshock", true);
return SCRIPT_CONTINUE;
}
}