package script.conversation; import script.library.*; import script.*; public class station_kashyyyk extends script.base_script { public station_kashyyyk() { } public static String c_stringFile = "conversation/station_kashyyyk"; public boolean station_kashyyyk_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean station_kashyyyk_condition_canAfford50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.50f); } public boolean station_kashyyyk_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_kashyyyk_condition_canAfford75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.75f); } public boolean station_kashyyyk_condition_canAfford100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 1.0f); } public boolean station_kashyyyk_condition_hasWonQuest_01(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "escort", "ep3_kash_station_escort_alpha")); } public boolean station_kashyyyk_condition_hasWonQuest_02(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "escort", "ep3_kash_station_escort_bravo")); } public boolean station_kashyyyk_condition_hasWonQuest_03(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "rescue", "ep3_kash_station_rescue_alpha")); } public boolean station_kashyyyk_condition_hasWonQuest_04(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "rescue", "ep3_kash_station_rescue_bravo")); } public boolean station_kashyyyk_condition_isOnQuest_escort_alpha(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasQuest(player, "escort", "ep3_kash_station_escort_alpha")); } public boolean station_kashyyyk_condition_hasFailedQuest_01(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasFailedQuest(player, "escort", "ep3_kash_station_escort_alpha") || space_quest.hasAbortedQuest(player, "escort", "ep3_kash_station_escort_alpha")); } public boolean station_kashyyyk_condition_hasBeenRewarded_01(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasReceivedReward(player, "escort", "ep3_kash_station_escort_alpha"); } public boolean station_kashyyyk_condition_hasFailedQuest_02(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasFailedQuest(player, "escort", "ep3_kash_station_escort_bravo") || space_quest.hasAbortedQuest(player, "escort", "ep3_kash_station_escort_bravo")); } public boolean station_kashyyyk_condition_hasBeenRewarded_02(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasReceivedReward(player, "escort", "ep3_kash_station_escort_bravo"); } public boolean station_kashyyyk_condition_hasWon01_not02yet(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "escort", "ep3_kash_station_escort_alpha") && (!space_quest.hasWonQuest(player, "escort", "ep3_kash_station_escort_bravo"))); } public boolean station_kashyyyk_condition_hasWon02_not03yet(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "escort", "ep3_kash_station_escort_bravo") && (!space_quest.hasWonQuest(player, "rescue", "ep3_kash_station_rescue_alpha"))); } public boolean station_kashyyyk_condition_hasWon03_not04yet(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "rescue", "ep3_kash_station_rescue_alpha") && (!space_quest.hasWonQuest(player, "rescue", "ep3_kash_station_rescue_bravo"))); } public boolean station_kashyyyk_condition_hasDoneGround_01(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.hasCompletedQuest(player, "ep3_kash_station_contact_eyma_01")); } public boolean station_kashyyyk_condition_hasWon_assassinations(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasReceivedReward(player, "assassinate", "ep3_kash_station_assassinate_neutral") || space_quest.hasReceivedReward(player, "assassinate", "ep3_kash_station_assassinate_rebel") || space_quest.hasReceivedReward(player, "assassinate", "ep3_kash_station_assassinate_imperial")); } public boolean station_kashyyyk_condition_isOnQuest_ground_01(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isQuestActive(player, "ep3_kash_station_contact_eyma_01")); } public boolean station_kashyyyk_condition_isOnQuest_AMBUSH(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasQuest(player, "destroy_surpriseattack", "ep3_kash_station_ghrag_ambush") || space_quest.hasQuest(player, "destroy_surpriseattack", "ep3_kash_station_ghrag_ambush_strong")); } public boolean station_kashyyyk_condition_hasFailedQuest_03(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasFailedQuest(player, "rescue", "ep3_kash_station_rescue_alpha") || space_quest.hasAbortedQuest(player, "rescue", "ep3_kash_station_rescue_alpha")); } public boolean station_kashyyyk_condition_isOnQuest_ground_00(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isQuestActive(player, "ep3_kash_station_contact_eyma_00")); } public boolean station_kashyyyk_condition_isOnQuest_rescue_alpha(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasQuest(player, "rescue", "ep3_kash_station_rescue_alpha")); } public boolean station_kashyyyk_condition_isOnQuest_escort_bravo(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasQuest(player, "escort", "ep3_kash_station_escort_bravo")); } public boolean station_kashyyyk_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_kashyyyk_condition_hasBadge_visited_Kachirho(obj_id player, obj_id npc) throws InterruptedException { return badge.hasBadge(player, "exp_kash_kachirho_found"); } public boolean station_kashyyyk_condition_hasBeenRewarded_blacksun_heavy(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasReceivedReward(player, "recovery", "ep3_blacksun_heavy_recovery"); } public boolean station_kashyyyk_condition_hasWon_blacksun_heavy_recovery(obj_id player, obj_id npc) throws InterruptedException { return (space_quest.hasWonQuest(player, "recovery", "ep3_blacksun_heavy_recovery") && !space_quest.hasReceivedReward(player, "recovery", "ep3_blacksun_heavy_recovery")); } public boolean station_kashyyyk_condition_isNeutralPilot(obj_id player, obj_id npc) throws InterruptedException { return (space_battlefield.isInNeutralShip(player) || pvpGetAlignedFaction(player) == (534523985)); } public void station_kashyyyk_action_land_kashyyyk(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Kachirho Starport"); } public void station_kashyyyk_action_fix25(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.25f); } public void station_kashyyyk_action_fix50(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.50f); } public void station_kashyyyk_action_fix75(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.75f); } public void station_kashyyyk_action_fix100(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 1.0f); } public void station_kashyyyk_action_grantQuest_01(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "escort", "ep3_kash_station_escort_alpha"); } public void station_kashyyyk_action_grantQuest_02(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "escort", "ep3_kash_station_escort_bravo"); } public void station_kashyyyk_action_grantQuest_03(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "rescue", "ep3_kash_station_rescue_alpha"); } public void station_kashyyyk_action_grantQuest_04(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "rescue", "ep3_kash_station_rescue_bravo"); } public void station_kashyyyk_action_rewardQuest_01(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "escort", "ep3_kash_station_escort_alpha")) { space_quest.giveReward(player, "escort", "ep3_kash_station_escort_alpha", 400); } } public void station_kashyyyk_action_rewardQuest_02(obj_id player, obj_id npc) throws InterruptedException { if (!space_quest.hasReceivedReward(player, "escort", "ep3_kash_station_escort_bravo")) { space_quest.giveReward(player, "escort", "ep3_kash_station_escort_bravo", 500); } } public void station_kashyyyk_action_grantDuty_escort(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "escort_duty", "ep3_kash_station_escort_duty"); } public void station_kashyyyk_action_giveGroundQuest_01(obj_id player, obj_id npc) throws InterruptedException { groundquests.grantQuest(player, "ep3_kash_station_contact_eyma_01"); } public void station_kashyyyk_action_grantDuty_destroy(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "ep3_kash_station_destroy_duty_neutral"); } public void station_kashyyyk_action_giveGroundQuest_00(obj_id player, obj_id npc) throws InterruptedException { groundquests.grantQuest(player, "ep3_kash_station_contact_eyma_00"); } public void station_kashyyyk_action_Land_and_GrantBadge_visited_Kachirho(obj_id player, obj_id npc) throws InterruptedException { badge.grantBadge(player, "exp_kash_kachirho_found"); space_content.landPlayer(player, npc, "Kachirho Starport"); } public void station_kashyyyk_action_grantQuest_blacksun_heavy_recovery(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "recovery", "ep3_blacksun_heavy_recovery"); } public void station_kashyyyk_action_giveReward_blacksun_heavy(obj_id player, obj_id npc) throws InterruptedException { badge.grantBadge(player, "bdg_kash_neutral_blacksun_heavy"); space_quest.giveReward(player, "recovery", "ep3_blacksun_heavy_recovery", 15000, "object/tangible/ship/crafted/chassis/blacksun_vaksai_reward_deed.iff"); } public int station_kashyyyk_tokenDI_getStationRepairCost25(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.25f); } public int station_kashyyyk_tokenDI_getStationRepairCost50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.50f); } public int station_kashyyyk_tokenDI_getStationRepairCost75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.75f); } public int station_kashyyyk_tokenDI_getStationRepairCost100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 1.0f); } public int station_kashyyyk_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_208")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_210"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_214"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 3); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_222")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_226"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_394"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_418"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 5); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_247")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_249"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_214")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_Land_and_GrantBadge_visited_Kachirho(player, npc); string_id message = new string_id(c_stringFile, "s_218"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_394")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_396"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_398"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_402"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 6); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_418")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_Land_and_GrantBadge_visited_Kachirho(player, npc); string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_398")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_Land_and_GrantBadge_visited_Kachirho(player, npc); string_id message = new string_id(c_stringFile, "s_400"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_402")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_404"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_406"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_414"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch8(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_406")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_408"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_410"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_414")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_416"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_410")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_Land_and_GrantBadge_visited_Kachirho(player, npc); string_id message = new string_id(c_stringFile, "s_412"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_432")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_434"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_440")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_giveReward_blacksun_heavy(player, npc); string_id message = new string_id(c_stringFile, "s_442"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_446")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_448"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_450"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_454"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_180"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_269")) { if (!station_kashyyyk_condition_isNeutralPilot(player, npc)) { string_id message = new string_id(c_stringFile, "s_273"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_277"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 32); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_460"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_285"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_486"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 34); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_490")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_492")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_kashyyyk_handleBranch22(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_450")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_destroy(player, npc); string_id message = new string_id(c_stringFile, "s_452"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_454")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_456"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_180")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_181"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_182"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_183"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_182")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_184"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_183")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_185"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_186"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_187"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 27); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_186")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_189"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_190"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_191"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 28); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_187")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_188"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_450"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_454"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_180"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_190")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_193"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_191")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_192"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_450"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_454"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_180"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 22); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_450")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_destroy(player, npc); string_id message = new string_id(c_stringFile, "s_452"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_454")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_456"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_180")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_181"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_182"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_183"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_450")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_destroy(player, npc); string_id message = new string_id(c_stringFile, "s_452"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_454")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_456"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_180")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_181"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_182"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_183"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_277")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_281"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_285")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_464"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_486")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_488"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch35(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_288")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_blacksun_heavy_recovery(player, npc); string_id message = new string_id(c_stringFile, "s_468"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_291"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 36); 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_kashyyyk.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_294")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_476"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_478")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_480"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_482")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_484"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch36(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_291")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_472"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_288")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_blacksun_heavy_recovery(player, npc); string_id message = new string_id(c_stringFile, "s_468"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_291"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 36); 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_kashyyyk.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_294")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_476"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_478")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_480"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_482")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_484"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch39(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_288")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_blacksun_heavy_recovery(player, npc); string_id message = new string_id(c_stringFile, "s_468"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_291"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 36); 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_kashyyyk.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_294")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_476"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_478")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_480"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_482")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_484"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_288")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_blacksun_heavy_recovery(player, npc); string_id message = new string_id(c_stringFile, "s_468"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_291"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 36); 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_kashyyyk.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_294")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_476"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_478")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_480"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_482")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_484"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_288"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_294"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_478"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_482"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch42(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_496")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_498")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_500")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_502"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_504"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 43); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch43(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_504")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_04(player, npc); string_id message = new string_id(c_stringFile, "s_506"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_510")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_512")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_514")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_03(player, npc); string_id message = new string_id(c_stringFile, "s_516"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch47(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_520")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_522")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_524")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_02(player, npc); string_id message = new string_id(c_stringFile, "s_526"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_530")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_532")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_534")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_536"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_538"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_542"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 50); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_538")) { station_kashyyyk_action_giveGroundQuest_00(player, npc); if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_350"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_542")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_364"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch53(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_370")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_550")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_376")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_554"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_558")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_388")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_562")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_473"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_566"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_566")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_521"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_570"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_539"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_574"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch57(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_570")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_539")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_574")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_02(player, npc); string_id message = new string_id(c_stringFile, "s_545"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_551")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_602")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_666")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_669"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_672"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_674"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_677"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_698"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 81); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_709")) { if (!station_kashyyyk_condition_hasDoneGround_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_712"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_714"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_726"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 88); 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_kashyyyk.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 (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_730"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasWon_assassinations(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_736"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_748"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 92); 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_kashyyyk.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_kashyyyk_handleBranch60(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_557")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_586"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch62(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_590")) { if (station_kashyyyk_condition_hasWonQuest_02(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_569"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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 (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_594"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_575")) { if (station_kashyyyk_condition_hasWonQuest_02(player, npc)) { string_id message = new string_id(c_stringFile, "s_598"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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 (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_581"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch67(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_606")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_593"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_610"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_614"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 68); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost25(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost25(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_618")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_611"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_622"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_626"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 71); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost50(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost50(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_630")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_629"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_634"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_638"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 74); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost75(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost75(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_643")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_646"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_649"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_655"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 77); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost100(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_kashyyyk_tokenDI_getStationRepairCost100(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_661")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_664"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch68(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_610")) { station_kashyyyk_action_fix25(player, npc); if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_599"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_614")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_605"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch71(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_622")) { station_kashyyyk_action_fix50(player, npc); if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_617"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_626")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_623"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch74(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_634")) { station_kashyyyk_action_fix75(player, npc); if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_635"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_638")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_641"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch77(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_649")) { station_kashyyyk_action_fix100(player, npc); if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_651"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_655")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_658"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_kashyyyk_handleBranch81(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_672")) { if (station_kashyyyk_condition_isOnQuest_ground_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_582"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_557"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 60); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_563"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_590"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_575"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 62); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_674")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_587"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_kashyyyk_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_618"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_630"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_643"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_661"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 67); 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_kashyyyk.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_677")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_680"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_682"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_693"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_698")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_701"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_704"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 86); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_682")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_685"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_688"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 83); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_693")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_696"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch83(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_688")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_690"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch86(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_704")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_706"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch88(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_714")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_giveGroundQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_717"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_720"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_726")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_728"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch89(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_720")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_722"); utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch92(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_732")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_734"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_736")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_738"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_740"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_744"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 94); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_748")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_750"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasWon_assassinations(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_736"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_748"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch94(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_740")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_land_kashyyyk(player, npc); string_id message = new string_id(c_stringFile, "s_742"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_744")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_746"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasWon_assassinations(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_736"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_748"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch96(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_732")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_734"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_736")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_738"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_740"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_744"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 94); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_748")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_750"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasWon_assassinations(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_736"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_748"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_kashyyyk_handleBranch97(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_732")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { station_kashyyyk_action_grantDuty_escort(player, npc); string_id message = new string_id(c_stringFile, "s_734"); utils.removeScriptVar(player, "conversation.station_kashyyyk.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_736")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_738"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_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_740"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_744"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 94); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_748")) { if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_750"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasWon_assassinations(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_736"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_748"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_kashyyyk.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_rian_ry.iff"); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setObjVar(self, "convo.appearance", "object/mobile/space_comm_rian_ry.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_kashyyyk"); 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_kashyyyk_condition_isTooFar(player, npc)) { string_id message = new string_id(c_stringFile, "s_204"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (!station_kashyyyk_condition_hasBadge_visited_Kachirho(player, npc)) { string_id message = new string_id(c_stringFile, "s_206"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_208"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_222"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_247"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 2); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_isOnQuest_escort_alpha(player, npc)) { string_id message = new string_id(c_stringFile, "s_251"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_isOnQuest_escort_bravo(player, npc)) { string_id message = new string_id(c_stringFile, "s_428"); 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_kashyyyk_condition_isOnQuest_rescue_alpha(player, npc)) { string_id message = new string_id(c_stringFile, "s_430"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_432"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 16); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_isOnQuest_AMBUSH(player, npc)) { string_id message = new string_id(c_stringFile, "s_436"); 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_kashyyyk_condition_hasWon_blacksun_heavy_recovery(player, npc)) { string_id message = new string_id(c_stringFile, "s_438"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_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_440"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 19); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_kashyyyk", 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_kashyyyk_condition_hasWon_assassinations(player, npc)) { string_id message = new string_id(c_stringFile, "s_444"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_kashyyyk_condition_hasBeenRewarded_blacksun_heavy(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_446"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_269"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_490"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_492"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 21); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_kashyyyk", 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_kashyyyk_condition_hasWon03_not04yet(player, npc)) { string_id message = new string_id(c_stringFile, "s_494"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_496"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_498"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_500"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 42); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_hasFailedQuest_03(player, npc)) { string_id message = new string_id(c_stringFile, "s_508"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_510"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_512"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_514"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 45); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_hasFailedQuest_02(player, npc)) { string_id message = new string_id(c_stringFile, "s_518"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_520"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_522"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_524"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 47); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_hasWon02_not03yet(player, npc)) { string_id message = new string_id(c_stringFile, "s_528"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_530"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_532"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_534"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 49); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_kashyyyk", 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_kashyyyk_condition_hasFailedQuest_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_546"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_370"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_550"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_376"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 53); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition_hasWon01_not02yet(player, npc)) { station_kashyyyk_action_rewardQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_382"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_kashyyyk_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_558"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_388"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_562"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 55); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_kashyyyk_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_578"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_kashyyyk_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_kashyyyk_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (!station_kashyyyk_condition_hasWonQuest_01(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_kashyyyk_condition_hasWonQuest_04(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_551"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_602"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_666"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_709"); } utils.setScriptVar(player, "conversation.station_kashyyyk.branchId", 59); npcStartConversation(player, npc, "station_kashyyyk", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } chat.chat(npc, "Error: All conditions for OnStartNpcConversation were false."); return SCRIPT_CONTINUE; } public int OnNpcConversationResponse(obj_id self, String conversationId, obj_id player, string_id response) throws InterruptedException { if (!conversationId.equals("station_kashyyyk")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.station_kashyyyk.branchId"); if (branchId == 2 && station_kashyyyk_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && station_kashyyyk_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 5 && station_kashyyyk_handleBranch5(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 6 && station_kashyyyk_handleBranch6(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 8 && station_kashyyyk_handleBranch8(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && station_kashyyyk_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 16 && station_kashyyyk_handleBranch16(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 19 && station_kashyyyk_handleBranch19(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 21 && station_kashyyyk_handleBranch21(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 22 && station_kashyyyk_handleBranch22(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 25 && station_kashyyyk_handleBranch25(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 27 && station_kashyyyk_handleBranch27(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 28 && station_kashyyyk_handleBranch28(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 30 && station_kashyyyk_handleBranch30(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 31 && station_kashyyyk_handleBranch31(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 32 && station_kashyyyk_handleBranch32(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 34 && station_kashyyyk_handleBranch34(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 35 && station_kashyyyk_handleBranch35(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 36 && station_kashyyyk_handleBranch36(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 38 && station_kashyyyk_handleBranch38(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 39 && station_kashyyyk_handleBranch39(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 40 && station_kashyyyk_handleBranch40(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 42 && station_kashyyyk_handleBranch42(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 43 && station_kashyyyk_handleBranch43(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 45 && station_kashyyyk_handleBranch45(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 47 && station_kashyyyk_handleBranch47(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && station_kashyyyk_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 50 && station_kashyyyk_handleBranch50(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 53 && station_kashyyyk_handleBranch53(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 55 && station_kashyyyk_handleBranch55(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && station_kashyyyk_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 57 && station_kashyyyk_handleBranch57(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 59 && station_kashyyyk_handleBranch59(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 60 && station_kashyyyk_handleBranch60(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 62 && station_kashyyyk_handleBranch62(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 67 && station_kashyyyk_handleBranch67(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 68 && station_kashyyyk_handleBranch68(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 71 && station_kashyyyk_handleBranch71(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 74 && station_kashyyyk_handleBranch74(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 77 && station_kashyyyk_handleBranch77(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 81 && station_kashyyyk_handleBranch81(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 82 && station_kashyyyk_handleBranch82(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 83 && station_kashyyyk_handleBranch83(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 86 && station_kashyyyk_handleBranch86(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 88 && station_kashyyyk_handleBranch88(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 89 && station_kashyyyk_handleBranch89(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 92 && station_kashyyyk_handleBranch92(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 94 && station_kashyyyk_handleBranch94(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 96 && station_kashyyyk_handleBranch96(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 97 && station_kashyyyk_handleBranch97(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_kashyyyk.branchId"); return SCRIPT_CONTINUE; } }