mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
Fixed bug that allowed some things in the Tutorial to be searched for eggs.
This commit is contained in:
Regular → Executable
+7
-13
@@ -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;
|
||||
}
|
||||
|
||||
Regular → Executable
+7
-13
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user