Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/racing_mosespa.java
T
2018-06-07 00:32:29 +01:00

2351 lines
108 KiB
Java
Executable File

package script.conversation;
import script.*;
import script.library.ai_lib;
import script.library.chat;
public class racing_mosespa extends script.base_script
{
public racing_mosespa()
{
}
public static String c_stringFile = "conversation/racing_mosespa";
public boolean racing_mosespa_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean racing_mosespa_condition_hasRaced(obj_id player, obj_id npc) throws InterruptedException
{
return (hasObjVar(player, "racing.bestTime.mosespa"));
}
public boolean racing_mosespa_condition_isRacing(obj_id player, obj_id npc) throws InterruptedException
{
return (getIntObjVar(player, "racing.mosespa.isRacing") == 1);
}
public boolean racing_mosespa_condition_hasLastTime(obj_id player, obj_id npc) throws InterruptedException
{
return (hasObjVar(player, "racing.lastTime.mosespa"));
}
public void racing_mosespa_action_registerPersonalBest(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
messageTo(npc, "messageRegisterBest", params, 0, false);
}
public void racing_mosespa_action_startRace(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
params.put("value", 1);
messageTo(npc, "messageStartMission", params, 0, false);
}
public void racing_mosespa_action_displayCurrentLeader(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
messageTo(npc, "messageDisplayLeader", params, 0, false);
}
public void racing_mosespa_action_whatsMyBestTime(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
messageTo(npc, "messageWhatsMyTime", params, 0, false);
}
public void racing_mosespa_action_showBestTime(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
messageTo(npc, "messageShowBestTime", params, 0, false);
}
public void racing_mosespa_action_erasePersonalBest(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
params.put("npc", npc);
messageTo(npc, "messageErasePersonalBest", params, 0, false);
}
public void racing_mosespa_action_abortRace(obj_id player, obj_id npc) throws InterruptedException
{
dictionary params = new dictionary();
params.put("player", player);
removeObjVar(player, "racing.lastTime.mosespa");
messageTo(player, "handleCleanUp", params, 0, false);
playMusic(player, "sound/music_combat_bfield_death.snd");
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if ((!isMob(self)) || (isPlayer(self)))
{
detachScript(self, "npc.conversation.racing_mosespa");
}
setCondition(self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info menuInfo) throws InterruptedException
{
int menu = menuInfo.addRootMenu(menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById(menu);
menuInfoData.setServerNotify(false);
setCondition(self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException
{
clearCondition(self, CONDITION_CONVERSABLE);
detachScript(self, "npc.conversation.racing_mosespa");
return SCRIPT_CONTINUE;
}
public boolean npcStartConversation(obj_id player, obj_id npc, String convoName, string_id greetingId, prose_package greetingProse, string_id[] responses) throws InterruptedException
{
Object[] objects = new Object[responses.length];
System.arraycopy(responses, 0, objects, 0, responses.length);
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
}
public int OnStartNpcConversation(obj_id self, obj_id player) throws InterruptedException
{
if (ai_lib.isInCombat(self) || ai_lib.isInCombat(player))
{
return SCRIPT_OVERRIDE;
}
if (racing_mosespa_condition_isRacing(player, self))
{
string_id message = new string_id(c_stringFile, "s_6a5b9858");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d900d1be");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 1);
npcStartConversation(player, self, "racing_mosespa", message, responses);
}
else
{
chat.chat(self, message);
}
return SCRIPT_CONTINUE;
}
if (racing_mosespa_condition_hasLastTime(player, self))
{
racing_mosespa_action_registerPersonalBest(player, self);
string_id message = new string_id(c_stringFile, "s_891e1f6");
chat.chat(self, message);
return SCRIPT_CONTINUE;
}
if (racing_mosespa_condition_hasRaced(player, self))
{
string_id message = new string_id(c_stringFile, "s_48072ab3");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcStartConversation(player, self, "racing_mosespa", message, responses);
}
else
{
chat.chat(self, message);
}
return SCRIPT_CONTINUE;
}
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_e0de16cc");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcStartConversation(player, self, "racing_mosespa", message, responses);
}
else
{
chat.chat(self, message);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnStartNpcConversation were false.");
return SCRIPT_CONTINUE;
}
public int OnNpcConversationResponse(obj_id self, String conversationId, obj_id player, string_id response) throws InterruptedException
{
if (!conversationId.equals("racing_mosespa"))
{
return SCRIPT_CONTINUE;
}
int branchId = getIntObjVar(player, "conversation.racing_mosespa.branchId");
if (branchId == 1 && response.equals("s_d900d1be"))
{
racing_mosespa_action_abortRace(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4aa68942");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'The clock is ticking, get moving!' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_ed644123"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d24f3595");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145d0a85");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_abd9745d");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_838e4ffb"))
{
racing_mosespa_action_whatsMyBestTime(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d459b94a");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_59d4e0ee"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_27aa48e0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_31168968");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5014ede5");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_fbd55d9d"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_8bc77434");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Welcome back! How may I serve you?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_2528fad7"))
{
racing_mosespa_action_startRace(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_b2acc217");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'That's the spirit! Just say go when you want me to begin the timer. Good luck and may the force be with you!' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_145d0a85"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_6441a2a6");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'That's the spirit! Just say go when you want me to begin the timer. Good luck and may the force be with you!' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_ed644123"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d24f3595");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145d0a85");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_abd9745d");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_838e4ffb"))
{
racing_mosespa_action_whatsMyBestTime(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d459b94a");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_59d4e0ee"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_27aa48e0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_31168968");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5014ede5");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_fbd55d9d"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_8bc77434");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 10 && response.equals("s_31168968"))
{
racing_mosespa_action_erasePersonalBest(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_f9faa915");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Oh dear, such a drastic measure but sometimes a fresh start can be invigorating. I am here to serve. I must warn you this will PERMANENTLY remove your best time and I will forget we've ever met. Are you CERTAIN you wish to do this?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 10 && response.equals("s_5014ede5"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4c21202f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Oh dear, such a drastic measure but sometimes a fresh start can be invigorating. I am here to serve. I must warn you this will PERMANENTLY remove your best time and I will forget we've ever met. Are you CERTAIN you wish to do this?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_ed644123"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d24f3595");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145d0a85");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_abd9745d");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_838e4ffb"))
{
racing_mosespa_action_whatsMyBestTime(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d459b94a");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_59d4e0ee"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_27aa48e0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_31168968");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5014ede5");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_fbd55d9d"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_8bc77434");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 12 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'As you wish. I have made no changes to my records.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_ed644123"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d24f3595");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145d0a85");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_abd9745d");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_838e4ffb"))
{
racing_mosespa_action_whatsMyBestTime(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_d459b94a");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_59d4e0ee"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_27aa48e0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_31168968");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5014ede5");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_fbd55d9d"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_8bc77434");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 14 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ed644123");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_838e4ffb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_59d4e0ee");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_fbd55d9d");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 15 && response.equals("s_e460e3d3"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4b4fb2b7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Greetings, I'm the race coordinator for the old Mos Espa Circuit. If you'd like to race the track, just let me know. How may I serve you today?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 15 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_371b3f4");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Greetings, I'm the race coordinator for the old Mos Espa Circuit. If you'd like to race the track, just let me know. How may I serve you today?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 15 && response.equals("s_dffdee4b"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_1cd82216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_262e8687");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 18);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Greetings, I'm the race coordinator for the old Mos Espa Circuit. If you'd like to race the track, just let me know. How may I serve you today?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 15 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Greetings, I'm the race coordinator for the old Mos Espa Circuit. If you'd like to race the track, just let me know. How may I serve you today?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 16 && response.equals("s_e460e3d3"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4b4fb2b7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'A series of waypoints will appear one after the other. Head to each waypoint as quickly as possible. When you arrive back here, talk to me again and I'll register your last time for this track.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 16 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_371b3f4");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'A series of waypoints will appear one after the other. Head to each waypoint as quickly as possible. When you arrive back here, talk to me again and I'll register your last time for this track.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 16 && response.equals("s_dffdee4b"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_1cd82216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_262e8687");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 18);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'A series of waypoints will appear one after the other. Head to each waypoint as quickly as possible. When you arrive back here, talk to me again and I'll register your last time for this track.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 16 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'A series of waypoints will appear one after the other. Head to each waypoint as quickly as possible. When you arrive back here, talk to me again and I'll register your last time for this track.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 18 && response.equals("s_2528fad7"))
{
racing_mosespa_action_startRace(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_b2acc217");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Get ready... I'll start the timer when you say go!' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 18 && response.equals("s_262e8687"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_c0918d6");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'Get ready... I'll start the timer when you say go!' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 20 && response.equals("s_e460e3d3"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4b4fb2b7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No hurry. Let me know when you're ready.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 20 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_371b3f4");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No hurry. Let me know when you're ready.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 20 && response.equals("s_dffdee4b"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_1cd82216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_262e8687");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 18);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No hurry. Let me know when you're ready.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 20 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No hurry. Let me know when you're ready.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 21 && response.equals("s_e460e3d3"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_4b4fb2b7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 21 && response.equals("s_2492930f"))
{
racing_mosespa_action_displayCurrentLeader(player, self);
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_371b3f4");
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 21 && response.equals("s_dffdee4b"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_1cd82216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2528fad7");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_262e8687");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 18);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 21 && response.equals("s_1736e216"))
{
if (racing_mosespa_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cea50112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (racing_mosespa_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e460e3d3");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2492930f");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_dffdee4b");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_1736e216");
}
setObjVar(player, "conversation.racing_mosespa.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.racing_mosespa.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'If the information in my databanks are accurate, during the last decades of the Old Republic podraces were run on this track. The series was formed and controlled by the Hutts many years ago. Following the decline of podracing's popularity, this track was more or less abandoned by the Hutts. It was eventually taken over by a small band of swoop racers, who used it to stage a regular series of semi-legitimate races.' were false.");
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
removeObjVar(player, "conversation.racing_mosespa.branchId");
return SCRIPT_CONTINUE;
}
}