mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
28 lines
861 B
Java
Executable File
28 lines
861 B
Java
Executable File
package script.holocron;
|
|
|
|
import script.dictionary;
|
|
import script.obj_id;
|
|
|
|
public class datapad_entry extends script.base_script
|
|
{
|
|
public datapad_entry()
|
|
{
|
|
}
|
|
public int OnGetAttributes(obj_id self, obj_id player, String[] names, String[] attribs) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnDestroy(obj_id self) throws InterruptedException
|
|
{
|
|
if (hasObjVar(self, "hasClientPath"))
|
|
{
|
|
destroyClientPath(getObjIdObjVar(self, "hasClientPath"));
|
|
removeObjVar(self, "hasClientPath");
|
|
}
|
|
dictionary params = new dictionary();
|
|
params.put("name", getStringObjVar(self, "newbie_handoff.name"));
|
|
messageTo(getObjIdObjVar(self, "newbie_handoff.player"), "removeDatapadEntryData", params, 0, true);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|