mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package script.test;
|
||||
|
||||
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 java.lang.Math;
|
||||
import java.util.Random;
|
||||
import script.vector;
|
||||
import script.library.ship_ai;
|
||||
import script.library.space_create;
|
||||
import script.library.static_item;
|
||||
import script.library.utils;
|
||||
import script.library.skill;
|
||||
|
||||
public class ai_rsitton extends script.base_script
|
||||
{
|
||||
public ai_rsitton()
|
||||
{
|
||||
}
|
||||
public static final String s_logLabel = "ai_rsitton";
|
||||
public int OnSpeaking(obj_id self, String text) throws InterruptedException
|
||||
{
|
||||
if (isGod(self))
|
||||
{
|
||||
java.util.StringTokenizer tokenizer = new java.util.StringTokenizer(text);
|
||||
if (tokenizer.hasMoreTokens())
|
||||
{
|
||||
String command = tokenizer.nextToken();
|
||||
LOG(s_logLabel, "fnord: " + command + "--------------");
|
||||
if (command.equalsIgnoreCase("fnord_waypoint"))
|
||||
{
|
||||
location here = getWorldLocation(self);
|
||||
createWaypointInDatapadInternal(self, here, "shared_starport_tatooine.iff", "arrivals1");
|
||||
}
|
||||
else if (command.equalsIgnoreCase("fnord_client_path"))
|
||||
{
|
||||
obj_id target = getLookAtTarget(self);
|
||||
createClientPathAdvanced(self, getLocation(self), getLocation(target), "default");
|
||||
}
|
||||
else if (command.equalsIgnoreCase("fnord_static_weapon"))
|
||||
{
|
||||
obj_id objInventory = utils.getInventoryContainer(self);
|
||||
obj_id lootItem = static_item.createNewItemFunction("weapon_carbine_02_03", objInventory);
|
||||
sendSystemMessageTestingOnly(self, "made " + lootItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user