package script.working.wwallace; import script.dictionary; import script.library.create; import script.location; import script.obj_id; public class lamdatest extends script.base_script { public lamdatest() { } public int OnAttach(obj_id self) throws InterruptedException { debugSpeakMsg(self, "attached"); detachScript(self, "ai.ai"); detachScript(self, "ai.creature_combat"); detachScript(self, "skeleton.humanoid"); detachScript(self, "systems.combat.combat_actions"); detachScript(self, "systems.combat.credit_for_kills"); stop(self); setName(self, "Stormtrooper Transport"); setPosture(self, POSTURE_PRONE); messageTo(self, "spawnSts", null, 17, true); queueCommand(self, (-1465754503), self, "", COMMAND_PRIORITY_FRONT); return SCRIPT_CONTINUE; } public int changePosture(obj_id self, dictionary params) throws InterruptedException { debugSpeakMsg(self, "upright"); setPosture(self, POSTURE_UPRIGHT); return SCRIPT_CONTINUE; } public int spawnSts(obj_id self, dictionary params) throws InterruptedException { location spawnLoc = getLocation(self); create.createCreature("stormtrooper", spawnLoc, true); create.createCreature("stormtrooper", spawnLoc, true); create.createCreature("stormtrooper", spawnLoc, true); create.createCreature("stormtrooper", spawnLoc, true); create.createCreature("stormtrooper", spawnLoc, true); messageTo(self, "changePosture", null, 5, false); return SCRIPT_CONTINUE; } }