package script.conversation; import script.library.ai_lib; import script.library.chat; import script.library.utils; import script.*; public class biogenic_scientist_human extends script.base_script { public biogenic_scientist_human() { } public static String c_stringFile = "conversation/biogenic_scientist_human"; public boolean biogenic_scientist_human_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException { return true; } public boolean biogenic_scientist_human_condition_get_tracker_2(obj_id player, obj_id npc) throws InterruptedException { int tracker = getIntObjVar(player, "biogenic.scientist_human_convo"); if (tracker == 2) { return true; } else { return false; } } public boolean biogenic_scientist_human_condition_get_tracker_1(obj_id player, obj_id npc) throws InterruptedException { int tracker = getIntObjVar(player, "biogenic.scientist_human_convo"); if (tracker == 1) { return true; } else { return false; } } public boolean biogenic_scientist_human_condition_get_tracker_3(obj_id player, obj_id npc) throws InterruptedException { int tracker = getIntObjVar(player, "biogenic.scientist_human_convo"); if (tracker == 3) { return true; } else { return false; } } public void biogenic_scientist_human_action_give_schematic(obj_id player, obj_id npc) throws InterruptedException { setObjVar(player, "biogenic.scientist_human_convo", 2); obj_id playerInv = utils.getInventoryContainer(player); createObject("object/tangible/loot/loot_schematic/geonosian_tenloss_dxr6_schematic.iff", playerInv, ""); } public void biogenic_scientist_human_action_set_tracker_1(obj_id player, obj_id npc) throws InterruptedException { setObjVar(player, "biogenic.scientist_human_convo", 1); } public void biogenic_scientist_human_action_face_to(obj_id player, obj_id npc) throws InterruptedException { faceToBehavior(npc, player); } public void biogenic_scientist_human_action_set_tracker_3(obj_id player, obj_id npc) throws InterruptedException { faceToBehavior(npc, player); setObjVar(player, "biogenic.scientist_human_convo", 3); } public int biogenic_scientist_human_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_259e4732")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f891f03f"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_a2a14f83")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_37a3f14d"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_1c8bddbb")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_ce30b8e3"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_7516dec7")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_a643bebd"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_dc4694a0")) { biogenic_scientist_human_action_set_tracker_1(player, npc); if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_b479c40b"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_13"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_c28dc6ef"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 7); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_3c5b4784")) { biogenic_scientist_human_action_set_tracker_1(player, npc); if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_7e89fa19"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_29"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_46b9a9b7"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 14); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_976331da")) { biogenic_scientist_human_action_set_tracker_1(player, npc); if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_d080da0e"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_37"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_41"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 17); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_13")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_15"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_c28dc6ef")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_e2c55073"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch8(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_259e4732")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f891f03f"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_a2a14f83")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_37a3f14d"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch12(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_259e4732")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_f891f03f"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } if (response.equals("s_a2a14f83")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { string_id message = new string_id(c_stringFile, "s_37a3f14d"); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_29")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_31"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_46b9a9b7")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_91b03aa5"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_37")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_39"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_41")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_give_schematic(player, npc); string_id message = new string_id(c_stringFile, "s_43"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_4136c2df"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_e79d7d15"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 8); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch18(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } return SCRIPT_DEFAULT; } public int biogenic_scientist_human_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException { if (response.equals("s_4136c2df")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_5044c295"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); npcEndConversationWithMessage(player, message); } return SCRIPT_CONTINUE; } } if (response.equals("s_e79d7d15")) { if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_4c5806c8"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcSpeak(player, message); npcSetConversationResponses(player, responses); } else { utils.removeScriptVar(player, "conversation.biogenic_scientist_human.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.biogenic_scientist_human"); } setCondition(self, CONDITION_CONVERSABLE); setInvulnerable(self, true); return SCRIPT_CONTINUE; } public int OnAttach(obj_id self) throws InterruptedException { setCondition(self, CONDITION_CONVERSABLE); setInvulnerable(self, true); 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.biogenic_scientist_human"); 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 (biogenic_scientist_human_condition_get_tracker_3(player, npc)) { biogenic_scientist_human_action_face_to(player, npc); string_id message = new string_id(c_stringFile, "s_6fc909ee"); chat.chat(npc, player, message); return SCRIPT_CONTINUE; } if (biogenic_scientist_human_condition_get_tracker_2(player, npc)) { biogenic_scientist_human_action_set_tracker_3(player, npc); string_id message = new string_id(c_stringFile, "s_b076c975"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_259e4732"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_a2a14f83"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 9); npcStartConversation(player, npc, "biogenic_scientist_human", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (biogenic_scientist_human_condition_get_tracker_1(player, npc)) { biogenic_scientist_human_action_face_to(player, npc); string_id message = new string_id(c_stringFile, "s_2f286865"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_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_1c8bddbb"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_7516dec7"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 3); npcStartConversation(player, npc, "biogenic_scientist_human", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { biogenic_scientist_human_action_face_to(player, npc); string_id message = new string_id(c_stringFile, "s_ba27cb12"); int numberOfResponses = 0; boolean hasResponse = false; boolean hasResponse0 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } boolean hasResponse1 = false; if (biogenic_scientist_human_condition__defaultCondition(player, npc)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } boolean hasResponse2 = false; if (biogenic_scientist_human_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_dc4694a0"); } if (hasResponse1) { responses[responseIndex++] = new string_id(c_stringFile, "s_3c5b4784"); } if (hasResponse2) { responses[responseIndex++] = new string_id(c_stringFile, "s_976331da"); } utils.setScriptVar(player, "conversation.biogenic_scientist_human.branchId", 6); npcStartConversation(player, npc, "biogenic_scientist_human", message, responses); } else { chat.chat(npc, player, message); } return SCRIPT_CONTINUE; } chat.chat(npc, "Error: All conditions for OnStartNpcConversation were false."); return SCRIPT_CONTINUE; } public int OnNpcConversationResponse(obj_id self, String conversationId, obj_id player, string_id response) throws InterruptedException { if (!conversationId.equals("biogenic_scientist_human")) { return SCRIPT_CONTINUE; } obj_id npc = self; int branchId = utils.getIntScriptVar(player, "conversation.biogenic_scientist_human.branchId"); if (branchId == 2 && biogenic_scientist_human_handleBranch2(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 3 && biogenic_scientist_human_handleBranch3(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 4 && biogenic_scientist_human_handleBranch4(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 5 && biogenic_scientist_human_handleBranch5(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 6 && biogenic_scientist_human_handleBranch6(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 7 && biogenic_scientist_human_handleBranch7(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 8 && biogenic_scientist_human_handleBranch8(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 9 && biogenic_scientist_human_handleBranch9(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 12 && biogenic_scientist_human_handleBranch12(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 13 && biogenic_scientist_human_handleBranch13(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 14 && biogenic_scientist_human_handleBranch14(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 15 && biogenic_scientist_human_handleBranch15(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 16 && biogenic_scientist_human_handleBranch16(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 17 && biogenic_scientist_human_handleBranch17(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 18 && biogenic_scientist_human_handleBranch18(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } if (branchId == 19 && biogenic_scientist_human_handleBranch19(player, npc, response) == SCRIPT_CONTINUE) { return SCRIPT_CONTINUE; } chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse."); utils.removeScriptVar(player, "conversation.biogenic_scientist_human.branchId"); return SCRIPT_CONTINUE; } }