mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-14 23:07:51 -04:00
28 lines
826 B
Java
Executable File
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;
|
|
}
|
|
}
|