package script.conversation; import script.library.*; import script.*; public class trehla_keelo extends script.base_script { public trehla_keelo() { } public static String c_stringFile = "conversation/trehla_keelo"; public boolean trehla_keelo_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean trehla_keelo_condition_questActiveOrComplete(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isQuestActiveOrComplete(player, "c_newbie_quest1") || groundquests.isQuestActiveOrComplete(player, "c_newbie_quest1a")); } public boolean trehla_keelo_condition_playerOnBankStep(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1a", "bankstep") || groundquests.isTaskActive(player, "c_newbie_quest1", "bankstep") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bankbox1") || groundquests.isTaskActive(player, "c_newbie_quest1", "bankbox1") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bankbox2") || groundquests.isTaskActive(player, "c_newbie_quest1", "bankbox2")); } public boolean trehla_keelo_condition_playerDidNewTutorial(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_hall_jedi"); return questIsQuestComplete(questId1, player); } public boolean trehla_keelo_condition_playerOnBankReturn(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1", "bankreturn") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bankreturn")); } public boolean trehla_keelo_condition_playerOnBazaarStep(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1a", "bazaarstep") || groundquests.isTaskActive(player, "c_newbie_quest1", "bazaarstep") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bazaarbox1") || groundquests.isTaskActive(player, "c_newbie_quest1", "bazaarbox1") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bazaarbox2") || groundquests.isTaskActive(player, "c_newbie_quest1", "bazaarbox2")); } public boolean trehla_keelo_condition_playerOnBazaarReturn(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1", "bazaarreturn") || groundquests.isTaskActive(player, "c_newbie_quest1a", "bazaarreturn")); } public boolean trehla_keelo_condition_playerOnCloneStep(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1a", "clonestep") || groundquests.isTaskActive(player, "c_newbie_quest1", "clonestep") || groundquests.isTaskActive(player, "c_newbie_quest1a", "clonebox1") || groundquests.isTaskActive(player, "c_newbie_quest1", "clonebox1")); } public boolean trehla_keelo_condition_playerOnCloneReturn(obj_id player, obj_id npc) throws InterruptedException { return (groundquests.isTaskActive(player, "c_newbie_quest1", "clonereturn") || groundquests.isTaskActive(player, "c_newbie_quest1a", "clonereturn")); } public boolean trehla_keelo_condition_startedVourk(obj_id player, obj_id npc) throws InterruptedException { return groundquests.isQuestActiveOrComplete(player, "newbie_goto_vourk"); } public boolean trehla_keelo_condition_playerLearnDroid(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest4"); int groupbox1 = groundquests.getTaskId(questId1, "groupbox1"); int droidbox1 = groundquests.getTaskId(questId1, "droidbox1"); return questIsTaskActive(questId1, groupbox1, player) || questIsTaskActive(questId1, droidbox1, player); } public boolean trehla_keelo_condition_playerOnVehicleInfo(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest4"); int vehiclebox1 = groundquests.getTaskId(questId1, "vehiclebox1"); return questIsTaskActive(questId1, vehiclebox1, player); } public boolean trehla_keelo_condition_playerOnMedCenterReturn(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest3"); int medcenterreturn = groundquests.getTaskId(questId1, "medcenterreturn"); return questIsTaskActive(questId1, medcenterreturn, player); } public boolean trehla_keelo_condition_playerOnJunkStep(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest3"); int junkstep = groundquests.getTaskId(questId1, "junkstep"); int junkbox1 = groundquests.getTaskId(questId1, "junkbox1"); return questIsTaskActive(questId1, junkstep, player) || questIsTaskActive(questId1, junkbox1, player); } public boolean trehla_keelo_condition_playerOnJunkReturn(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest3"); int junkreturn = groundquests.getTaskId(questId1, "junkreturn"); return questIsTaskActive(questId1, junkreturn, player); } public boolean trehla_keelo_condition_crafterPlayer(obj_id player, obj_id npc) throws InterruptedException { if (content.isCrafter(player) || content.isEntertainer(player)) { return true; } return false; } public boolean trehla_keelo_condition_playerOnLearnGroup(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest4"); int learngroup = groundquests.getTaskId(questId1, "learngroup"); return questIsTaskActive(questId1, learngroup, player); } public boolean trehla_keelo_condition_playerOnShuttleStep(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest5"); int shuttlestep1 = groundquests.getTaskId(questId1, "shuttlestep1"); int shuttlestep2 = groundquests.getTaskId(questId1, "shuttlestep2"); int shuttlestep3 = groundquests.getTaskId(questId1, "shuttlestep3"); int shuttlestep4 = groundquests.getTaskId(questId1, "shuttlestep4"); return questIsTaskActive(questId1, shuttlestep1, player) || questIsTaskActive(questId1, shuttlestep2, player) || questIsTaskActive(questId1, shuttlestep3, player) || questIsTaskActive(questId1, shuttlestep4, player); } public boolean trehla_keelo_condition_playerOnAssociateStep(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest5"); int associatestep = groundquests.getTaskId(questId1, "associatestep"); return questIsTaskActive(questId1, associatestep, player); } public boolean trehla_keelo_condition_playerOnLastStep(obj_id player, obj_id npc) throws InterruptedException { int questId1 = questGetQuestId("quest/c_newbie_quest5"); int laststep = groundquests.getTaskId(questId1, "laststep"); return questIsTaskActive(questId1, laststep, player); } public boolean trehla_keelo_condition_combatPlayer(obj_id player, obj_id npc) throws InterruptedException { if (!content.isCrafter(player) && !content.isEntertainer(player)) { return true; } return false; } public void trehla_keelo_action_giveQuest(obj_id player, obj_id npc) throws InterruptedException { groundquests.grantQuest(player, "c_newbie_quest1a"); detachScript(player, "theme_park.newbie_tutorial.new_player_ribbon"); destroyClientPath(player); } public void trehla_keelo_action_faceplayer(obj_id player, obj_id npc) throws InterruptedException { faceTo(npc, player); } public void trehla_keelo_action_signalBankReturn(obj_id player, obj_id npc) throws InterruptedException { groundquests.sendSignal(player, "c_newbie_bankreturn"); } public void trehla_keelo_action_signalBazaarReturn(obj_id player, obj_id npc) throws InterruptedException { groundquests.sendSignal(player, "c_newbie_bazaarreturn"); } public void trehla_keelo_action_signalCloneReturn(obj_id player, obj_id npc) throws InterruptedException { faceTo(npc, player); groundquests.sendSignal(player, "c_newbie_clonereturn"); } public void trehla_keelo_action_signalJunkReturn(obj_id player, obj_id npc) throws InterruptedException { int questId = questGetQuestId("quest/c_newbie_quest4"); groundquests.sendSignal(player, "c_newbie_junkreturn"); groundquests.grantQuest(questId, player, npc, true); obj_id playerInventory = utils.getInventoryContainer(player); String templateName = "object/tangible/deed/vehicle_deed/landspeeder_x31_deed.iff"; createObject(templateName, playerInventory, ""); } public void trehla_keelo_action_signalMedCenterReturn(obj_id player, obj_id npc) throws InterruptedException { groundquests.sendSignal(player, "c_newbie_medcenterreturn"); obj_id playerInventory = utils.getInventoryContainer(player); String templateName = "object/tangible/loot/tool/datapad_broken.iff"; createObject(templateName, playerInventory, ""); } public void trehla_keelo_action_signalLearnGroup(obj_id player, obj_id npc) throws InterruptedException { int questId = questGetQuestId("quest/c_newbie_quest5"); groundquests.sendSignal(player, "c_newbie_learngroup"); groundquests.grantQuest(questId, player, npc, true); } public void trehla_keelo_action_signalLastStep(obj_id player, obj_id npc) throws InterruptedException { groundquests.sendSignal(player, "c_newbie_laststep"); } public void trehla_keelo_action_giveWaypointImpTat(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -1119; loc.y = 0; loc.z = -3526; loc.area = "tatooine"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Lt. Akal Colzet (Imperial Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointImpNab(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = 5182; loc.y = -192; loc.z = 6750; loc.area = "naboo"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Lt. Barn Sinkko (Imperial Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointImpTalus(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -2184; loc.y = 0; loc.z = 2273; loc.area = "talus"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Hakasha Sireen (Imperial Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointRebTat(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -2991; loc.y = 5; loc.z = 2123; loc.area = "tatooine"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Commander Da'la Socuna (Rebel Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointRebNab(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = 4767; loc.y = 4; loc.z = -4812; loc.area = "naboo"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "V3-FX (Rebel Pilot Training Droid)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointRebCore(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -5170; loc.y = 21; loc.z = -2295; loc.area = "corellia"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Captain Kreezo (Rebel Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointNeuTat(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = 3381; loc.y = 5; loc.z = -4799; loc.area = "tatooine"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Dravis (Privateer Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointNeuNab(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -5495; loc.y = 14; loc.z = 4476; loc.area = "naboo"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Captain Dinge (RSF Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveWaypointNeuCore(obj_id player, obj_id npc) throws InterruptedException { obj_id top = getTopMostContainer(player); location loc = getLocation(top); loc.x = -275; loc.y = 28; loc.z = -4695; loc.area = "corellia"; obj_id waypoint = createWaypointInDatapad(player, loc); setWaypointName(waypoint, "Sergeant Rhea (CorSec Pilot Trainer)"); setWaypointActive(waypoint, true); } public void trehla_keelo_action_giveMayorQuest(obj_id player, obj_id npc) throws InterruptedException { int questId = questGetQuestId("quest/c_newbie_quest6"); groundquests.grantQuest(questId, player, npc, true); } public void trehla_keelo_action_sendToVourk(obj_id player, obj_id npc) throws InterruptedException { groundquests.grantQuest(player, "quest/newbie_goto_vourk"); } public void trehla_keelo_action_sendToGendra(obj_id player, obj_id npc) throws InterruptedException { groundquests.grantQuest(player, "quest/newbie_gendra"); } public int trehla_keelo_handleBranch1(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_305")) { doAnimationAction(player, "shrug_hands"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "point_forward"); string_id message = new string_id(c_stringFile, "s_307"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (!trehla_keelo_condition_playerDidNewTutorial(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_playerDidNewTutorial(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_309"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_317"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 2); 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.trehla_keelo.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 trehla_keelo_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_309")) { doAnimationAction(player, "shake_head_no"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_311"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_313"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 3); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_317")) { doAnimationAction(player, "helpme"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "dismiss"); string_id message = new string_id(c_stringFile, "s_319"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_321"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_325"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 5); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_313")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "dismiss"); string_id message = new string_id(c_stringFile, "s_315"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_321"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_325"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 5); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_321")) { doAnimationAction(player, "shake_head_no"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_323"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_329"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 7); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_325")) { doAnimationAction(player, "pose_proudly"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "wave_finger_warning"); string_id message = new string_id(c_stringFile, "s_327"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_329"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 7); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_321")) { doAnimationAction(player, "shake_head_no"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_323"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_329"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 7); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_325")) { doAnimationAction(player, "pose_proudly"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "wave_finger_warning"); string_id message = new string_id(c_stringFile, "s_327"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_329"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 7); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_329")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_331"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_333"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_345"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_329")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_331"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_333"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_345"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch8(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_333")) { doAnimationAction(player, "nod"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_335"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_337"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_341"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_345")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_disgust"); string_id message = new string_id(c_stringFile, "s_347"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_337")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod"); trehla_keelo_action_giveQuest(player, npc); string_id message = new string_id(c_stringFile, "s_339"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_341")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "sigh_deeply"); trehla_keelo_action_giveQuest(player, npc); string_id message = new string_id(c_stringFile, "s_343"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_353")) { doAnimationAction(player, "nod"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod"); string_id message = new string_id(c_stringFile, "s_355"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_361"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 16); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_357")) { doAnimationAction(player, "shake_head_no"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_359"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_361"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 16); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_361")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalBankReturn(player, npc); string_id message = new string_id(c_stringFile, "s_363"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_365"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 17); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_361")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalBankReturn(player, npc); string_id message = new string_id(c_stringFile, "s_363"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_365"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 17); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_365")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_367"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_373")) { doAnimationAction(player, "shake_head_disgust"); if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_375"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_385"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 23); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_377")) { doAnimationAction(player, "nod"); if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_379"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_385"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 23); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_381")) { doAnimationAction(player, "shake_head_no"); if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_383"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_385"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 23); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_385")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_387"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_389"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 24); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch22(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_385")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_387"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_389"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 24); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch23(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_385")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "rub_chin_thoughtful"); string_id message = new string_id(c_stringFile, "s_387"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_389"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 24); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch24(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_389")) { doAnimationAction(player, "taken_aback"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "cough_polite"); string_id message = new string_id(c_stringFile, "s_391"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_393"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 25); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_393")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shake_head_no"); string_id message = new string_id(c_stringFile, "s_395"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_397"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 26); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_397")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod"); trehla_keelo_action_signalBazaarReturn(player, npc); string_id message = new string_id(c_stringFile, "s_399"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_405")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_407"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_413"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 31); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_409")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_411"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_413"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 31); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_413")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_207"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (!trehla_keelo_condition_startedVourk(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_1135"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1150"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1154"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_213"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_233"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 108); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_413")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_207"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (!trehla_keelo_condition_startedVourk(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_1135"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1150"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1154"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_213"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_233"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 108); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1135")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1150")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveMayorQuest(player, npc); string_id message = new string_id(c_stringFile, "s_1152"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_1154")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1156"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_213")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_226"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_228"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_230"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_232"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 111); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_233")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch33(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_569")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_572"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_575"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 34); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_585")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_588"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_591"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 37); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_575")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalMedCenterReturn(player, npc); string_id message = new string_id(c_stringFile, "s_577"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_580"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 35); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch35(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_580")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "thank"); string_id message = new string_id(c_stringFile, "s_583"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch37(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_591")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalMedCenterReturn(player, npc); string_id message = new string_id(c_stringFile, "s_593"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_596"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 38); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_596")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "shrug_shoulders"); string_id message = new string_id(c_stringFile, "s_599"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_606")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_608"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_611"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 42); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_616")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_619"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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.trehla_keelo.branchId", 44); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch42(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_611")) { doAnimationAction(player, "taken_aback"); if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod"); trehla_keelo_action_signalJunkReturn(player, npc); string_id message = new string_id(c_stringFile, "s_613"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch44(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_621")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_624"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_627"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 45); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_627")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { doAnimationAction(npc, "nod"); trehla_keelo_action_signalJunkReturn(player, npc); string_id message = new string_id(c_stringFile, "s_629"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_721")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_724"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_727"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 50); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_727")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalLearnGroup(player, npc); string_id message = new string_id(c_stringFile, "s_731"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_734"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 51); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_734")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_737"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_749")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_signalLastStep(player, npc); string_id message = new string_id(c_stringFile, "s_751"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch57(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_759")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_762"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_764"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_787"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_819"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_851")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_855"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_859"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_891"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 71); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_955")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_959"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_963"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_995"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1027"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 84); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch58(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_764")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_766"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_768"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_772"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_779"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 59); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_787")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_791"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_795"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_803"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_811"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_819")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_823"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_827"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_835"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_843"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 67); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_768")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointImpTat(player, npc); string_id message = new string_id(c_stringFile, "s_770"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_772")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_775"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_764"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_787"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_819"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_779")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_783"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch60(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch61(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_764")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_766"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_768"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_772"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_779"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 59); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_787")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_791"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_795"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_803"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_811"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_819")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_823"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_827"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_835"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_843"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 67); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch62(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch63(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_795")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointImpNab(player, npc); string_id message = new string_id(c_stringFile, "s_799"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_803")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_807"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_764"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_787"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_819"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_811")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_815"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch64(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch65(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_764")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_766"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_768"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_772"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_779"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 59); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_787")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_791"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_795"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_803"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_811"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_819")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_823"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_827"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_835"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_843"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 67); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch66(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch67(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_827")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointImpTalus(player, npc); string_id message = new string_id(c_stringFile, "s_831"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_835")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_839"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_764"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_787"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_819"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 58); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_843")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_847"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch68(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch69(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_764")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_766"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_768"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_772"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_779"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 59); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_787")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_791"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_795"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_803"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_811"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 63); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_819")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_823"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_827"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_835"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_843"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 67); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch70(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch71(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_859")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_863"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_867"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_875"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_883"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_891")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_895"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_899"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 76); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_931"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_939"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_947"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 80); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch72(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_867")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointRebTat(player, npc); string_id message = new string_id(c_stringFile, "s_871"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_875")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_879"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_859"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_891"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 71); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_883")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_887"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch73(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch74(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_859")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_863"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_867"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_875"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_883"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_891")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_895"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_899"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 76); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_931"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_939"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_947"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 80); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch75(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch76(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_899")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointRebNab(player, npc); string_id message = new string_id(c_stringFile, "s_903"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_907")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_911"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_859"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_891"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 71); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_915")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_919"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch77(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch78(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_859")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_863"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_867"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_875"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_883"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_891")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_895"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_899"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 76); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_931"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_939"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_947"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 80); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch79(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch80(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_931")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointRebCore(player, npc); string_id message = new string_id(c_stringFile, "s_935"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_939")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_943"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_859"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_891"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_923"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 71); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_947")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_951"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch81(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_859")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_863"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_867"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_875"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_883"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 72); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_891")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_895"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_899"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_907"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_915"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 76); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_923")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_927"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_931"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_939"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_947"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 80); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch83(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch84(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_963")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_967"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_971"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_979"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_987"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 85); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_995")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_999"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1003"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1011"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1019"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1027")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1031"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1035"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1043"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1051"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 93); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch85(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_971")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointNeuTat(player, npc); string_id message = new string_id(c_stringFile, "s_975"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_979")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_983"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_963"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_995"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1027"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 84); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_987")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_991"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch86(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch87(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_963")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_967"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_971"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_979"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_987"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 85); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_995")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_999"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1003"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1011"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1019"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1027")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1031"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1035"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1043"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1051"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 93); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch88(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch89(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1003")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointNeuNab(player, npc); string_id message = new string_id(c_stringFile, "s_1007"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1011")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1015"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_963"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_995"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1027"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 84); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1019")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1023"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch90(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch91(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_963")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_967"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_971"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_979"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_987"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 85); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_995")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_999"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1003"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1011"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1019"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1027")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1031"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1035"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1043"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1051"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 93); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch92(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch93(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1035")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveWaypointNeuCore(player, npc); string_id message = new string_id(c_stringFile, "s_1039"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1043")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1047"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_963"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_995"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1027"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 84); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1051")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1055"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch94(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch95(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_963")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_967"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_971"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_979"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_987"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 85); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_995")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_999"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1003"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1011"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1019"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 89); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1027")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1031"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_1035"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1043"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1051"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 93); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch96(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch97(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1067")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1071"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch98(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch99(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1083")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1087"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch100(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch101(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1099")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1103"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse4 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_754"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1059"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1075"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_1091"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_1107"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 56); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch102(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_754")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1059")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1075")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1091")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1107")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch103(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_206")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_sendToGendra(player, npc); string_id message = new string_id(c_stringFile, "s_216"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_218"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 104); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_208")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_sendToVourk(player, npc); string_id message = new string_id(c_stringFile, "s_217"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } if (hasResponse) { int responseIndex = 0; string_id responses[] = new string_id[numberOfResponses]; if (hasResponse0) { responses[responseIndex++] = new string_id(c_stringFile, "s_220"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 106); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch104(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_218")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_219"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch106(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_220")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_221"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch108(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1135")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_757"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_759"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_851"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_955"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 57); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_1150")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_giveMayorQuest(player, npc); string_id message = new string_id(c_stringFile, "s_1152"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_1154")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1156"); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_213")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_226"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_228"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_230"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_232"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 111); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_233")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_205"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition_crafterPlayer(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition_combatPlayer(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_206"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_208"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 103); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int trehla_keelo_handleBranch111(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_228")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1079"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1083"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 99); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_230")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1063"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1067"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 97); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_232")) { if (trehla_keelo_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_1095"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_1099"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 101); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int OnInitialize(obj_id self) throws InterruptedException { if ((!isMob(self)) || (isPlayer(self))) { detachScript(self, "conversation.trehla_keelo"); } setCondition(self, CONDITION_CONVERSABLE); setCondition(self, CONDITION_INTERESTING); setInvulnerable(self, true); setName(self, "Trehla Keelo"); ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setCondition(self, CONDITION_INTERESTING); setInvulnerable(self, true); setName(self, "Trehla Keelo"); ai_lib.setDefaultCalmBehavior(self, ai_lib.BEHAVIOR_SENTINEL); 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.trehla_keelo"); 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 (!trehla_keelo_condition_questActiveOrComplete(player, npc)) { doAnimationAction(npc, "greet"); trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_303"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_305"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 1); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnBankStep(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_349"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnBankReturn(player, npc)) { doAnimationAction(npc, "greet"); trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_351"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_353"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_357"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 14); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnBazaarStep(player, npc)) { doAnimationAction(npc, "wave_finger_warning"); trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_369"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnBazaarReturn(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_371"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_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_373"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_377"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_381"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 20); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnCloneStep(player, npc)) { doAnimationAction(npc, "sigh_deeply"); trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_401"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnCloneReturn(player, npc)) { trehla_keelo_action_signalCloneReturn(player, npc); string_id message = new string_id(c_stringFile, "s_403"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_405"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_409"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 29); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnMedCenterReturn(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_567"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_569"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_585"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 33); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnJunkStep(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_601"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnJunkReturn(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_604"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_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_606"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_616"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 41); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnVehicleInfo(player, npc)) { string_id message = new string_id(c_stringFile, "s_632"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerLearnDroid(player, npc)) { string_id message = new string_id(c_stringFile, "s_715"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnLearnGroup(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_718"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_721"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 49); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnShuttleStep(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_740"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnAssociateStep(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_743"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (trehla_keelo_condition_playerOnLastStep(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_746"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_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_749"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 55); npcStartConversation(player, npc, "trehla_keelo", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (trehla_keelo_condition__defaultCondition(player, npc)) { trehla_keelo_action_faceplayer(player, npc); string_id message = new string_id(c_stringFile, "s_1131"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } boolean hasResponse3 = false; if (trehla_keelo_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } boolean hasResponse4 = false; if (!trehla_keelo_condition_startedVourk(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_1135"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_1150"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_1154"); } if (hasResponse3) { responses[responseIndex++] = new string_id(c_stringFile, "s_213"); } if (hasResponse4) { responses[responseIndex++] = new string_id(c_stringFile, "s_233"); } utils.setScriptVar(player, "conversation.trehla_keelo.branchId", 108); prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); npcStartConversation(player, npc, "trehla_keelo", null, pp, responses); } else { prose_package pp = new prose_package(); pp.stringId = message; pp.actor.set(player); pp.target.set(npc); chat.chat(npc, player, null, null, pp); } return SCRIPT_CONTINUE; } chat.chat(npc, "Error: All conditions for OnStartNpcConversation were false."); return SCRIPT_CONTINUE; } public int OnNpcConversationResponse(obj_id self, String conversationId, obj_id player, string_id response) throws InterruptedException { if (!conversationId.equals("trehla_keelo")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.trehla_keelo.branchId"); if (branchId == 1 && trehla_keelo_handleBranch1(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 2 && trehla_keelo_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && trehla_keelo_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 4 && trehla_keelo_handleBranch4(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 5 && trehla_keelo_handleBranch5(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 6 && trehla_keelo_handleBranch6(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 7 && trehla_keelo_handleBranch7(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 8 && trehla_keelo_handleBranch8(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && trehla_keelo_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 14 && trehla_keelo_handleBranch14(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 15 && trehla_keelo_handleBranch15(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 16 && trehla_keelo_handleBranch16(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 17 && trehla_keelo_handleBranch17(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 20 && trehla_keelo_handleBranch20(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 21 && trehla_keelo_handleBranch21(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 22 && trehla_keelo_handleBranch22(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 23 && trehla_keelo_handleBranch23(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 24 && trehla_keelo_handleBranch24(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 25 && trehla_keelo_handleBranch25(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 26 && trehla_keelo_handleBranch26(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 29 && trehla_keelo_handleBranch29(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 30 && trehla_keelo_handleBranch30(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 31 && trehla_keelo_handleBranch31(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 32 && trehla_keelo_handleBranch32(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 33 && trehla_keelo_handleBranch33(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 34 && trehla_keelo_handleBranch34(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 35 && trehla_keelo_handleBranch35(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 37 && trehla_keelo_handleBranch37(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 38 && trehla_keelo_handleBranch38(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 41 && trehla_keelo_handleBranch41(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 42 && trehla_keelo_handleBranch42(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 44 && trehla_keelo_handleBranch44(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 45 && trehla_keelo_handleBranch45(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 49 && trehla_keelo_handleBranch49(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 50 && trehla_keelo_handleBranch50(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 51 && trehla_keelo_handleBranch51(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 55 && trehla_keelo_handleBranch55(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 56 && trehla_keelo_handleBranch56(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 57 && trehla_keelo_handleBranch57(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 58 && trehla_keelo_handleBranch58(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 59 && trehla_keelo_handleBranch59(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 60 && trehla_keelo_handleBranch60(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 61 && trehla_keelo_handleBranch61(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 62 && trehla_keelo_handleBranch62(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 63 && trehla_keelo_handleBranch63(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 64 && trehla_keelo_handleBranch64(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 65 && trehla_keelo_handleBranch65(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 66 && trehla_keelo_handleBranch66(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 67 && trehla_keelo_handleBranch67(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 68 && trehla_keelo_handleBranch68(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 69 && trehla_keelo_handleBranch69(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 70 && trehla_keelo_handleBranch70(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 71 && trehla_keelo_handleBranch71(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 72 && trehla_keelo_handleBranch72(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 73 && trehla_keelo_handleBranch73(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 74 && trehla_keelo_handleBranch74(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 75 && trehla_keelo_handleBranch75(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 76 && trehla_keelo_handleBranch76(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 77 && trehla_keelo_handleBranch77(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 78 && trehla_keelo_handleBranch78(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 79 && trehla_keelo_handleBranch79(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 80 && trehla_keelo_handleBranch80(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 81 && trehla_keelo_handleBranch81(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 82 && trehla_keelo_handleBranch82(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 83 && trehla_keelo_handleBranch83(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 84 && trehla_keelo_handleBranch84(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 85 && trehla_keelo_handleBranch85(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 86 && trehla_keelo_handleBranch86(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 87 && trehla_keelo_handleBranch87(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 88 && trehla_keelo_handleBranch88(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 89 && trehla_keelo_handleBranch89(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 90 && trehla_keelo_handleBranch90(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 91 && trehla_keelo_handleBranch91(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 92 && trehla_keelo_handleBranch92(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 93 && trehla_keelo_handleBranch93(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 94 && trehla_keelo_handleBranch94(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 95 && trehla_keelo_handleBranch95(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 96 && trehla_keelo_handleBranch96(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 97 && trehla_keelo_handleBranch97(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 98 && trehla_keelo_handleBranch98(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 99 && trehla_keelo_handleBranch99(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 100 && trehla_keelo_handleBranch100(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 101 && trehla_keelo_handleBranch101(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 102 && trehla_keelo_handleBranch102(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 103 && trehla_keelo_handleBranch103(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 104 && trehla_keelo_handleBranch104(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 106 && trehla_keelo_handleBranch106(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 108 && trehla_keelo_handleBranch108(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 111 && trehla_keelo_handleBranch111(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse."); utils.removeScriptVar(player, "conversation.trehla_keelo.branchId"); return SCRIPT_CONTINUE; } }