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,53 @@
package script.npe;
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.groundquests;
import script.library.chat;
import script.library.create;
public class imperial_smuggler extends script.base_script
{
public imperial_smuggler()
{
}
public int OnAttach(obj_id self) throws InterruptedException
{
createTriggerVolume("npe_imperial_radius", 3.0f, true);
return SCRIPT_CONTINUE;
}
public int OnTriggerVolumeEntered(obj_id self, String name, obj_id player) throws InterruptedException
{
if (!isPlayer(player))
{
return SCRIPT_CONTINUE;
}
if (groundquests.isTaskActive(player, "npe_smuggler_try", "impTalks"))
{
chat.chat(self, "Hey you! Get over here!");
groundquests.sendSignal(player, "impTalks");
}
else
{
return SCRIPT_CONTINUE;
}
return SCRIPT_CONTINUE;
}
public int help(obj_id self, dictionary params) throws InterruptedException
{
location me = getLocation(self);
me.x += 1;
me.y += 1;
create.object("npe_stormtrooper_quest", me);
me.x += 2;
me.y += 2;
create.object("npe_stormtrooper_quest", me);
return SCRIPT_CONTINUE;
}
}