mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-09 00:12:57 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package script.working.jfreeman;
|
||||
|
||||
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;
|
||||
|
||||
public class followtest extends script.base_script
|
||||
{
|
||||
public followtest()
|
||||
{
|
||||
}
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
debugSpeakMsg(self, "attached");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnHearSpeech(obj_id self, obj_id speaker, String text) throws InterruptedException
|
||||
{
|
||||
if (isPlayer(speaker) && text.equals("follow me"))
|
||||
{
|
||||
debugSpeakMsg(self, "following " + getName(speaker));
|
||||
follow(self, speaker, 1f, 5f);
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnFollowTargetLost(obj_id self, obj_id target) throws InterruptedException
|
||||
{
|
||||
debugSpeakMsg(self, "follow target lost");
|
||||
return SCRIPT_OVERRIDE;
|
||||
}
|
||||
public int OnFollowWaiting(obj_id self, obj_id target) throws InterruptedException
|
||||
{
|
||||
debugSpeakMsg(self, "follow waiting");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnFollowMoving(obj_id self, obj_id target) throws InterruptedException
|
||||
{
|
||||
debugSpeakMsg(self, "follow moving");
|
||||
return SCRIPT_OVERRIDE;
|
||||
}
|
||||
public int OnFollowPathNotFound(obj_id self, obj_id target) throws InterruptedException
|
||||
{
|
||||
debugSpeakMsg(self, "follow path not found");
|
||||
return SCRIPT_OVERRIDE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user