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