From 36cd401b73fc2cda8417b1fc9556c8ea71f15c77 Mon Sep 17 00:00:00 2001 From: Cekis Date: Wed, 13 Jul 2016 23:39:25 +0100 Subject: [PATCH] Fixed bug that allowed some things in the Tutorial to be searched for eggs. --- .../game/script/npe/npe_target_crate.java | 20 +++++++------------ .../npe/npe_tutorial_door_terminal.java | 20 +++++++------------ 2 files changed, 14 insertions(+), 26 deletions(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/npe/npe_target_crate.java mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/npe/npe_tutorial_door_terminal.java diff --git a/sku.0/sys.server/compiled/game/script/npe/npe_target_crate.java b/sku.0/sys.server/compiled/game/script/npe/npe_target_crate.java old mode 100644 new mode 100755 index 5a6e35800..4470be5a0 --- a/sku.0/sys.server/compiled/game/script/npe/npe_target_crate.java +++ b/sku.0/sys.server/compiled/game/script/npe/npe_target_crate.java @@ -1,19 +1,9 @@ package script.npe; -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.create; +import script.dictionary; import script.library.utils; -import script.library.npe; -import script.library.groundquests; -import script.library.sequencer; -import script.library.static_item; +import script.location; +import script.obj_id; public class npe_target_crate extends script.base_script { @@ -22,11 +12,15 @@ public class npe_target_crate extends script.base_script } public int OnAttach(obj_id self) throws InterruptedException { + // prevent crate from being searched for eggs (ya, exploit). + utils.setScriptVar(self, "lair.searched",1); setInvulnerable(self, true); return SCRIPT_CONTINUE; } public int OnInitialize(obj_id self) throws InterruptedException { + // prevent crate from being searched for eggs (ya, exploit). + utils.setScriptVar(self, "lair.searched",1); setInvulnerable(self, true); return SCRIPT_CONTINUE; } diff --git a/sku.0/sys.server/compiled/game/script/npe/npe_tutorial_door_terminal.java b/sku.0/sys.server/compiled/game/script/npe/npe_tutorial_door_terminal.java old mode 100644 new mode 100755 index d812d6bc2..890e4e040 --- a/sku.0/sys.server/compiled/game/script/npe/npe_tutorial_door_terminal.java +++ b/sku.0/sys.server/compiled/game/script/npe/npe_tutorial_door_terminal.java @@ -1,19 +1,9 @@ package script.npe; -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.create; +import script.dictionary; import script.library.utils; -import script.library.npe; -import script.library.groundquests; -import script.library.sequencer; -import script.library.static_item; +import script.location; +import script.obj_id; public class npe_tutorial_door_terminal extends script.base_script { @@ -22,6 +12,8 @@ public class npe_tutorial_door_terminal extends script.base_script } public int OnAttach(obj_id self) throws InterruptedException { + // prevent door terminal from being searched for eggs (ya, exploit). + self.setScriptVar("lair.searched",1); obj_id building = getTopMostContainer(self); utils.setScriptVar(building, "objTerminal", self); setInvulnerable(self, true); @@ -29,6 +21,8 @@ public class npe_tutorial_door_terminal extends script.base_script } public int OnInitialize(obj_id self) throws InterruptedException { + // prevent door terminal from being searched for eggs (ya, exploit). + self.setScriptVar("lair.searched",1); obj_id building = getTopMostContainer(self); utils.setScriptVar(building, "objTerminal", self); setInvulnerable(self, true);