mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-04 20:12:56 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user