package script.conversation; import script.library.*; import script.*; public class naboo_rebel_tier3 extends script.base_script { public naboo_rebel_tier3() { } public static String c_stringFile = "conversation/naboo_rebel_tier3"; public boolean naboo_rebel_tier3_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean naboo_rebel_tier3_condition_isCorrectFaction(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_novice")); } public boolean naboo_rebel_tier3_condition_isReadyForTier3(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.hasCompletedTierTwo(player) && space_flags.hasSpaceFlag(player, "vortexPilot")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_isOnQuest(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasQuest(player)); } public boolean naboo_rebel_tier3_condition_failedQuestOne(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasFailedQuestRecursive(player, "assassinate", "naboo_rebel_tier3_1") || space_quest.hasAbortedQuestRecursive(player, "assassinate", "naboo_rebel_tier3_1")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_failedQuestTwo(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasFailedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_2") || space_quest.hasAbortedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_2")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_failedQuestThree(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasFailedQuestRecursive(player, "patrol", "naboo_rebel_tier3_3") || space_quest.hasAbortedQuestRecursive(player, "patrol", "naboo_rebel_tier3_3")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_failedQuestFour(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasFailedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_4") || space_quest.hasAbortedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_4")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_isReadyForTier4(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.hasCompletedTierThree(player) && space_flags.hasSpaceFlag(player, "vortexPilot") && space_quest.hasReceivedReward(player, "space_battle", "naboo_rebel_tier3_4")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_onMyTrack(obj_id player, obj_id npc) throws InterruptedException { return space_flags.isSpaceTrack(player, space_flags.REBEL_NABOO); } public boolean naboo_rebel_tier3_condition_collectingQuestOneReward(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasCompletedQuestRecursive(player, "assassinate", "naboo_rebel_tier3_1")) { return false; } if (hasSkill(player, "pilot_rebel_navy_starships_03") || hasSkill(player, "pilot_rebel_navy_procedures_03") || hasSkill(player, "pilot_rebel_navy_weapons_03") || hasSkill(player, "pilot_rebel_navy_droid_03")) { return false; } return true; } public boolean naboo_rebel_tier3_condition_collectingQuestTwoReward(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasCompletedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_2")) { return false; } int skillCount = 0; if (hasSkill(player, "pilot_rebel_navy_starships_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_procedures_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_weapons_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_droid_03")) { skillCount++; } if (skillCount < 2) { return true; } else { return false; } } public boolean naboo_rebel_tier3_condition_collectingQuestThreeReward(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasCompletedQuestRecursive(player, "patrol", "naboo_rebel_tier3_3")) { return false; } int skillCount = 0; if (hasSkill(player, "pilot_rebel_navy_starships_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_procedures_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_weapons_03")) { skillCount++; } if (hasSkill(player, "pilot_rebel_navy_droid_03")) { skillCount++; } if (skillCount < 3) { return true; } else { return false; } } public boolean naboo_rebel_tier3_condition_collectingQuestFourReward(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasCompletedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_4")) { return false; } if (!hasSkill(player, "pilot_rebel_navy_starships_03")) { return true; } if (!hasSkill(player, "pilot_rebel_navy_procedures_03")) { return true; } if (!hasSkill(player, "pilot_rebel_navy_weapons_03")) { return true; } if (!hasSkill(player, "pilot_rebel_navy_droid_03")) { return true; } return false; } public boolean naboo_rebel_tier3_condition_isPilot(obj_id player, obj_id npc) throws InterruptedException { return space_flags.hasAnyPilotSkill(player); } public boolean naboo_rebel_tier3_condition_hasNegativeFaction(obj_id player, obj_id npc) throws InterruptedException { return (factions.getFactionStanding(player, factions.FACTION_REBEL) < 0.0f); } public boolean naboo_rebel_tier3_condition_hasCompletedQuestOne(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasCompletedQuestRecursive(player, "assassinate", "naboo_rebel_tier3_1")); } public boolean naboo_rebel_tier3_condition_hasCompletedQuestTwo(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasCompletedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_2")); } public boolean naboo_rebel_tier3_condition_hasCompletedQuestThree(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasCompletedQuestRecursive(player, "patrol", "naboo_rebel_tier3_3")); } public boolean naboo_rebel_tier3_condition_hasCompletedQuestFour(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasCompletedQuestRecursive(player, "space_battle", "naboo_rebel_tier3_4")); } public boolean naboo_rebel_tier3_condition_hasStarship03Skill(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_starships_03")); } public boolean naboo_rebel_tier3_condition_hasProcedure03Skill(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_procedures_03")); } public boolean naboo_rebel_tier3_condition_hasWeapon03Skill(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_weapons_03")); } public boolean naboo_rebel_tier3_condition_hasDroid03Skill(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_droid_03")); } public void naboo_rebel_tier3_action_grantQuestOne(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "assassinate", "naboo_rebel_tier3_1"); } public void naboo_rebel_tier3_action_grantQuestTwo(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "space_battle", "naboo_rebel_tier3_2"); } public void naboo_rebel_tier3_action_grantQuestThree(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "patrol", "naboo_rebel_tier3_3"); } public void naboo_rebel_tier3_action_grantQuestFour(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "space_battle", "naboo_rebel_tier3_4"); } public void naboo_rebel_tier3_action_rewardForQuestOne(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "assassinate", "naboo_rebel_tier3_1")) { space_quest.giveReward(player, "assassinate", "naboo_rebel_tier3_1", 25000, "object/tangible/ship/components/armor/arm_mission_reward_rebel_corellian_triplate.iff"); factions.addFactionStanding(player, factions.FACTION_REBEL, 100.0f); } } public void naboo_rebel_tier3_action_rewardForQuestTwo(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "space_battle", "naboo_rebel_tier3_2")) { space_quest.giveReward(player, "space_battle", "naboo_rebel_tier3_2", 25000, "object/tangible/ship/components/weapon_capacitor/cap_mission_reward_rebel_qualdex_battery_array.iff"); factions.addFactionStanding(player, factions.FACTION_REBEL, 100.0f); } } public void naboo_rebel_tier3_action_rewardForQuestThree(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "patrol", "naboo_rebel_tier3_3")) { space_quest.giveReward(player, "patrol", "naboo_rebel_tier3_3", 25000, "object/tangible/ship/components/engine/eng_mission_reward_rebel_incom_military.iff"); factions.addFactionStanding(player, factions.FACTION_REBEL, 100.0f); } } public void naboo_rebel_tier3_action_rewardForQuestFour(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "space_battle", "naboo_rebel_tier3_4")) { space_quest.giveReward(player, "space_battle", "naboo_rebel_tier3_4", 25000, "object/tangible/ship/components/reactor/rct_mission_reward_rebel_slayn_hypervortex.iff"); factions.addFactionStanding(player, factions.FACTION_REBEL, 100.0f); } } public void naboo_rebel_tier3_action_grantProceduresSkill(obj_id player, obj_id npc) throws InterruptedException { skill.noisyGrantSkill(player, "pilot_rebel_navy_procedures_03"); } public void naboo_rebel_tier3_action_grantDroidSkill(obj_id player, obj_id npc) throws InterruptedException { skill.noisyGrantSkill(player, "pilot_rebel_navy_droid_03"); } public void naboo_rebel_tier3_action_grantWeaponSkill(obj_id player, obj_id npc) throws InterruptedException { skill.noisyGrantSkill(player, "pilot_rebel_navy_weapons_03"); } public void naboo_rebel_tier3_action_grantStarshipSkill(obj_id player, obj_id npc) throws InterruptedException { skill.noisyGrantSkill(player, "pilot_rebel_navy_starships_03"); } public int naboo_rebel_tier3_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_9ac7f904")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_991a471c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_eba35f17"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 3); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_eb3c17f0")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_ab272dee"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_5e57a2aa"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 5); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_eba35f17")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_be1e6832"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5e57a2aa")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow3"); string_id message = new string_id(c_stringFile, "s_b9b27823"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ceaea132")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_disgust"); string_id message = new string_id(c_stringFile, "s_b552b5dd"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_a0e6a107")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_d2bd9636"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_30760d01")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_c9f02e02"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ded27301")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantQuestThree(player, npc); string_id message = new string_id(c_stringFile, "s_6a5142e8"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_fd2e11b9")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantQuestThree(player, npc); string_id message = new string_id(c_stringFile, "s_a30c289b"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_312")) { if (!naboo_rebel_tier3_condition_hasStarship03Skill(player, npc)) { naboo_rebel_tier3_action_grantStarshipSkill(player, npc); string_id message = new string_id(c_stringFile, "s_313"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasWeapon03Skill(player, npc)) { naboo_rebel_tier3_action_grantWeaponSkill(player, npc); string_id message = new string_id(c_stringFile, "s_314"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasProcedure03Skill(player, npc)) { naboo_rebel_tier3_action_grantProceduresSkill(player, npc); string_id message = new string_id(c_stringFile, "s_315"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantDroidSkill(player, npc); string_id message = new string_id(c_stringFile, "s_316"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_312")) { if (!naboo_rebel_tier3_condition_hasStarship03Skill(player, npc)) { naboo_rebel_tier3_action_grantStarshipSkill(player, npc); string_id message = new string_id(c_stringFile, "s_313"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasWeapon03Skill(player, npc)) { naboo_rebel_tier3_action_grantWeaponSkill(player, npc); string_id message = new string_id(c_stringFile, "s_314"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasProcedure03Skill(player, npc)) { naboo_rebel_tier3_action_grantProceduresSkill(player, npc); string_id message = new string_id(c_stringFile, "s_315"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantDroidSkill(player, npc); string_id message = new string_id(c_stringFile, "s_316"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_312")) { if (!naboo_rebel_tier3_condition_hasStarship03Skill(player, npc)) { naboo_rebel_tier3_action_grantStarshipSkill(player, npc); string_id message = new string_id(c_stringFile, "s_313"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasWeapon03Skill(player, npc)) { naboo_rebel_tier3_action_grantWeaponSkill(player, npc); string_id message = new string_id(c_stringFile, "s_314"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasProcedure03Skill(player, npc)) { naboo_rebel_tier3_action_grantProceduresSkill(player, npc); string_id message = new string_id(c_stringFile, "s_315"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantDroidSkill(player, npc); string_id message = new string_id(c_stringFile, "s_316"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_312")) { if (!naboo_rebel_tier3_condition_hasStarship03Skill(player, npc)) { naboo_rebel_tier3_action_grantStarshipSkill(player, npc); string_id message = new string_id(c_stringFile, "s_313"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasWeapon03Skill(player, npc)) { naboo_rebel_tier3_action_grantWeaponSkill(player, npc); string_id message = new string_id(c_stringFile, "s_314"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasProcedure03Skill(player, npc)) { naboo_rebel_tier3_action_grantProceduresSkill(player, npc); string_id message = new string_id(c_stringFile, "s_315"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantDroidSkill(player, npc); string_id message = new string_id(c_stringFile, "s_316"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ba5bf569")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_6e75fbb0"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_4ca47de6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 30); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_58ddac81")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_94"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_96"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_6eb747d4")) { doAnimationAction(player, "nod_head_once"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_aacbf366"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_841d27db"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4ca47de6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_692e89db"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_804150c5"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_5bd69df6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 31); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_804150c5")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_629b68ab"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_17c8fb82"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_5bd69df6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_78"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_80"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 44); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_17c8fb82")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_a2f15702"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_1545afe8"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_3d5f6974"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 33); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch33(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1545afe8")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_840cb413"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_119da2e0"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 34); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_3d5f6974")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_3f107c3c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_7d043357"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 39); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_119da2e0")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_9feb4fa3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d178b596"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch35(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d178b596")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_bc380d91"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_b2aaabb1"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 36); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch36(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_b2aaabb1")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_49776d50"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_55d6f6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 37); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch37(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_55d6f6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_d683dc69"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch39(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_7d043357")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_a63013e4"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_4f707592"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 40); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4f707592")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_1611aa95"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_a490d2c6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 41); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_a490d2c6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_8cf5321"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_fdba7430"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 42); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch42(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fdba7430")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_401aa65c"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch44(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_80")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_2d9a2e66"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_83"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 45); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_83")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_85"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_87"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 46); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch46(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_87")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_89"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d561a496"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 47); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch47(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d561a496")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_c872184"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_96")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_98"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_100"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_7d3deb6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 50); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_100")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_102"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_ba11bd82"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 51); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_7d3deb6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_2e3763ed"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_d57982dc"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1a1b97f4"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 54); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ba11bd82")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_91a4e21b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_deccbb06"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 52); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch52(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_deccbb06")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_fb1d4add"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch54(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d57982dc")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d7eb327a"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d55f2579"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 55); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1a1b97f4")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_88e20a47"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_e7150ae1"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d55f2579")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_9f97864a"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_a1217b89"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_a1217b89")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_115"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch58(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_e7150ae1")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d3cb3651"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_121"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 59); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_121")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_28d86e3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_124"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch60(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_124")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_126"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch62(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_841d27db")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d001ebec"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d88c653e"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch63(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d88c653e")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_5491ac40"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_cd53d6a8"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 64); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch64(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_cd53d6a8")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e2e9a78f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_fd120cac"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_cd650ee8"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 65); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch65(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fd120cac")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_10d9119c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_5d126009"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_d3b66245"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 66); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_cd650ee8")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_c5c397c9"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_40b69b18"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_b34ab6f6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 77); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch66(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5d126009")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_8a4f7617"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_3154a04f"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 67); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_d3b66245")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_b5be169d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_fca1dce9"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 73); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch67(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_3154a04f")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_a44e69af"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_f4fff1e0"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 68); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch68(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f4fff1e0")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_31a5e862"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_9d7c11a1"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch69(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_9d7c11a1")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c3fb9152"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_fc9a12c0"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 70); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch70(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fc9a12c0")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_e9c7f196"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_2c4789b"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 71); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch71(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_2c4789b")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_21aa6c60"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch73(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fca1dce9")) { doAnimationAction(player, "shrug_shoulders"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_189c01a2"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_154"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 74); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch74(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_154")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_156"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_158"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 75); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch75(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_158")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_160"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch77(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_40b69b18")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_4ec95981"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_166"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 78); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_b34ab6f6")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_2f820fac"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_6e6f308b"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 81); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch78(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_166")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_168"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_170"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 79); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch79(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_170")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_172"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch81(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_6e6f308b")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_ebd3969d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_3950a8d4"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_3950a8d4")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e5f0e762"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_841654d2"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 83); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch83(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_841654d2")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_54abba14"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_182"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 84); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch84(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_182")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_184"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_186"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 85); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch85(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_186")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_188"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch87(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_2f1094c2")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_27f52134"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_590bda59"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 88); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_8b1d3cb")) { doAnimationAction(player, "shrug_hands"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_930d070e"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_9f3f2aef"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 109); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch88(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_590bda59")) { doAnimationAction(player, "shrug_shoulders"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f0300e70"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (naboo_rebel_tier3_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_4c695dbd"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_d70dba34"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1d69f13f"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch89(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4c695dbd")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e711b5e8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_f845f64a"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 90); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_d70dba34")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_8874f806"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_5fec5259"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1d69f13f")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_2600dae8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_1f94856d"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 105); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch90(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f845f64a")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d15e12a8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_31b106e4"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 91); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch91(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_31b106e4")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_515906d2"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_ea78d92a"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch92(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ea78d92a")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_f68ef5df"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_5cfd5571"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 93); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch93(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5cfd5571")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_19fdbf16"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_133ae1ef"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 94); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch94(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_133ae1ef")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1c058156"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_5d2275e3"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 95); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch95(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5d2275e3")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c9e0d4f1"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_209"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch96(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_209")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_cb3876f5"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch98(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5fec5259")) { doAnimationAction(player, "shrug_shoulders"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_disgust"); string_id message = new string_id(c_stringFile, "s_d5ad9570"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_1dccb274"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch99(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1dccb274")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_81f74c8a"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_bb3b47bf"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 100); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch100(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_bb3b47bf")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "tap_head"); string_id message = new string_id(c_stringFile, "s_c5fd31d9"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_220"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch101(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_220")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_9a2a8f72"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_223"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 102); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch102(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_223")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_225"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_227"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch103(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_227")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_229"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch105(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1f94856d")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_7af82252"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_a6792612"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 106); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch106(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_a6792612")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_belly"); string_id message = new string_id(c_stringFile, "s_97c42bb7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_237"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 107); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch107(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_237")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_f8a22f8"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch109(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_9f3f2aef")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_63e41"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_7eab0dc3"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 110); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch110(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_7eab0dc3")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "greet"); string_id message = new string_id(c_stringFile, "s_22fbdd51"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_170add4"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 111); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch111(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_170add4")) { doAnimationAction(player, "pose_proudly"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_c20e6f2b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_45c4d2ca"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 112); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch112(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_45c4d2ca")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_61b6494b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_250"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 113); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch113(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_250")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_252"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_254"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 114); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch114(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_254")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow"); naboo_rebel_tier3_action_grantQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_256"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch116(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1ab74446")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_2c1e1068"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_98332b2a"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 117); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_9cc8e2ce")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e5e9b349"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_fcf4d778"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 126); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch117(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_98332b2a")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_d40fde1"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_eb5863d5"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 118); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch118(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_eb5863d5")) { doAnimationAction(player, "stamp_feet"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shiver"); string_id message = new string_id(c_stringFile, "s_51fbaf83"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_5f5ad8b2"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 119); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch119(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_5f5ad8b2")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d786a9a7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_267"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 120); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch120(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_267")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "explain"); string_id message = new string_id(c_stringFile, "s_abd40fb"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_da08554e"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 121); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch121(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_da08554e")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "tap_head"); string_id message = new string_id(c_stringFile, "s_aa11d5d2"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_ba42ea16"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 122); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch122(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ba42ea16")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_no"); string_id message = new string_id(c_stringFile, "s_96483773"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_2330166f"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 123); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch123(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_2330166f")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_d611f5ae"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_6a273da9"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 124); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch124(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_6a273da9")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow"); naboo_rebel_tier3_action_grantQuestThree(player, npc); string_id message = new string_id(c_stringFile, "s_68355d90"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch126(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fcf4d778")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_9865d5b5"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_cdcbf519"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 127); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch127(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_cdcbf519")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "pound_fist_palm"); string_id message = new string_id(c_stringFile, "s_ef42359f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d5f9f79b"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 128); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch128(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d5f9f79b")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "bow2"); naboo_rebel_tier3_action_grantQuestThree(player, npc); string_id message = new string_id(c_stringFile, "s_18c308e1"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch130(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_3c566f87")) { doAnimationAction(player, "smack_self"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_b70082a7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_420c68fc"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 131); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_9e4cb685")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d41d97bf"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_93c9d623"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 140); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch131(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_420c68fc")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "sigh_deeply"); string_id message = new string_id(c_stringFile, "s_d764414f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_26fbd13e"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 132); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch132(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_26fbd13e")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "laugh"); string_id message = new string_id(c_stringFile, "s_58ec27cc"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_4869a9c5"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 133); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch133(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4869a9c5")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_47ae0171"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_a64028fc"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 134); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch134(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_a64028fc")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_92ecc2cf"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_8a212117"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 135); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch135(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_8a212117")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod_head_once"); string_id message = new string_id(c_stringFile, "s_c1e154f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_ed8cbd3f"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 136); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch136(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ed8cbd3f")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_e77894ce"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_c5c41a6"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 137); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch137(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_c5c41a6")) { doAnimationAction(player, "shake_head_no"); if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f92771aa"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_e494ecca"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 138); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch138(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_e494ecca")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "dismiss"); naboo_rebel_tier3_action_grantQuestFour(player, npc); string_id message = new string_id(c_stringFile, "s_aa7a038e"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch140(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_93c9d623")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_bc7aea36"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_82cf4ca7"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 141); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch141(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_82cf4ca7")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_39b859cf"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_6bdcb65c"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 142); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int naboo_rebel_tier3_handleBranch142(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_6bdcb65c")) { if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { naboo_rebel_tier3_action_grantQuestFour(player, npc); string_id message = new string_id(c_stringFile, "s_b24e355f"); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.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.naboo_rebel_tier3"); } setCondition(self, CONDITION_CONVERSABLE); setInvulnerable(self, true); setCondition(self, CONDITION_SPACE_INTERESTING); factions.setFaction(self, factions.FACTION_REBEL); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setInvulnerable(self, true); setCondition(self, CONDITION_SPACE_INTERESTING); factions.setFaction(self, factions.FACTION_REBEL); 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.naboo_rebel_tier3"); 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 (!naboo_rebel_tier3_condition_isPilot(player, npc)) { string_id message = new string_id(c_stringFile, "s_8a226979"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_isReadyForTier4(player, npc)) { doAnimationAction(npc, "bow3"); doAnimationAction(player, "bow3"); string_id message = new string_id(c_stringFile, "s_cbc2d68c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_9ac7f904"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_eb3c17f0"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 2); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "naboo_rebel_tier3", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_isCorrectFaction(player, npc)) { string_id message = new string_id(c_stringFile, "s_13"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_onMyTrack(player, npc)) { doAnimationAction(npc, "bow"); string_id message = new string_id(c_stringFile, "s_3e7fb8a3"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_hasNegativeFaction(player, npc)) { doAnimationAction(npc, "slump_head"); string_id message = new string_id(c_stringFile, "s_74967449"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_ceaea132"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 9); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "naboo_rebel_tier3", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_isReadyForTier3(player, npc)) { string_id message = new string_id(c_stringFile, "s_2750c5d9"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_isOnQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_44fd681b"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_failedQuestOne(player, npc)) { naboo_rebel_tier3_action_grantQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_1ba01028"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_failedQuestTwo(player, npc)) { string_id message = new string_id(c_stringFile, "s_4f98b9b7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_a0e6a107"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_30760d01"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 14); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_failedQuestThree(player, npc)) { string_id message = new string_id(c_stringFile, "s_840116ce"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_ded27301"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_fd2e11b9"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 17); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_failedQuestFour(player, npc)) { naboo_rebel_tier3_action_grantQuestFour(player, npc); string_id message = new string_id(c_stringFile, "s_51fbced7"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_collectingQuestOneReward(player, npc)) { naboo_rebel_tier3_action_rewardForQuestOne(player, npc); string_id message = new string_id(c_stringFile, "s_eeb2051f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_312"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 21); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "naboo_rebel_tier3", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_collectingQuestTwoReward(player, npc)) { naboo_rebel_tier3_action_rewardForQuestTwo(player, npc); string_id message = new string_id(c_stringFile, "s_6dea91bd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_312"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 21); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_collectingQuestThreeReward(player, npc)) { naboo_rebel_tier3_action_rewardForQuestThree(player, npc); string_id message = new string_id(c_stringFile, "s_f8438ea7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_312"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 21); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition_collectingQuestFourReward(player, npc)) { naboo_rebel_tier3_action_rewardForQuestFour(player, npc); string_id message = new string_id(c_stringFile, "s_5beffaeb"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_312"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 21); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasCompletedQuestOne(player, npc)) { doAnimationAction(npc, "bow"); string_id message = new string_id(c_stringFile, "s_a285e391"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (naboo_rebel_tier3_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_ba5bf569"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_58ddac81"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_6eb747d4"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 29); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "naboo_rebel_tier3", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasCompletedQuestTwo(player, npc)) { string_id message = new string_id(c_stringFile, "s_3f38ab04"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_2f1094c2"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_8b1d3cb"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 87); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "naboo_rebel_tier3", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } if (!naboo_rebel_tier3_condition_hasCompletedQuestThree(player, npc)) { doAnimationAction(npc, "greet"); string_id message = new string_id(c_stringFile, "s_8287425f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_1ab74446"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_9cc8e2ce"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 116); npcStartConversation(player, npc, "naboo_rebel_tier3", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "beckon"); string_id message = new string_id(c_stringFile, "s_fffd9426"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (naboo_rebel_tier3_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (naboo_rebel_tier3_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_3c566f87"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_9e4cb685"); } utils.setScriptVar(player, "conversation.naboo_rebel_tier3.branchId", 130); npcStartConversation(player, npc, "naboo_rebel_tier3", 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("naboo_rebel_tier3")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); if (branchId == 2 && naboo_rebel_tier3_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && naboo_rebel_tier3_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 5 && naboo_rebel_tier3_handleBranch5(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && naboo_rebel_tier3_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 14 && naboo_rebel_tier3_handleBranch14(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 17 && naboo_rebel_tier3_handleBranch17(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 21 && naboo_rebel_tier3_handleBranch21(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 26 && naboo_rebel_tier3_handleBranch26(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 27 && naboo_rebel_tier3_handleBranch27(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 28 && naboo_rebel_tier3_handleBranch28(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 29 && naboo_rebel_tier3_handleBranch29(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 30 && naboo_rebel_tier3_handleBranch30(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 31 && naboo_rebel_tier3_handleBranch31(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 32 && naboo_rebel_tier3_handleBranch32(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 33 && naboo_rebel_tier3_handleBranch33(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 34 && naboo_rebel_tier3_handleBranch34(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 35 && naboo_rebel_tier3_handleBranch35(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 36 && naboo_rebel_tier3_handleBranch36(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 37 && naboo_rebel_tier3_handleBranch37(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 39 && naboo_rebel_tier3_handleBranch39(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 40 && naboo_rebel_tier3_handleBranch40(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 41 && naboo_rebel_tier3_handleBranch41(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 42 && naboo_rebel_tier3_handleBranch42(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 44 && naboo_rebel_tier3_handleBranch44(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 45 && naboo_rebel_tier3_handleBranch45(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 46 && naboo_rebel_tier3_handleBranch46(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 47 && naboo_rebel_tier3_handleBranch47(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && naboo_rebel_tier3_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 50 && naboo_rebel_tier3_handleBranch50(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 51 && naboo_rebel_tier3_handleBranch51(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 52 && naboo_rebel_tier3_handleBranch52(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 54 && naboo_rebel_tier3_handleBranch54(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 55 && naboo_rebel_tier3_handleBranch55(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && naboo_rebel_tier3_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 58 && naboo_rebel_tier3_handleBranch58(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 59 && naboo_rebel_tier3_handleBranch59(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 60 && naboo_rebel_tier3_handleBranch60(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 62 && naboo_rebel_tier3_handleBranch62(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 63 && naboo_rebel_tier3_handleBranch63(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 64 && naboo_rebel_tier3_handleBranch64(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 65 && naboo_rebel_tier3_handleBranch65(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 66 && naboo_rebel_tier3_handleBranch66(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 67 && naboo_rebel_tier3_handleBranch67(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 68 && naboo_rebel_tier3_handleBranch68(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 69 && naboo_rebel_tier3_handleBranch69(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 70 && naboo_rebel_tier3_handleBranch70(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 71 && naboo_rebel_tier3_handleBranch71(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 73 && naboo_rebel_tier3_handleBranch73(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 74 && naboo_rebel_tier3_handleBranch74(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 75 && naboo_rebel_tier3_handleBranch75(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 77 && naboo_rebel_tier3_handleBranch77(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 78 && naboo_rebel_tier3_handleBranch78(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 79 && naboo_rebel_tier3_handleBranch79(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 81 && naboo_rebel_tier3_handleBranch81(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 82 && naboo_rebel_tier3_handleBranch82(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 83 && naboo_rebel_tier3_handleBranch83(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 84 && naboo_rebel_tier3_handleBranch84(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 85 && naboo_rebel_tier3_handleBranch85(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 87 && naboo_rebel_tier3_handleBranch87(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 88 && naboo_rebel_tier3_handleBranch88(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 89 && naboo_rebel_tier3_handleBranch89(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 90 && naboo_rebel_tier3_handleBranch90(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 91 && naboo_rebel_tier3_handleBranch91(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 92 && naboo_rebel_tier3_handleBranch92(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 93 && naboo_rebel_tier3_handleBranch93(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 94 && naboo_rebel_tier3_handleBranch94(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 95 && naboo_rebel_tier3_handleBranch95(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 96 && naboo_rebel_tier3_handleBranch96(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 98 && naboo_rebel_tier3_handleBranch98(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 99 && naboo_rebel_tier3_handleBranch99(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 100 && naboo_rebel_tier3_handleBranch100(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 101 && naboo_rebel_tier3_handleBranch101(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 102 && naboo_rebel_tier3_handleBranch102(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 103 && naboo_rebel_tier3_handleBranch103(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 105 && naboo_rebel_tier3_handleBranch105(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 106 && naboo_rebel_tier3_handleBranch106(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 107 && naboo_rebel_tier3_handleBranch107(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 109 && naboo_rebel_tier3_handleBranch109(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 110 && naboo_rebel_tier3_handleBranch110(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 111 && naboo_rebel_tier3_handleBranch111(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 112 && naboo_rebel_tier3_handleBranch112(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 113 && naboo_rebel_tier3_handleBranch113(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 114 && naboo_rebel_tier3_handleBranch114(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 116 && naboo_rebel_tier3_handleBranch116(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 117 && naboo_rebel_tier3_handleBranch117(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 118 && naboo_rebel_tier3_handleBranch118(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 119 && naboo_rebel_tier3_handleBranch119(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 120 && naboo_rebel_tier3_handleBranch120(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 121 && naboo_rebel_tier3_handleBranch121(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 122 && naboo_rebel_tier3_handleBranch122(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 123 && naboo_rebel_tier3_handleBranch123(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 124 && naboo_rebel_tier3_handleBranch124(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 126 && naboo_rebel_tier3_handleBranch126(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 127 && naboo_rebel_tier3_handleBranch127(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 128 && naboo_rebel_tier3_handleBranch128(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 130 && naboo_rebel_tier3_handleBranch130(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 131 && naboo_rebel_tier3_handleBranch131(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 132 && naboo_rebel_tier3_handleBranch132(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 133 && naboo_rebel_tier3_handleBranch133(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 134 && naboo_rebel_tier3_handleBranch134(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 135 && naboo_rebel_tier3_handleBranch135(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 136 && naboo_rebel_tier3_handleBranch136(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 137 && naboo_rebel_tier3_handleBranch137(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 138 && naboo_rebel_tier3_handleBranch138(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 140 && naboo_rebel_tier3_handleBranch140(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 141 && naboo_rebel_tier3_handleBranch141(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 142 && naboo_rebel_tier3_handleBranch142(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse."); utils.removeScriptVar(player, "conversation.naboo_rebel_tier3.branchId"); return SCRIPT_CONTINUE; } }