package script.conversation; import script.library.*; import script.*; public class station_talus extends script.base_script { public station_talus() { } public static String c_stringFile = "conversation/station_talus"; public boolean station_talus_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean station_talus_condition_canAfford50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.50f); } public boolean station_talus_condition_canAfford25(obj_id player, obj_id npc) throws InterruptedException { return (space_crafting.canAffordShipRepairs(player, npc, 0.25f) && space_crafting.isDamaged(player)); } public boolean station_talus_condition_canAfford75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.75f); } public boolean station_talus_condition_canAfford100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 1.0f); } public boolean station_talus_condition_needRepairs(obj_id player, obj_id npc) throws InterruptedException { float fltDamage = space_crafting.getDamageTotal(player, getPilotedShip(player)); if (fltDamage > 0) { return true; } return false; } public boolean station_talus_condition_isTooFar(obj_id player, obj_id npc) throws InterruptedException { space_combat.playCombatTauntSound(player); obj_id containingShip = space_transition.getContainingShip(player); return (getDistance(npc, containingShip) > space_transition.STATION_COMM_MAX_DISTANCE); } public boolean station_talus_condition_isSmuggler(obj_id player, obj_id npc) throws InterruptedException { return hasSkill(player, "combat_smuggler_underworld_01"); } public boolean station_talus_condition_isSmugglerTooFar(obj_id player, obj_id npc) throws InterruptedException { return (station_talus_condition_isSmuggler(player, npc) && station_talus_condition_isTooFar(player, npc)); } public boolean station_talus_condition_isTalusSmuggler(obj_id player, obj_id npc) throws InterruptedException { return hasObjVar(player, "talus_station.smuggler"); } public boolean station_talus_condition_isTier1CorelliaImperial(obj_id player, obj_id npc) throws InterruptedException { return (space_flags.isInTierOne(player) && space_flags.isSpaceTrack(player, space_flags.IMPERIAL_CORELLIA)); } public boolean station_talus_condition_isImperialCondition(obj_id player, obj_id npc) throws InterruptedException { return space_flags.isImperialPilot(player); } public boolean station_talus_condition_failedStoryQuest(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasFailedQuestRecursive(player, "delivery", "talus_station_mission1_1") || space_quest.hasAbortedQuestRecursive(player, "delivery", "talus_station_mission1_1")) { return true; } return false; } public boolean station_talus_condition_wonStoryQuest(obj_id player, obj_id npc) throws InterruptedException { if (hasSkill(player, "combat_smuggler_underworld_01") && space_quest.hasWonQuest(player, "delivery", "talus_station_mission4_2")) { int flag = space_flags.getIntSpaceFlag(player, "talus_station"); if (flag == 1) { return true; } return false; } return false; } public boolean station_talus_condition_readyForRun(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.hasSpaceFlag(player, "talus_station")) { int flag = space_flags.getIntSpaceFlag(player, "talus_station"); if (flag == 2) { return true; } return false; } return false; } public boolean station_talus_condition_hasAQuest(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasQuest(player); } public boolean station_talus_condition_canLandAtHouse(obj_id player, obj_id npc) throws InterruptedException { if (hasObjVar(player, "homingBeacon.planet")) { String homePlanet = getStringObjVar(player, "homingBeacon.planet"); return (homePlanet.endsWith("talus")); } else { return false; } } public boolean station_talus_condition_canTakeQuest(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasQuest(player)) { return false; } return true; } public boolean station_talus_condition_canAttackImperial(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player)) { return true; } return false; } public boolean station_talus_condition_canAttackRebel(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player)) { return true; } return false; } public boolean station_talus_condition_canTakeTier5ImperialDuty(obj_id player, obj_id npc) throws InterruptedException { if (!space_skill.isMasterPilot(player)) { return false; } if (space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player)) { return true; } return false; } public boolean station_talus_condition_canTakeTier5RebelDuty(obj_id player, obj_id npc) throws InterruptedException { if (!space_skill.isMasterPilot(player)) { return false; } if (space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player)) { return true; } return false; } public void station_talus_action_landStation3(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Daoba Guerfel Starport"); } public void station_talus_action_fix25(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.25f); } public void station_talus_action_fix50(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.50f); } public void station_talus_action_fix75(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.75f); } public void station_talus_action_fix100(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 1.0f); } public void station_talus_action_landStation1(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Dearic Starport"); } public void station_talus_action_landStation2(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Nashal Starport"); } public void station_talus_action_landStation4(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Talus Imperial Outpost"); } public void station_talus_action_flagTalusSmuggler(obj_id player, obj_id npc) throws InterruptedException { setObjVar(player, "talus_station.smuggler", true); } public void station_talus_action_grantStoryQuest(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "delivery", "talus_station_mission1_1"); space_flags.setSpaceFlag(player, "talus_station", 1); } public void station_talus_action_giveStoryReward(obj_id player, obj_id npc) throws InterruptedException { space_flags.setSpaceFlag(player, "talus_station", 2); } public void station_talus_action_grantTuskCatRun(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "delivery", "talus_station_mission5_1"); } public void station_talus_action_landHoming(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayerHoming(player, npc); } public void station_talus_action_grantImperialDuty1(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_imperial_tier1"); } public void station_talus_action_grantImperialDuty2(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_imperial_tier2"); } public void station_talus_action_grantRebelDuty1(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_rebel_tier1"); } public void station_talus_action_grantRebelDuty2(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_rebel_tier2"); } public void station_talus_action_grantBlackSunDuty1(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_blacksun_tier1"); } public void station_talus_action_grantBlackSunDuty2(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_blacksun_tier2"); } public void station_talus_action_grantRebelDuty5(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_rebel_tier5"); } public void station_talus_action_grantImperialDuty5(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "corellia_imperial_tier5"); } public String station_talus_tokenTO_tokenTO0001(obj_id player, obj_id npc) throws InterruptedException { return new String(); } public int station_talus_tokenDI_getStationRepairCost25(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.25f); } public int station_talus_tokenDI_getStationRepairCost50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.50f); } public int station_talus_tokenDI_getStationRepairCost75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.75f); } public int station_talus_tokenDI_getStationRepairCost100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 1.0f); } public int station_talus_handleBranch1(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f3dea437")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_3eaa38fc"); utils.removeScriptVar(player, "conversation.station_talus.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_169df3bb")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_c8613339"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_9")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_c245bae"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_12")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_14"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_38ddef56")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_ff85dbce"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (!station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_f7c832f1"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_9b8f2142"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_16015565"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_2902ab38"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 10); 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.station_talus.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_c36f297f")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_808845f3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d082abf0"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_38572429"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_5cf3921"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_ba2af981"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_100"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 23); 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.station_talus.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_b1f89988")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_536fb215"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_262")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_251"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canTakeTier5RebelDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_talus_condition_canTakeTier5ImperialDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } boolean hasResponse8 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse8 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_253"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_257"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_282"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_261"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_267"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_284"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_271"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_275"); } if (hasResponse8) { responses[responseIndex++] = new string_id(c_stringFile, "s_279"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 86); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_305434ff")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_ff85dbce"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (!station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_f7c832f1"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_9b8f2142"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_16015565"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_2902ab38"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 10); 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.station_talus.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_6c8ffad8")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_808845f3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_d082abf0"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_38572429"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_5cf3921"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_ba2af981"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_100"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 23); 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.station_talus.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_1b3d0b9e")) { if (station_talus_condition_hasAQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_39ecf00a"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_talus_condition_readyForRun(player, npc)) { string_id message = new string_id(c_stringFile, "s_a9bcbfea"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_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_b27ab51e"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_c2a24c7f"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_be61c03c"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 38); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_talus_condition_failedStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_918c1120"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_e03a2006"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_40163a4"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 45); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_20df8d79"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_998a06e6"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_263")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_251"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canTakeTier5RebelDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_talus_condition_canTakeTier5ImperialDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } boolean hasResponse8 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse8 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_253"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_257"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_282"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_261"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_267"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_284"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_271"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_275"); } if (hasResponse8) { responses[responseIndex++] = new string_id(c_stringFile, "s_279"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 86); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f7c832f1")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_22f23540"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_67820697"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_13cd465"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 11); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_9b8f2142")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_103ebe2f"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_33"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_37"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 14); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_16015565")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_16dacacf"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_43"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_47"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 17); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_2902ab38")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_52"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_54"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_58"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 20); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch11(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_67820697")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation4(player, npc); string_id message = new string_id(c_stringFile, "s_234498b9"); utils.removeScriptVar(player, "conversation.station_talus.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_13cd465")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_ec207c14"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_33")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation1(player, npc); string_id message = new string_id(c_stringFile, "s_35"); utils.removeScriptVar(player, "conversation.station_talus.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_37")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_39"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_43")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation2(player, npc); string_id message = new string_id(c_stringFile, "s_45"); utils.removeScriptVar(player, "conversation.station_talus.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_47")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_49"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_54")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation4(player, npc); string_id message = new string_id(c_stringFile, "s_56"); utils.removeScriptVar(player, "conversation.station_talus.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_58")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_60"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch23(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d082abf0")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_afed720c"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_d70dba34"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_4c695dbd"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 24); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost25(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost25(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_38572429")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_69e2af52"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_72"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_76"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 27); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost50(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost50(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_5cf3921")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_b2f28d35"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_82"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_86"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 30); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost75(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost75(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_ba2af981")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_5e5b02dc"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_92"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_96"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 33); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost100(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost100(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_100")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_102"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch24(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_d70dba34")) { station_talus_action_fix25(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_460e892f"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_4c695dbd")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_494f7626"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_72")) { station_talus_action_fix50(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_74"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_76")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_78"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_82")) { station_talus_action_fix75(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_84"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_86")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_88"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch33(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_92")) { station_talus_action_fix100(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_94"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_96")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_98"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_b27ab51e")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantTuskCatRun(player, npc); string_id message = new string_id(c_stringFile, "s_278cd19d"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_c2a24c7f")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_2b17557d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_ab77f60d"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 40); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_be61c03c")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_118"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_ab77f60d")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_86511be7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_8c4754ed"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_55ea041"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 41); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_8c4754ed")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantTuskCatRun(player, npc); string_id message = new string_id(c_stringFile, "s_91f9c80"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_55ea041")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_8bc61a14"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_e03a2006")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantStoryQuest(player, npc); string_id message = new string_id(c_stringFile, "s_5360ec3f"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_40163a4")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_124"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_998a06e6")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_608c1c86"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_fe3902e2"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_fe3902e2")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_ec7d72e3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_b3c0bdbd"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 50); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_b3c0bdbd")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_80d1bac3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_7b41cc12"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 51); 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.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_7b41cc12")) { if (station_talus_condition_isImperialCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_6997c76"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantStoryQuest(player, npc); string_id message = new string_id(c_stringFile, "s_622304ca"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_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_9288900f"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 53); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch53(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_9288900f")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_7dbb29de"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_f34bcf78")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_3ee404d7"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (!station_talus_condition_isTier1CorelliaImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition_canLandAtHouse(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_142"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_152"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_163"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_174"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_234"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 56); 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.station_talus.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_c358d041")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_335e1e3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_194"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_216"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_228"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_245"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 72); 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.station_talus.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_249")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_251"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canTakeTier5RebelDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_talus_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_talus_condition_canTakeTier5ImperialDuty(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } boolean hasResponse8 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse8 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_253"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_257"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_282"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_261"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_267"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_284"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_271"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_275"); } if (hasResponse8) { responses[responseIndex++] = new string_id(c_stringFile, "s_279"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 86); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_142")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_cd4fd870"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_145"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_148"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_152")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_5e3d8b95"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_155"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_159"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_163")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d3b3ffb2"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_166"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_170"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_174")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_176"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_178"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_182"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 66); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_234")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_235"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_236"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_237"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch57(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_145")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation4(player, npc); string_id message = new string_id(c_stringFile, "s_672b2c6f"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_148")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_150"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch60(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_155")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation1(player, npc); string_id message = new string_id(c_stringFile, "s_157"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_159")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_161"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch63(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_166")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation2(player, npc); string_id message = new string_id(c_stringFile, "s_168"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_170")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_172"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch66(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_178")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landStation4(player, npc); string_id message = new string_id(c_stringFile, "s_180"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_182")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_184"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch69(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_236")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_landHoming(player, npc); string_id message = new string_id(c_stringFile, "s_238"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_237")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_239"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch72(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_194")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_3adc835a"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_197"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_200"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 73); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost25(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost25(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_204")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_206"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_208"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_212"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 76); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost50(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost50(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_216")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_218"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_220"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_224"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 79); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost75(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost75(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_228")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_230"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_232"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_241"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 82); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost100(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_talus.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_talus_tokenDI_getStationRepairCost100(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_245")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_247"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch73(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_197")) { station_talus_action_fix25(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f895eb69"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_200")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_202"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch76(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_208")) { station_talus_action_fix50(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_210"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_212")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_214"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch79(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_220")) { station_talus_action_fix75(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_222"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_224")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_226"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_232")) { station_talus_action_fix100(player, npc); if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_fd46b8d9"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_241")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_243"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_talus_handleBranch86(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_253")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantRebelDuty1(player, npc); string_id message = new string_id(c_stringFile, "s_255"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_257")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantRebelDuty2(player, npc); string_id message = new string_id(c_stringFile, "s_259"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_282")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantRebelDuty5(player, npc); string_id message = new string_id(c_stringFile, "s_283"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_261")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantImperialDuty1(player, npc); string_id message = new string_id(c_stringFile, "s_265"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_267")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantImperialDuty2(player, npc); string_id message = new string_id(c_stringFile, "s_269"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_284")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantImperialDuty5(player, npc); string_id message = new string_id(c_stringFile, "s_285"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_271")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantBlackSunDuty1(player, npc); string_id message = new string_id(c_stringFile, "s_273"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_275")) { if (station_talus_condition__defaultCondition(player, npc)) { station_talus_action_grantBlackSunDuty2(player, npc); string_id message = new string_id(c_stringFile, "s_277"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_279")) { if (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_281"); utils.removeScriptVar(player, "conversation.station_talus.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int OnInitialize(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_talus.iff"); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_talus.iff"); return SCRIPT_CONTINUE; } public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info menuInfo) throws InterruptedException { int menu = menuInfo.addRootMenu(menu_info_types.CONVERSE_START, null); menu_info_data menuInfoData = menuInfo.getMenuItemById(menu); menuInfoData.setServerNotify(false); setCondition(self, CONDITION_CONVERSABLE); return SCRIPT_CONTINUE; } public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException { clearCondition(self, CONDITION_CONVERSABLE); detachScript(self, "conversation.station_talus"); 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 (station_talus_condition_isSmugglerTooFar(player, npc)) { string_id message = new string_id(c_stringFile, "s_90ab9704"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_f3dea437"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_169df3bb"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 1); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_talus", 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 (station_talus_condition_isTooFar(player, npc)) { string_id message = new string_id(c_stringFile, "s_3a99c5fa"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_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_9"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_12"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 4); npcStartConversation(player, npc, "station_talus", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_talus_condition_wonStoryQuest(player, npc)) { station_talus_action_giveStoryReward(player, npc); string_id message = new string_id(c_stringFile, "s_ab4e2dfb"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canTakeQuest(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_38ddef56"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_c36f297f"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_b1f89988"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_262"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 7); npcStartConversation(player, npc, "station_talus", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_talus_condition_isSmuggler(player, npc)) { string_id message = new string_id(c_stringFile, "s_8633b901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_talus_condition_canTakeQuest(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_305434ff"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_6c8ffad8"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1b3d0b9e"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_263"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 9); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_talus", 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 (station_talus_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_a830645d"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_talus_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_talus_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_talus_condition_canTakeQuest(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_f34bcf78"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_c358d041"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_249"); } utils.setScriptVar(player, "conversation.station_talus.branchId", 55); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_talus", 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; } 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("station_talus")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.station_talus.branchId"); if (branchId == 1 && station_talus_handleBranch1(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 4 && station_talus_handleBranch4(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 7 && station_talus_handleBranch7(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && station_talus_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 10 && station_talus_handleBranch10(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 11 && station_talus_handleBranch11(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 14 && station_talus_handleBranch14(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 17 && station_talus_handleBranch17(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 20 && station_talus_handleBranch20(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 23 && station_talus_handleBranch23(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 24 && station_talus_handleBranch24(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 27 && station_talus_handleBranch27(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 30 && station_talus_handleBranch30(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 33 && station_talus_handleBranch33(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 38 && station_talus_handleBranch38(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 40 && station_talus_handleBranch40(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 41 && station_talus_handleBranch41(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 45 && station_talus_handleBranch45(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 48 && station_talus_handleBranch48(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && station_talus_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 50 && station_talus_handleBranch50(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 51 && station_talus_handleBranch51(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 53 && station_talus_handleBranch53(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 55 && station_talus_handleBranch55(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && station_talus_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 57 && station_talus_handleBranch57(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 60 && station_talus_handleBranch60(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 63 && station_talus_handleBranch63(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 66 && station_talus_handleBranch66(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 69 && station_talus_handleBranch69(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 72 && station_talus_handleBranch72(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 73 && station_talus_handleBranch73(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 76 && station_talus_handleBranch76(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 79 && station_talus_handleBranch79(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 82 && station_talus_handleBranch82(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 86 && station_talus_handleBranch86(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse."); utils.removeScriptVar(player, "conversation.station_talus.branchId"); return SCRIPT_CONTINUE; } }