Optimized older java - pre-nge stuff

This commit is contained in:
Cekis
2016-05-05 03:29:03 +01:00
parent 2b05675da2
commit a332a748c8
5 changed files with 216 additions and 288 deletions
+3 -11
View File
@@ -1,14 +1,7 @@
package script.holocron;
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.utils;
import script.dictionary;
import script.obj_id;
public class datapad_entry extends script.base_script
{
@@ -21,7 +14,6 @@ public class datapad_entry extends script.base_script
}
public int OnDestroy(obj_id self) throws InterruptedException
{
obj_id player = getObjIdObjVar(self, "newbie_handoff.player");
if (hasObjVar(self, "hasClientPath"))
{
destroyClientPath(getObjIdObjVar(self, "hasClientPath"));
@@ -29,7 +21,7 @@ public class datapad_entry extends script.base_script
}
dictionary params = new dictionary();
params.put("name", getStringObjVar(self, "newbie_handoff.name"));
messageTo(player, "removeDatapadEntryData", params, 0, true);
messageTo(getObjIdObjVar(self, "newbie_handoff.player"), "removeDatapadEntryData", params, 0, true);
return SCRIPT_CONTINUE;
}
}