mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
31 lines
840 B
Java
Executable File
31 lines
840 B
Java
Executable File
package script.working;
|
|
|
|
import script.location;
|
|
import script.obj_id;
|
|
|
|
public class cincotest extends script.base_script
|
|
{
|
|
public cincotest()
|
|
{
|
|
}
|
|
public int OnHearSpeech(obj_id self, obj_id objSpeaker, String strText) throws InterruptedException
|
|
{
|
|
if (objSpeaker != self)
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
if (strText.equals("setupTerminal"))
|
|
{
|
|
obj_id objTarget = getLookAtTarget(self);
|
|
if (isIdValid(objTarget))
|
|
{
|
|
location locTest = new location();
|
|
locTest.area = "space_tatooine";
|
|
setObjVar(objTarget, "space.destination", locTest);
|
|
sendSystemMessageTestingOnly(self, "Set the coordinates to your thang!");
|
|
}
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|