Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/ep3_rodian_fop.java
T
TekaohandGitHub 5c2e112349 Java 11.0.2 migration (#32)
* Code compiles - execution NOT tested

* updating gitignore

* Removed intellij settings files

* Removed more intellij files

* Added exclusion for JDK classes.

* Fixed purchasing script for vendors that have listed coin types.

* Updated script to not kick off until the entire preload is complete.

* adds static name entry for Solo movie poster and tcg9 vendor entry

* clean up empty and orphaned object templates

* adds placeholder black market (static) spawns

* corrects entries for the video game table to correctly set it in tcg series 2 and remove series 1 console errors

* Updated gitignore and removed intellij project files

* Fixed appearance reference for thranta payroll and kashyyyk door, added skipLosCheck objvar due to cannit see issue. Requires updated src

* Fixed appearance and template for terminal (#2)

* Fixed appearance and template for terminal (#3)

* Fixed appearance and template for terminal (#4)

* Deleted another faulty/orphaned object template

* Fixed gcw ranks option on frog. Only issue is that it doesn't award the officer commands or badges.

* Fixed some unneeded java 11 changes
2019-04-18 18:31:52 -05:00

2824 lines
119 KiB
Java
Executable File

package script.conversation;
import script.library.ai_lib;
import script.library.chat;
import script.library.utils;
import script.*;
public class ep3_rodian_fop extends script.base_script
{
public ep3_rodian_fop()
{
}
public static String c_stringFile = "conversation/ep3_rodian_fop";
public boolean ep3_rodian_fop_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean ep3_rodian_fop_condition_hasFinishedQuest1(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_1");
return questIsQuestComplete(questId, player);
}
public boolean ep3_rodian_fop_condition_hasFinishedQuest2(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_2");
return questIsQuestComplete(questId, player);
}
public boolean ep3_rodian_fop_condition_hasFinishedQuest3(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_3");
return questIsQuestComplete(questId, player);
}
public void ep3_rodian_fop_action_giveQuestOne(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_1");
questActivateQuest(questId, player, npc);
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_giveQuestTwo(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_2");
questActivateQuest(questId, player, npc);
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_clearQuests(obj_id player, obj_id npc) throws InterruptedException
{
int questId1 = questGetQuestId("quest/ep3_rodian_fop_1");
int questId2 = questGetQuestId("quest/ep3_rodian_fop_2");
int questId3 = questGetQuestId("quest/ep3_rodian_fop_3");
questClearQuest(questId1, player);
questClearQuest(questId2, player);
questClearQuest(questId3, player);
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_speak_SHORT(obj_id player, obj_id npc) throws InterruptedException
{
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_speak_MEDIUM(obj_id player, obj_id npc) throws InterruptedException
{
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_speak_LONG(obj_id player, obj_id npc) throws InterruptedException
{
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_long.cef", getLocation(npc), 0.0f);
}
public void ep3_rodian_fop_action_giveQuestThree(obj_id player, obj_id npc) throws InterruptedException
{
int questId = questGetQuestId("quest/ep3_rodian_fop_3");
questActivateQuest(questId, player, npc);
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0.0f);
}
public int ep3_rodian_fop_handleBranch1(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_ce7e4cd9"))
{
doAnimationAction(player, "pound_fist_palm");
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "explain");
ep3_rodian_fop_action_speak_LONG(player, npc);
string_id message = new string_id(c_stringFile, "s_1af1928c");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_a9504589");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 2);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_4b16bcf"))
{
doAnimationAction(player, "pound_fist_chest");
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shrug_hands");
string_id message = new string_id(c_stringFile, "s_9d3e4637");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_8aaad6");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7c997a0f");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 6);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_faa659eb"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shrug_shoulders");
string_id message = new string_id(c_stringFile, "s_21fea0de");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_24d697f1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "manipulate_medium");
ep3_rodian_fop_action_clearQuests(player, npc);
string_id message = new string_id(c_stringFile, "s_1f2267dd");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_a9504589"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "gesticulate_wildly");
ep3_rodian_fop_action_speak_MEDIUM(player, npc);
string_id message = new string_id(c_stringFile, "s_b4a2635a");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_e8b238c6");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d6695e83");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 3);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_e8b238c6"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_giveQuestOne(player, npc);
string_id message = new string_id(c_stringFile, "s_98f012fb");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d6695e83"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "wave_on_dismissing");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_a5f02cb6");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8aaad6"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "pound_fist_palm");
string_id message = new string_id(c_stringFile, "s_5788ca33");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_638a7a62");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 7);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_7c997a0f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "wave_on_dismissing");
string_id message = new string_id(c_stringFile, "s_3fa4f0ff");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_638a7a62"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_giveQuestTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_add1e6bf");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_5c203304"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_350e80d0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_17afa2c1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1f9504f1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_239d72a7"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_31d5e344");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_6a4b471a"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_59a3429f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_ce7e4cd9");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4b16bcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_faa659eb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch11(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8d19943f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_97a6b800");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_8aaea660"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_41bfc9bc");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_ca932c28"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_6942f23");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch12(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8d19943f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_97a6b800");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_8aaea660"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_41bfc9bc");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_ca932c28"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_6942f23");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8d19943f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_97a6b800");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_8aaea660"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_41bfc9bc");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_ca932c28"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_6942f23");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_5c203304"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_350e80d0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_17afa2c1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1f9504f1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_239d72a7"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_31d5e344");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_6a4b471a"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_59a3429f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_ce7e4cd9");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4b16bcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_faa659eb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_5c203304"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_350e80d0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_17afa2c1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1f9504f1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_239d72a7"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_31d5e344");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_6a4b471a"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_59a3429f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_ce7e4cd9");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4b16bcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_faa659eb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_5c203304"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_350e80d0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8d19943f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8aaea660");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ca932c28");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_17afa2c1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1f9504f1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_239d72a7"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_31d5e344");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_6a4b471a"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_59a3429f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_ce7e4cd9");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4b16bcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_faa659eb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_ce7e4cd9"))
{
doAnimationAction(player, "pound_fist_palm");
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "explain");
ep3_rodian_fop_action_speak_LONG(player, npc);
string_id message = new string_id(c_stringFile, "s_1af1928c");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_a9504589");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 2);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_4b16bcf"))
{
doAnimationAction(player, "pound_fist_chest");
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shrug_hands");
string_id message = new string_id(c_stringFile, "s_9d3e4637");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_8aaad6");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7c997a0f");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 6);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_faa659eb"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shrug_shoulders");
string_id message = new string_id(c_stringFile, "s_21fea0de");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5c203304");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_17afa2c1");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239d72a7");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6a4b471a");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 10);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_24d697f1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "manipulate_medium");
ep3_rodian_fop_action_clearQuests(player, npc);
string_id message = new string_id(c_stringFile, "s_1f2267dd");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_d335136f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "point_forward");
ep3_rodian_fop_action_speak_LONG(player, npc);
string_id message = new string_id(c_stringFile, "s_b0e55a4a");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_d324732");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d6695e83");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 20);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d6695e83"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
string_id message = new string_id(c_stringFile, "s_258b522b");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_d324732"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_giveQuestOne(player, npc);
string_id message = new string_id(c_stringFile, "s_2fed2a17");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d6695e83"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_258b522b");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch24(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_d335136f"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "explain");
ep3_rodian_fop_action_speak_LONG(player, npc);
string_id message = new string_id(c_stringFile, "s_2551a79");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_5e2a2bb1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 25);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d6695e83"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_258b522b");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_5e2a2bb1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "goodbye");
ep3_rodian_fop_action_giveQuestTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_6488c3cb");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_74505020"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "rub_chin_thoughtful");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_5a51ce2b");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_81fdc173");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 29);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_81fdc173"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "explain");
ep3_rodian_fop_action_speak_LONG(player, npc);
string_id message = new string_id(c_stringFile, "s_2962225f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_c261cfae");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 30);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_c261cfae"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "pound_fist_palm");
ep3_rodian_fop_action_giveQuestThree(player, npc);
string_id message = new string_id(c_stringFile, "s_bdf6c22c");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int ep3_rodian_fop_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_24d697f1"))
{
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "manipulate_medium");
ep3_rodian_fop_action_clearQuests(player, npc);
string_id message = new string_id(c_stringFile, "s_da6e65ae");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
chat.chat(npc, player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if ((!isMob(self)) || (isPlayer(self)))
{
detachScript(self, "conversation.ep3_rodian_fop");
}
setCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_SPACE_INTERESTING);
setInvulnerable(self, true);
setName(self, "Questor");
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_SPACE_INTERESTING);
setInvulnerable(self, true);
setName(self, "Questor");
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);
faceTo(self, player);
return SCRIPT_CONTINUE;
}
public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException
{
clearCondition(self, CONDITION_CONVERSABLE);
detachScript(self, "conversation.ep3_rodian_fop");
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
{
obj_id npc = self;
if (ai_lib.isInCombat(npc) || ai_lib.isInCombat(player))
{
return SCRIPT_OVERRIDE;
}
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "greet");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_c8fc6f31");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_ce7e4cd9");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4b16bcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_faa659eb");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 1);
npcStartConversation(player, npc, "ep3_rodian_fop", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!ep3_rodian_fop_condition_hasFinishedQuest1(player, npc))
{
doAnimationAction(npc, "greet");
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_d628eb2d");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_d335136f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d6695e83");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 19);
npcStartConversation(player, npc, "ep3_rodian_fop", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!ep3_rodian_fop_condition_hasFinishedQuest2(player, npc))
{
ep3_rodian_fop_action_speak_SHORT(player, npc);
string_id message = new string_id(c_stringFile, "s_affc3808");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_d335136f");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d6695e83");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 24);
npcStartConversation(player, npc, "ep3_rodian_fop", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!ep3_rodian_fop_condition_hasFinishedQuest3(player, npc))
{
doAnimationAction(npc, "bow");
ep3_rodian_fop_action_speak_MEDIUM(player, npc);
string_id message = new string_id(c_stringFile, "s_f3acc17c");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_74505020");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 28);
npcStartConversation(player, npc, "ep3_rodian_fop", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "bow");
ep3_rodian_fop_action_speak_MEDIUM(player, npc);
string_id message = new string_id(c_stringFile, "s_ef75f1bd");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (ep3_rodian_fop_condition__defaultCondition(player, npc))
{
++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_24d697f1");
}
utils.setScriptVar(player, "conversation.ep3_rodian_fop.branchId", 32);
npcStartConversation(player, npc, "ep3_rodian_fop", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
chat.chat(npc, "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("ep3_rodian_fop"))
{
return SCRIPT_CONTINUE;
}
obj_id npc = self;
int branchId = utils.getIntScriptVar(player, "conversation.ep3_rodian_fop.branchId");
if (branchId == 1 && ep3_rodian_fop_handleBranch1(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 2 && ep3_rodian_fop_handleBranch2(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 3 && ep3_rodian_fop_handleBranch3(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 6 && ep3_rodian_fop_handleBranch6(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 7 && ep3_rodian_fop_handleBranch7(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 10 && ep3_rodian_fop_handleBranch10(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 11 && ep3_rodian_fop_handleBranch11(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 12 && ep3_rodian_fop_handleBranch12(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 13 && ep3_rodian_fop_handleBranch13(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 14 && ep3_rodian_fop_handleBranch14(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 15 && ep3_rodian_fop_handleBranch15(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 16 && ep3_rodian_fop_handleBranch16(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 17 && ep3_rodian_fop_handleBranch17(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 19 && ep3_rodian_fop_handleBranch19(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 20 && ep3_rodian_fop_handleBranch20(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 24 && ep3_rodian_fop_handleBranch24(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 25 && ep3_rodian_fop_handleBranch25(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 28 && ep3_rodian_fop_handleBranch28(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 29 && ep3_rodian_fop_handleBranch29(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 30 && ep3_rodian_fop_handleBranch30(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 32 && ep3_rodian_fop_handleBranch32(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar(player, "conversation.ep3_rodian_fop.branchId");
return SCRIPT_CONTINUE;
}
}