Files
dsrc/sku.0/sys.server/compiled/game/script/npc/celebrity/leia.java
T
2018-06-07 00:32:29 +01:00

28 lines
826 B
Java
Executable File

package script.npc.celebrity;
import script.dictionary;
import script.library.ai_lib;
import script.obj_id;
public class leia extends script.base_script
{
public leia()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL);
debugSpeakMsg(self, "Aren't you a little short for a stormtrooper?");
messageTo(self, "handleAttachConvoScript", null, 1, false);
return SCRIPT_CONTINUE;
}
public int handleAttachConvoScript(obj_id self, dictionary params) throws InterruptedException
{
if ((getCreatureName(self)).equals("leia_organa"))
{
attachScript(self, "conversation.rtp_leia_main");
}
return SCRIPT_CONTINUE;
}
}