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,38 @@
package script.e3demo;
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.anims;
import script.library.factions;
public class e3_stormtrooper extends script.base_script
{
public e3_stormtrooper()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
messageTo(self, "doFaceTo", null, 5, false);
setAnimationMood(self, "npc_imperial");
factions.setFaction(self, "Imperial");
return SCRIPT_CONTINUE;
}
public int doFaceTo(obj_id self, dictionary params) throws InterruptedException
{
obj_id[] objTestObjects = getAllObjectsWithObjVar(getLocation(self), 2000, "stormtrooperFace");
faceTo(self, getLocation(objTestObjects[0]));
return SCRIPT_CONTINUE;
}
public int doEmote(obj_id self, dictionary params) throws InterruptedException
{
String strEmote = params.getString("strEmote");
doAnimationAction(self, strEmote);
return SCRIPT_CONTINUE;
}
}