mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
33 lines
983 B
Plaintext
33 lines
983 B
Plaintext
//cheat to leave station
|
|
//used by newbie handoff to leave the station
|
|
//without having to finish any quests. Uses actuall
|
|
//calls to leave station normally.
|
|
|
|
|
|
include library.utils;
|
|
include library.sui;
|
|
include java.util.StringTokenizer;
|
|
include library.npe;
|
|
|
|
trigger OnSpeaking(string text)
|
|
{
|
|
obj_id player = self;
|
|
obj_id pInv = utils.getInventoryContainer(player);
|
|
obj_id target= getLookAtTarget(self);
|
|
StringTokenizer st = new java.util.StringTokenizer(text);
|
|
int tokens = st.countTokens();
|
|
string command = null;
|
|
if (st.hasMoreTokens())
|
|
command = st.nextToken();
|
|
if(command.equals("leaveStation"))
|
|
{
|
|
string_id stfPrompt = new string_id("npe", "exit_station_prompt");
|
|
string_id stfTitle = new string_id("npe", "exit_station");
|
|
string prompt = utils.packStringId(stfPrompt);
|
|
string title = utils.packStringId(stfTitle);
|
|
int pid = sui.msgbox(self, self, prompt, sui.OK_CANCEL, title, 0, "handTransfer");
|
|
return SCRIPT_OVERRIDE;
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|