package script.conversation; import script.library.*; import script.*; public class imperial_broker extends script.base_script { public imperial_broker() { } public static String c_stringFile = "conversation/imperial_broker"; public boolean imperial_broker_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean imperial_broker_condition_isImperialFaction(obj_id player, obj_id npc) throws InterruptedException { String factionName = factions.getFaction(player); if (factionName == null || factionName.equals("")) { return false; } else { return (factionName.equals(factions.FACTION_IMPERIAL)); } } public boolean imperial_broker_condition_isMaleImperialFaction(obj_id player, obj_id npc) throws InterruptedException { return (imperial_broker_condition_isImperialFaction(player, npc) && (getGender(player) == GENDER_MALE)); } public boolean imperial_broker_condition_isMalePlayer(obj_id player, obj_id npc) throws InterruptedException { return (getGender(player) == GENDER_MALE); } public boolean imperial_broker_condition_justSpokeToPlayer(obj_id player, obj_id npc) throws InterruptedException { return (utils.hasScriptVar(player, "justTalkedToImpBroker")); } public boolean imperial_broker_condition_justSpokeToMalePlayer(obj_id player, obj_id npc) throws InterruptedException { return (imperial_broker_condition_isMalePlayer(player, npc) && imperial_broker_condition_justSpokeToPlayer(player, npc)); } public boolean imperial_broker_condition_isRebelFaction(obj_id player, obj_id npc) throws InterruptedException { String factionName = factions.getFaction(player); if (factionName == null || factionName.equals("")) { return false; } else { return (factionName.equals(factions.FACTION_REBEL)); } } public boolean imperial_broker_condition_isWookieePlayer(obj_id player, obj_id npc) throws InterruptedException { return (getSpecies(player) == SPECIES_WOOKIEE); } public boolean imperial_broker_condition_wasDismissedRebel(obj_id player, obj_id npc) throws InterruptedException { return (utils.getIntScriptVar(player, "brokerDismissed") == 3); } public boolean imperial_broker_condition_wasDismissedWookiee(obj_id player, obj_id npc) throws InterruptedException { return (utils.getIntScriptVar(player, "brokerDismissed") == 2); } public boolean imperial_broker_condition_wasDismissedWoman(obj_id player, obj_id npc) throws InterruptedException { return (utils.getIntScriptVar(player, "brokerDismissed") == 1); } public boolean imperial_broker_condition_isImperialPilot(obj_id player, obj_id npc) throws InterruptedException { return space_skill.hasImperialSkill(player); } public boolean imperial_broker_condition_isPilot(obj_id player, obj_id npc) throws InterruptedException { return space_skill.hasSpaceSkills(player); } public boolean imperial_broker_condition_hasSpaceExp(obj_id player, obj_id npc) throws InterruptedException { return features.isSpaceEdition(player); } public void imperial_broker_action_addCorelliaImpWaypoint(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "justTalkedToImpBroker", true); trainerlocs.getTrainerLocationWaypoint(player, "imperial", "corellia"); } public void imperial_broker_action_addTatooineImpWaypoint(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "justTalkedToImpBroker", true); trainerlocs.getTrainerLocationWaypoint(player, "imperial", "tatooine"); } public void imperial_broker_action_addNabooImpWaypoint(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "justTalkedToImpBroker", true); trainerlocs.getTrainerLocationWaypoint(player, "imperial", "naboo"); } public void imperial_broker_action_dismissWoman(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "brokerDismissed", 1); } public void imperial_broker_action_dismissWookiee(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "brokerDismissed", 2); } public void imperial_broker_action_dismissRebel(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "brokerDismissed", 3); } public void imperial_broker_action_retireImperial(obj_id player, obj_id npc) throws InterruptedException { space_skill.retire(player, space_skill.IMPERIAL); } public int imperial_broker_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_8812be10")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "point_accusingly"); string_id message = new string_id(c_stringFile, "s_458bda80"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_658b5a75"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 3); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_169df3bb")) { if (imperial_broker_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_6441a2a6"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_658b5a75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_no"); string_id message = new string_id(c_stringFile, "s_fbeabc76"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_f72f24be"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_f220efed"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 4); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_13")) { if (imperial_broker_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_15"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f72f24be")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "dismiss"); imperial_broker_action_retireImperial(player, npc); string_id message = new string_id(c_stringFile, "s_ccdbfea7"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_f220efed")) { if (imperial_broker_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e8ccc35c"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch12(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_66")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c2c89e35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_69"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_72"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_77"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_79"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_82"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_85")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "embarrassed"); string_id message = new string_id(c_stringFile, "s_b89f31b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_88"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_91"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4b0c16d2")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_8c387e5c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_8ed93c34"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_b0ea6e8c"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 16); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_53")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute2"); string_id message = new string_id(c_stringFile, "s_f5f50ae3"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_8ed93c34")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute1"); string_id message = new string_id(c_stringFile, "s_8755e6eb"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_b0ea6e8c")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "point_to_self"); string_id message = new string_id(c_stringFile, "s_4577214d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch18(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_70f18874")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_a7d90105"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_df2917b1")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); imperial_broker_action_addCorelliaImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_cc37bca4"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch22(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_40")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_a8b71650"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_43")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); imperial_broker_action_addTatooineImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_5817eef2"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch23(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_48")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "sigh_deeply"); string_id message = new string_id(c_stringFile, "s_ed23ffff"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_13a23fbc")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "manipulate_medium"); imperial_broker_action_addNabooImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_f05830e3"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_57")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_d78c7ec0"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_60"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_63"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 30); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_94")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute2"); string_id message = new string_id(c_stringFile, "s_96"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_60")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute1"); string_id message = new string_id(c_stringFile, "s_83a7ae89"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_63")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_b8884586"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_66"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_75"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_85"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_66")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c2c89e35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_69"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_72"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_77"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_79"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_82"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_85")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "embarrassed"); string_id message = new string_id(c_stringFile, "s_b89f31b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_88"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_91"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch33(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_69")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute2"); string_id message = new string_id(c_stringFile, "s_407fb5e3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_66"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_75"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_85"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_72")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); imperial_broker_action_addCorelliaImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_b945b46a"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_66")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c2c89e35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_69"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_72"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_77"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_79"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_82"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_85")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "embarrassed"); string_id message = new string_id(c_stringFile, "s_b89f31b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_88"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_91"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch36(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_79")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_42693321"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_66"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_75"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_85"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_82")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_multiple"); imperial_broker_action_addTatooineImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_cd41504a"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch37(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_66")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c2c89e35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_69"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_72"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_77"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_79"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_82"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_85")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "embarrassed"); string_id message = new string_id(c_stringFile, "s_b89f31b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_88"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_91"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch39(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_88")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_d28bda49"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_66"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_75"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_85"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_91")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); imperial_broker_action_addNabooImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_8ac37a1f"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_66")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c2c89e35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_69"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_72"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_75")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_77"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_79"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_82"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_85")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "embarrassed"); string_id message = new string_id(c_stringFile, "s_b89f31b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_88"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_91"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch43(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_840482e7")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "wave_on_dismissing"); string_id message = new string_id(c_stringFile, "s_d1c489c0"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_61a663b2")) { if (imperial_broker_condition_isWookieePlayer(player, npc)) { doAnimationAction(npc, "belly_laugh"); string_id message = new string_id(c_stringFile, "s_b19ac578"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_isMalePlayer(player, npc)) { doAnimationAction(npc, "slow_down"); string_id message = new string_id(c_stringFile, "s_3bbddad5"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "point_accusingly"); string_id message = new string_id(c_stringFile, "s_99e09eaf"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_106")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_14270b3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_109"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_112"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_445a2be4")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute2"); string_id message = new string_id(c_stringFile, "s_895d093"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_109")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "salute1"); string_id message = new string_id(c_stringFile, "s_2a4c66e4"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_112")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_106caa1d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_115"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_124"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_134"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 51); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_115")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_86cb9899"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_118"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_121"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 52); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_124")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_126"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_128"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_131"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 55); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_134")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_3c9c6441"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_137"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_141"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch52(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_118")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_9f862c74"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_115"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_124"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_134"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 51); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_121")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "wave_finger_warning"); imperial_broker_action_addCorelliaImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_3d734747"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch53(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_115")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_86cb9899"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_118"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_121"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 52); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_124")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_126"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_128"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_131"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 55); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_134")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_3c9c6441"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_137"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_141"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_128")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_727cf8b6"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_131")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "manipulate_medium"); imperial_broker_action_addTatooineImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_7287c2b7"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch58(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_137")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_139"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_141")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); imperial_broker_action_addNabooImpWaypoint(player, npc); string_id message = new string_id(c_stringFile, "s_2fe6ab5f"); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int imperial_broker_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1b2086de")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_772c81dd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_70f18874"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_df2917b1"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 19); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_4cafd748")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pose_proudly"); string_id message = new string_id(c_stringFile, "s_e0db13e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_40"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_43"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_23ef3e33")) { if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "whisper"); string_id message = new string_id(c_stringFile, "s_929272e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_48"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13a23fbc"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int OnInitialize(obj_id self) throws InterruptedException { if ((!isMob(self)) || (isPlayer(self))) { detachScript(self, "conversation.imperial_broker"); } setCondition(self, CONDITION_CONVERSABLE); setCondition(self, CONDITION_SPACE_INTERESTING); setInvulnerable(self, true); setName(self, "Commander Landau"); factions.setFaction(self, factions.FACTION_IMPERIAL); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setCondition(self, CONDITION_CONVERSABLE); setCondition(self, CONDITION_SPACE_INTERESTING); setInvulnerable(self, true); setName(self, "Commander Landau"); factions.setFaction(self, factions.FACTION_IMPERIAL); 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); faceTo(self, player); return SCRIPT_CONTINUE; } public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException { clearCondition(self, CONDITION_CONVERSABLE); detachScript(self, "conversation.imperial_broker"); 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 (!imperial_broker_condition_hasSpaceExp(player, npc)) { string_id message = new string_id(c_stringFile, "s_be46803"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_isImperialPilot(player, npc)) { doAnimationAction(npc, "salute2"); string_id message = new string_id(c_stringFile, "s_e60ef8f6"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_8812be10"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_169df3bb"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 2); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition_wasDismissedWookiee(player, npc)) { doAnimationAction(npc, "belly_laugh"); string_id message = new string_id(c_stringFile, "s_6e2d55ee"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_wasDismissedWoman(player, npc)) { doAnimationAction(npc, "point_away"); string_id message = new string_id(c_stringFile, "s_fb390611"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_wasDismissedRebel(player, npc)) { doAnimationAction(npc, "wave_on_dismissing"); string_id message = new string_id(c_stringFile, "s_b845eeb6"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_justSpokeToMalePlayer(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_8d91ee22"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_1b2086de"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4cafd748"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_23ef3e33"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 18); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition_justSpokeToPlayer(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_ac926b4b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (imperial_broker_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_66"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_75"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_85"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 32); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition_isPilot(player, npc)) { string_id message = new string_id(c_stringFile, "s_e2dae58f"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (imperial_broker_condition_isMaleImperialFaction(player, npc)) { doAnimationAction(npc, "salute1"); doAnimationAction(player, "salute1"); string_id message = new string_id(c_stringFile, "s_2eee3e2e"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_4b0c16d2"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_53"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 15); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition_isImperialFaction(player, npc)) { doAnimationAction(npc, "salute1"); doAnimationAction(player, "salute1"); string_id message = new string_id(c_stringFile, "s_fda95628"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_57"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_94"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 29); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition_isRebelFaction(player, npc)) { string_id message = new string_id(c_stringFile, "s_6a1562ad"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_840482e7"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_61a663b2"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 43); npcStartConversation(player, npc, "imperial_broker", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (imperial_broker_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_hands"); string_id message = new string_id(c_stringFile, "s_59be173"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (imperial_broker_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (imperial_broker_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_106"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_445a2be4"); } utils.setScriptVar(player, "conversation.imperial_broker.branchId", 48); npcStartConversation(player, npc, "imperial_broker", 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("imperial_broker")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.imperial_broker.branchId"); if (branchId == 2 && imperial_broker_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && imperial_broker_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 4 && imperial_broker_handleBranch4(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 12 && imperial_broker_handleBranch12(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 13 && imperial_broker_handleBranch13(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 15 && imperial_broker_handleBranch15(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 16 && imperial_broker_handleBranch16(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 18 && imperial_broker_handleBranch18(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 19 && imperial_broker_handleBranch19(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 20 && imperial_broker_handleBranch20(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 22 && imperial_broker_handleBranch22(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 23 && imperial_broker_handleBranch23(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 25 && imperial_broker_handleBranch25(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 26 && imperial_broker_handleBranch26(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 29 && imperial_broker_handleBranch29(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 30 && imperial_broker_handleBranch30(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 32 && imperial_broker_handleBranch32(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 33 && imperial_broker_handleBranch33(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 34 && imperial_broker_handleBranch34(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 36 && imperial_broker_handleBranch36(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 37 && imperial_broker_handleBranch37(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 39 && imperial_broker_handleBranch39(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 40 && imperial_broker_handleBranch40(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 43 && imperial_broker_handleBranch43(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 48 && imperial_broker_handleBranch48(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && imperial_broker_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 51 && imperial_broker_handleBranch51(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 52 && imperial_broker_handleBranch52(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 53 && imperial_broker_handleBranch53(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 55 && imperial_broker_handleBranch55(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && imperial_broker_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 58 && imperial_broker_handleBranch58(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 59 && imperial_broker_handleBranch59(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse."); utils.removeScriptVar(player, "conversation.imperial_broker.branchId"); return SCRIPT_CONTINUE; } }