mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-02 02:15:48 -04:00
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package script.theme_park.recruitment;
|
|
|
|
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.ai_lib;
|
|
|
|
public class respawner extends script.base_script
|
|
{
|
|
public respawner()
|
|
{
|
|
}
|
|
public int OnAttach(obj_id self) throws InterruptedException
|
|
{
|
|
stop(self);
|
|
ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnInitialize(obj_id self) throws InterruptedException
|
|
{
|
|
stop(self);
|
|
ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnDestroy(obj_id self) throws InterruptedException
|
|
{
|
|
obj_id master = getObjIdObjVar(self, "spawner");
|
|
String job = getStringObjVar(self, "job");
|
|
removeObjVar(master, job);
|
|
String message = job + "Died";
|
|
messageTo(master, message, null, 10, true);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|