who isn't sick of converting the freaking scripts? this negates the need

This commit is contained in:
DarthArgus
2015-11-24 09:27:45 -06:00
parent 2e64106bc8
commit bbee2d328c
11077 changed files with 2604347 additions and 3425075 deletions
@@ -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;
}
}