package script.conversation; import script.library.*; import script.*; public class station_dathomir extends script.base_script { public station_dathomir() { } public static String c_stringFile = "conversation/station_dathomir"; public boolean station_dathomir_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean station_dathomir_condition_canAfford50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.50f); } public boolean station_dathomir_condition_canAfford25(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.25f); } public boolean station_dathomir_condition_canAfford75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 0.75f); } public boolean station_dathomir_condition_canAfford100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.canAffordShipRepairs(player, npc, 1.0f); } public boolean station_dathomir_condition_needRepairs(obj_id player, obj_id npc) throws InterruptedException { float fltDamage = space_crafting.getDamageTotal(player, getPilotedShip(player)); if (fltDamage > 0) { return true; } return false; } public boolean station_dathomir_condition_isRebelPilotDath(obj_id player, obj_id npc) throws InterruptedException { return (hasSkill(player, "pilot_rebel_navy_novice") && !utils.hasScriptVar(player, "AuthorizedForDath")); } public boolean station_dathomir_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_dathomir_condition_gatedByTimer(obj_id player, obj_id npc) throws InterruptedException { int timeStamp = utils.getIntScriptVar(player, "lastDathomirRepair"); if (timeStamp == 0) { return false; } int currentTime = getGameTime(); if (currentTime < timeStamp) { return true; } else { utils.removeScriptVar(player, "lastDathomirRepair"); return false; } } public boolean station_dathomir_condition_WaitingButStillGated(obj_id player, obj_id npc) throws InterruptedException { if (!utils.hasScriptVar(player, "waitingAtDathStation")) { return false; } return (station_dathomir_condition_gatedByTimer(player, npc)); } public boolean station_dathomir_condition_waitingAndNowUngated(obj_id player, obj_id npc) throws InterruptedException { if (!utils.hasScriptVar(player, "waitingAtDathStation")) { return false; } if (!station_dathomir_condition_gatedByTimer(player, npc)) { if (!station_dathomir_condition_canAfford25(player, npc)) { return false; } utils.removeScriptVar(player, "waitingAtDathStation"); return true; } return false; } public boolean station_dathomir_condition_eligibleForPrivateerlQuests(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isNeutralPilot(player)) { if (space_flags.hasCompletedTierTwo(player)) { if (!space_quest.hasQuest(player)) { return !hasObjVar(player, "station_dathomir.isOnPrivStoryQuest_01"); } } } return false; } public boolean station_dathomir_condition_eligibleForImperialQuests(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isImperialPilot(player)) { if (space_flags.hasCompletedTierTwo(player)) { if (!space_quest.hasQuest(player)) { return !hasObjVar(player, "station_dathomir.isOnImpStoryQuest_01"); } } } return false; } public boolean station_dathomir_condition_canDoImperialStoryQuest(obj_id player, obj_id npc) throws InterruptedException { return !space_quest.hasWonQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_e"); } public boolean station_dathomir_condition_canDoPrivateerStoryQuest(obj_id player, obj_id npc) throws InterruptedException { return !space_quest.hasWonQuest(player, "assassinate", "dathomir_station_priv_storyquest_01_d"); } public boolean station_dathomir_condition_wonPrivStoryQuest_a(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "delivery", "dathomir_station_priv_storyquest_01_a"); } public boolean station_dathomir_condition_wonPrivStoryQuest_b(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "recovery", "dathomir_station_priv_storyquest_01_b"); } public boolean station_dathomir_condition_canTakeQuest(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasQuest(player)) { return false; } return true; } public boolean station_dathomir_condition_wonPrivStoryQuest_c(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "escort", "dathomir_station_priv_storyquest_01_c"); } public boolean station_dathomir_condition_wonImpStoryQuest_d(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "recovery", "dathomir_station_imp_storyquest_01_d"); } public boolean station_dathomir_condition_wonImpStoryQuest_c(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_c"); } public boolean station_dathomir_condition_wonImpStoryQuest_b(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_b"); } public boolean station_dathomir_condition_wonImpStoryQuest_a(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasWonQuest(player, "recovery", "dathomir_station_imp_storyquest_01_a"); } public boolean station_dathomir_condition_canAttackImperial(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player)) { return true; } return false; } public boolean station_dathomir_condition_canReceiveFullRepair(obj_id player, obj_id npc) throws InterruptedException { if (space_quest.hasWonQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_e")) { if (hasObjVar(player, "station_dathomir.isOnImpStoryQuest_01")) { removeObjVar(player, "station_dathomir.isOnImpStoryQuest_01"); } return true; } else if (space_quest.hasWonQuest(player, "assassinate", "dathomir_station_priv_storyquest_01_d")) { if (hasObjVar(player, "station_dathomir.isOnPrivStoryQuest_01")) { removeObjVar(player, "station_dathomir.isOnPrivStoryQuest_01"); } return true; } return false; } public boolean station_dathomir_condition_isOnPrivStoryQuest_01(obj_id player, obj_id npc) throws InterruptedException { return hasObjVar(player, "station_dathomir.isOnPrivStoryQuest_01"); } public boolean station_dathomir_condition_isOnImpStoryQuest_01(obj_id player, obj_id npc) throws InterruptedException { return hasObjVar(player, "station_dathomir.isOnImpStoryQuest_01"); } public boolean station_dathomir_condition_alreadyHasAQuest(obj_id player, obj_id npc) throws InterruptedException { return space_quest.hasQuest(player); } public boolean station_dathomir_condition_canAttackRebel(obj_id player, obj_id npc) throws InterruptedException { if (space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player)) { return true; } return false; } public boolean station_dathomir_condition_canHandleTier4(obj_id player, obj_id npc) throws InterruptedException { return space_flags.hasCompletedTierThree(player); } public void station_dathomir_action_landStation3(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Dathomir Quarantine Zone"); } public void station_dathomir_action_fix25(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.25f); } public void station_dathomir_action_fix50(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.50f); } public void station_dathomir_action_fix75(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 0.75f); } public void station_dathomir_action_fix100(obj_id player, obj_id npc) throws InterruptedException { space_crafting.doStationToShipRepairs(player, npc, 1.0f); } public void station_dathomir_action_landStation1(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Dathomir Outpost"); } public void station_dathomir_action_landStation2(obj_id player, obj_id npc) throws InterruptedException { space_content.landPlayer(player, npc, "Science Outpost"); } public void station_dathomir_action_flagPlayerClearedForLanding(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "AuthorizedForDath", true); } public void station_dathomir_action_timeStampRepairs(obj_id player, obj_id npc) throws InterruptedException { int timeStamp = getGameTime() + 360; utils.setScriptVar(player, "lastDathomirRepair", (timeStamp)); } public void station_dathomir_action_flagPlayerAsWaiting(obj_id player, obj_id npc) throws InterruptedException { utils.setScriptVar(player, "waitingAtDathStation", true); } public void station_dathomir_action_grantImperialDestroyDuty(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_station_imp_destroy_duty_tier3"); } public void station_dathomir_action_grantImperialEscortDuty(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "escort_duty", "dathomir_station_imp_escort_duty_tier3"); } public void station_dathomir_action_grantPrivateerEscortDuty(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "escort_duty", "dathomir_station_priv_escort_duty_tier3"); } public void station_dathomir_action_grantPrivateerDestroyDuty(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_station_priv_destroy_duty_tier3"); } public void station_dathomir_action_startImpStoryQuest_01(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "recovery", "dathomir_station_imp_storyquest_01_a"); space_quest.grantQuest(player, "recovery", "dathomir_station_imp_storyquest_01_a"); if (!hasObjVar(player, "station_dathomir.isOnImpStoryQuest_01")) { setObjVar(player, "station_dathomir.isOnImpStoryQuest_01", true); } return; } public void station_dathomir_action_startPrivStoryQuest_01(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "delivery", "dathomir_station_priv_storyquest_01_a"); space_quest.grantQuest(player, "delivery", "dathomir_station_priv_storyquest_01_a"); setObjVar(player, "station_dathomir.isOnPrivStoryQuest_01", true); } public void station_dathomir_action_grantImpStoryQuest_01_b(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "assassinate", "dathomir_station_imp_storyquest_01_b"); space_quest.grantQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_b"); return; } public void station_dathomir_action_grantImpStoryQuest_01_c(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "assassinate", "dathomir_station_imp_storyquest_01_c"); space_quest.grantQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_c"); return; } public void station_dathomir_action_grantImpStoryQuest_01_d(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "recovery", "dathomir_station_imp_storyquest_01_d"); space_quest.grantQuest(player, "recovery", "dathomir_station_imp_storyquest_01_d"); return; } public void station_dathomir_action_grantImpStoryQuest_01_e(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "assassinate", "dathomir_station_imp_storyquest_01_e"); space_quest.grantQuest(player, "assassinate", "dathomir_station_imp_storyquest_01_e"); return; } public void station_dathomir_action_grantPrivStoryQuest_01_b(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "recovery", "dathomir_station_priv_storyquest_01_b"); space_quest.grantQuest(player, "recovery", "dathomir_station_priv_storyquest_01_b"); return; } public void station_dathomir_action_grantPrivStoryQuest_01_c(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "escort", "dathomir_station_priv_storyquest_01_c"); space_quest.grantQuest(player, "escort", "dathomir_station_priv_storyquest_01_c"); return; } public void station_dathomir_action_grantPrivStoryQuest_01_d(obj_id player, obj_id npc) throws InterruptedException { space_quest.clearQuestFlags(player, "assassinate", "dathomir_station_priv_storyquest_01_d"); space_quest.grantQuest(player, "assassinate", "dathomir_station_priv_storyquest_01_d"); return; } public void station_dathomir_action_grantImperialDuty4(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_imperial_tier4"); } public void station_dathomir_action_grantImperialDuty5(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "kessel_imperial_tier5"); } public void station_dathomir_action_grantRebelDuty4(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_rebel_tier4"); } public void station_dathomir_action_grantRebelDuty5(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "kessel_rebel_tier5"); } public void station_dathomir_action_grantHiddenDaggerDuty4(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_hidden_dagger_tier4"); } public void station_dathomir_action_grantHiddenDaggerDuty5(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "dathomir_hidden_dagger_tier5"); } public void station_dathomir_action_grantKesselPirateTier6(obj_id player, obj_id npc) throws InterruptedException { space_quest.grantQuest(player, "destroy_duty", "kessel_pirate_tier6"); } public String station_dathomir_tokenTO_tokenTO0001(obj_id player, obj_id npc) throws InterruptedException { return new String(); } public int station_dathomir_tokenDI_getStationRepairCost25(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.25f); } public int station_dathomir_tokenDI_getStationRepairCost50(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.50f); } public int station_dathomir_tokenDI_getStationRepairCost75(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 0.75f); } public int station_dathomir_tokenDI_getStationRepairCost100(obj_id player, obj_id npc) throws InterruptedException { return space_crafting.getStationRepairCost(player, npc, 1.0f); } public int station_dathomir_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_568")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_571"); utils.removeScriptVar(player, "conversation.station_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_578")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_581"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_583"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_586"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 6); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_591")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_594"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_598"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_603"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_583")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_594"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_598"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_603"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_586")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_588"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch8(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_598")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_601"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_578"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_591"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 5); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_603")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_flagPlayerClearedForLanding(player, npc); string_id message = new string_id(c_stringFile, "s_605"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_578")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_581"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_583"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_586"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 6); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_591")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_594"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_598"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_603"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch11(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch12(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_613")) { if (station_dathomir_condition_alreadyHasAQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_616"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonImpStoryQuest_d(player, npc)) { string_id message = new string_id(c_stringFile, "s_619"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_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_621"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 14); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonImpStoryQuest_c(player, npc)) { string_id message = new string_id(c_stringFile, "s_633"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_635"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_640"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 18); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonImpStoryQuest_b(player, npc)) { string_id message = new string_id(c_stringFile, "s_645"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_648"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_652"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 21); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonImpStoryQuest_a(player, npc)) { string_id message = new string_id(c_stringFile, "s_657"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_660"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_666"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 24); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_673"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_676"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_684"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 27); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_688")) { if (station_dathomir_condition_alreadyHasAQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_690"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_692"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_695")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_698")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_621")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_623"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_625"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_629"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 15); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_625")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImpStoryQuest_01_e(player, npc); string_id message = new string_id(c_stringFile, "s_627"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_629")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_631"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch18(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_635")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImpStoryQuest_01_d(player, npc); string_id message = new string_id(c_stringFile, "s_638"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_640")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_642"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_648")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImpStoryQuest_01_c(player, npc); string_id message = new string_id(c_stringFile, "s_650"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_652")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_654"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch24(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_660")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImpStoryQuest_01_b(player, npc); string_id message = new string_id(c_stringFile, "s_663"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_666")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_669"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_676")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_startImpStoryQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_680"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_684")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_686"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_921")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_905"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_909"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_925")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_705")) { if (station_dathomir_condition_alreadyHasAQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_707"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonPrivStoryQuest_c(player, npc)) { string_id message = new string_id(c_stringFile, "s_709"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_711"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_716"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 34); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonPrivStoryQuest_b(player, npc)) { string_id message = new string_id(c_stringFile, "s_723"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_727"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_733"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 37); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_wonPrivStoryQuest_a(player, npc)) { string_id message = new string_id(c_stringFile, "s_737"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_739"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_743"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 40); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_747"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_749"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_753"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 43); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_757")) { if (station_dathomir_condition_alreadyHasAQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_759"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_761"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_763")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_765")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_711")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivStoryQuest_01_d(player, npc); string_id message = new string_id(c_stringFile, "s_713"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_716")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_720"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch37(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_727")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivStoryQuest_01_c(player, npc); string_id message = new string_id(c_stringFile, "s_731"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_733")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_735"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_739")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivStoryQuest_01_b(player, npc); string_id message = new string_id(c_stringFile, "s_741"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_743")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_745"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch43(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_749")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_startPrivStoryQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_751"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_753")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_755"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch47(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_959")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_935"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_961")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_939"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_963")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_965"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_773")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_775"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_777"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_781"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 50); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_785")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_787"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_789"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_793"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 53); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_184")) { if (station_dathomir_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_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_189"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_777")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_landStation1(player, npc); string_id message = new string_id(c_stringFile, "s_779"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_781")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_783"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch53(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_789")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_landStation2(player, npc); string_id message = new string_id(c_stringFile, "s_791"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_793")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_795"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_186")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_landStation3(player, npc); string_id message = new string_id(c_stringFile, "s_187"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_189")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_190"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_801")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_flagPlayerAsWaiting(player, npc); string_id message = new string_id(c_stringFile, "s_803"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_805")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_807"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_809"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_813"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 61); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch61(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_809")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_811"); utils.removeScriptVar(player, "conversation.station_dathomir.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_813")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_815"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_817"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_835"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch63(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_817")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_819"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_821"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_831"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 64); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_835")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_837"); utils.removeScriptVar(player, "conversation.station_dathomir.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_dathomir_handleBranch64(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_821")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_823"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_825"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_827"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 65); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_831")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_833"); utils.removeScriptVar(player, "conversation.station_dathomir.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_dathomir_handleBranch65(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_825")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_flagPlayerAsWaiting(player, npc); string_id message = new string_id(c_stringFile, "s_803"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_827")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_829"); utils.removeScriptVar(player, "conversation.station_dathomir.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_dathomir_handleBranch69(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_841")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_843"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_845"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_849"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 70); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost25(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost25(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_859")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_861"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_863"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_867"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 74); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost50(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost50(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_869")) { if (station_dathomir_condition_canReceiveFullRepair(player, npc)) { string_id message = new string_id(c_stringFile, "s_871"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (!station_dathomir_condition_canAfford100(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_873"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_877"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_887"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 76); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost100(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost100(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_889"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_891"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_895"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 80); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost75(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost75(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_897")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch70(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_845")) { station_dathomir_action_fix25(player, npc); if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_847"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_849")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch72(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_853")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_855")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_857"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch74(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_863")) { station_dathomir_action_fix50(player, npc); if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_865"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_867")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch76(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_873")) { station_dathomir_action_fix100(player, npc); if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_timeStampRepairs(player, npc); string_id message = new string_id(c_stringFile, "s_875"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_877")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_879"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_881"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_885"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 78); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost75(player, npc); npcSpeak(player, pp); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); pp.digitInteger = station_dathomir_tokenDI_getStationRepairCost75(player, npc); npcEndConversationWithMessage(player, pp); } return SCRIPT_CONTINUE; } } if (response.equals("s_887")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch78(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_881")) { station_dathomir_action_fix75(player, npc); if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_timeStampRepairs(player, npc); string_id message = new string_id(c_stringFile, "s_883"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_885")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch80(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_891")) { station_dathomir_action_fix75(player, npc); if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_timeStampRepairs(player, npc); string_id message = new string_id(c_stringFile, "s_893"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_895")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_851"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_853"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_855"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_903")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_905"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_907")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_909"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_911")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_startImpStoryQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_913"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_915")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_917"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch86(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch87(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_921")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_905"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_909"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_925")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch88(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch89(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_933")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_935"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_937")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_939"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_941")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_943"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_945"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_949"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 92); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_953")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_955"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch92(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_945")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_startPrivStoryQuest_01(player, npc); string_id message = new string_id(c_stringFile, "s_947"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_949")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_951"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch94(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch95(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch96(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_959")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerDestroyDuty(player, npc); string_id message = new string_id(c_stringFile, "s_935"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_961")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantPrivateerEscortDuty(player, npc); string_id message = new string_id(c_stringFile, "s_939"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_963")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_965"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch97(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_769")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_771"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_773"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_785"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_184"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 49); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_797")) { if (station_dathomir_condition_gatedByTimer(player, npc)) { string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_801"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_805"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 59); 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_dathomir.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_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford50(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAfford75(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_841"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_859"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_869"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_897"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 69); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_899")) { if (station_dathomir_condition_canDoImperialStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_901"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_903"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_911"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 82); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_921"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_925"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 87); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_929")) { if (station_dathomir_condition_canDoPrivateerStoryQuest(player, npc)) { string_id message = new string_id(c_stringFile, "s_931"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_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_933"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_937"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_941"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_953"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_957"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_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_959"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_961"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_963"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 96); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_197")) { if (station_dathomir_condition_canHandleTier4(player, npc)) { string_id message = new string_id(c_stringFile, "s_199"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAttackImperial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAttackRebel(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } boolean hasResponse5 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse5 = true; } boolean hasResponse6 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse6 = true; } boolean hasResponse7 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse7 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_201"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_204"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_211"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_215"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_221"); } if (hasResponse5) { responses[responseIndex++] = new string_id(c_stringFile, "s_225"); } if (hasResponse6) { responses[responseIndex++] = new string_id(c_stringFile, "s_231"); } if (hasResponse7) { responses[responseIndex++] = new string_id(c_stringFile, "s_235"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 98); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_245"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int station_dathomir_handleBranch98(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_201")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantRebelDuty4(player, npc); string_id message = new string_id(c_stringFile, "s_207"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_204")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantRebelDuty5(player, npc); string_id message = new string_id(c_stringFile, "s_208"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_211")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialDuty4(player, npc); string_id message = new string_id(c_stringFile, "s_213"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_215")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantImperialDuty5(player, npc); string_id message = new string_id(c_stringFile, "s_217"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_221")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantHiddenDaggerDuty4(player, npc); string_id message = new string_id(c_stringFile, "s_223"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_225")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantHiddenDaggerDuty5(player, npc); string_id message = new string_id(c_stringFile, "s_227"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_231")) { if (station_dathomir_condition__defaultCondition(player, npc)) { station_dathomir_action_grantKesselPirateTier6(player, npc); string_id message = new string_id(c_stringFile, "s_233"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_235")) { if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_243"); utils.removeScriptVar(player, "conversation.station_dathomir.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int OnInitialize(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_dathomir.iff"); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_dathomir.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_dathomir"); 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_dathomir_condition_isTooFar(player, npc)) { string_id message = new string_id(c_stringFile, "s_562"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (station_dathomir_condition_waitingAndNowUngated(player, npc)) { string_id message = new string_id(c_stringFile, "s_564"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_dathomir", 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_dathomir_condition_WaitingButStillGated(player, npc)) { string_id message = new string_id(c_stringFile, "s_566"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_568"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_574"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 3); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "station_dathomir", 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_dathomir_condition_isRebelPilotDath(player, npc)) { string_id message = new string_id(c_stringFile, "s_576"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_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_578"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_591"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 5); npcStartConversation(player, npc, "station_dathomir", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_canReceiveFullRepair(player, npc)) { string_id message = new string_id(c_stringFile, "s_608"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcStartConversation(player, npc, "station_dathomir", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_isOnImpStoryQuest_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_610"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAfford25(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_613"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_688"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_695"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_698"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 12); npcStartConversation(player, npc, "station_dathomir", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition_isOnPrivStoryQuest_01(player, npc)) { string_id message = new string_id(c_stringFile, "s_702"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_canAfford25(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_705"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_757"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_763"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_765"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 32); npcStartConversation(player, npc, "station_dathomir", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (station_dathomir_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_767"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (station_dathomir_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (station_dathomir_condition_canAfford25(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (station_dathomir_condition_eligibleForImperialQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (station_dathomir_condition_eligibleForPrivateerlQuests(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (station_dathomir_condition_canTakeQuest(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_769"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_797"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_899"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_929"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_197"); } utils.setScriptVar(player, "conversation.station_dathomir.branchId", 48); npcStartConversation(player, npc, "station_dathomir", 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_dathomir")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.station_dathomir.branchId"); if (branchId == 2 && station_dathomir_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && station_dathomir_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 5 && station_dathomir_handleBranch5(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 6 && station_dathomir_handleBranch6(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 8 && station_dathomir_handleBranch8(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && station_dathomir_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 10 && station_dathomir_handleBranch10(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 11 && station_dathomir_handleBranch11(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 12 && station_dathomir_handleBranch12(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 14 && station_dathomir_handleBranch14(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 15 && station_dathomir_handleBranch15(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 18 && station_dathomir_handleBranch18(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 21 && station_dathomir_handleBranch21(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 24 && station_dathomir_handleBranch24(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 27 && station_dathomir_handleBranch27(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 31 && station_dathomir_handleBranch31(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 32 && station_dathomir_handleBranch32(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 34 && station_dathomir_handleBranch34(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 37 && station_dathomir_handleBranch37(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 40 && station_dathomir_handleBranch40(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 43 && station_dathomir_handleBranch43(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 47 && station_dathomir_handleBranch47(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 48 && station_dathomir_handleBranch48(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && station_dathomir_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 50 && station_dathomir_handleBranch50(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 53 && station_dathomir_handleBranch53(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && station_dathomir_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 59 && station_dathomir_handleBranch59(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 61 && station_dathomir_handleBranch61(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 63 && station_dathomir_handleBranch63(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 64 && station_dathomir_handleBranch64(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 65 && station_dathomir_handleBranch65(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 69 && station_dathomir_handleBranch69(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 70 && station_dathomir_handleBranch70(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 72 && station_dathomir_handleBranch72(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 74 && station_dathomir_handleBranch74(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 76 && station_dathomir_handleBranch76(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 78 && station_dathomir_handleBranch78(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 80 && station_dathomir_handleBranch80(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 82 && station_dathomir_handleBranch82(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 86 && station_dathomir_handleBranch86(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 87 && station_dathomir_handleBranch87(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 88 && station_dathomir_handleBranch88(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 89 && station_dathomir_handleBranch89(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 92 && station_dathomir_handleBranch92(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 94 && station_dathomir_handleBranch94(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 95 && station_dathomir_handleBranch95(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 96 && station_dathomir_handleBranch96(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 97 && station_dathomir_handleBranch97(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 98 && station_dathomir_handleBranch98(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_dathomir.branchId"); return SCRIPT_CONTINUE; } }