Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/tatooine_eisley_gendra.java
T
2018-06-07 00:32:29 +01:00

3190 lines
137 KiB
Java
Executable File

package script.conversation;
import script.library.*;
import script.*;
public class tatooine_eisley_gendra extends script.base_script
{
public tatooine_eisley_gendra()
{
}
public static String c_stringFile = "conversation/tatooine_eisley_gendra";
public boolean tatooine_eisley_gendra_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean tatooine_eisley_gendra_condition_isOnTeaQuest(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isQuestActive(player, "quest/newbie_gendra_spiced_tea");
}
public boolean tatooine_eisley_gendra_condition_isOnJerkyQuest(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isQuestActive(player, "quest/newbie_gendra_meat_jerky");
}
public boolean tatooine_eisley_gendra_condition_isOnGlassQuest(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isQuestActive(player, "quest/newbie_gendra_small_glass"))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_finishedTeaQuest(obj_id player, obj_id npc) throws InterruptedException
{
return (groundquests.isTaskActive(player, "quest/newbie_gendra_spiced_tea", "deliveredTea") && utils.isProfession(player, utils.TRADER));
}
public boolean tatooine_eisley_gendra_condition_finishedGlassQuest(obj_id player, obj_id npc) throws InterruptedException
{
return ((groundquests.isTaskActive(player, "quest/newbie_gendra_small_glass", "deliveredGlasses") || groundquests.hasCompletedQuest(player, "quest/newbie_gendra_small_glass")) && utils.isProfession(player, utils.TRADER));
}
public boolean tatooine_eisley_gendra_condition_finishedJerkyQuest(obj_id player, obj_id npc) throws InterruptedException
{
return (groundquests.hasCompletedQuest(player, "quest/newbie_gendra_meat_jerky") && utils.isProfession(player, utils.TRADER));
}
public boolean tatooine_eisley_gendra_condition_doneWorking(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.hasCompletedQuest(player, "quest/newbie_gendra_spiced_tea") || groundquests.hasCompletedQuest(player, "quest/newbie_gendra_cantina_entertainer"))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_isOnDanceQuest(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isQuestActive(player, "quest/newbie_gendra_cantina_dance"))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_isOnMusicQuest(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isQuestActive(player, "quest/newbie_gendra_cantina_music");
}
public boolean tatooine_eisley_gendra_condition_isOnEntertainerQuest(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isQuestActive(player, "quest/newbie_gendra_cantina_entertainer"))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_finishingDance(obj_id player, obj_id npc) throws InterruptedException
{
return ((groundquests.isTaskActive(player, "quest/newbie_gendra_cantina_dance", "doneDancing") || (groundquests.hasCompletedQuest(player, "quest/newbie_gendra_cantina_dance"))) && utils.isProfession(player, utils.ENTERTAINER));
}
public boolean tatooine_eisley_gendra_condition_finishingMusic(obj_id player, obj_id npc) throws InterruptedException
{
return ((groundquests.isTaskActive(player, "quest/newbie_gendra_cantina_music", "doneMusic") || (groundquests.hasCompletedQuest(player, "quest/newbie_gendra_cantina_music"))) && utils.isProfession(player, utils.ENTERTAINER));
}
public boolean tatooine_eisley_gendra_condition_finishingEntertainer(obj_id player, obj_id npc) throws InterruptedException
{
return ((groundquests.isTaskActive(player, "quest/newbie_gendra_cantina_entertainer", "doneEntertaining") || (groundquests.hasCompletedQuest(player, "quest/newbie_gendra_cantina_entertainer"))) && utils.isProfession(player, utils.ENTERTAINER));
}
public boolean tatooine_eisley_gendra_condition_isACrafter(obj_id player, obj_id npc) throws InterruptedException
{
if (content.isCrafter(player))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_isAnEntertainer(obj_id player, obj_id npc) throws InterruptedException
{
if (content.isEntertainer(player))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_gendrasPocketPicking(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isTaskActive(player, "quest/steal_speeder", "pickGendrasPocket"))
{
return true;
}
return false;
}
public boolean tatooine_eisley_gendra_condition_needsVehicle(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.hasCompletedQuest(player, "quest/gendra_speeder"))
{
return false;
}
else if (groundquests.hasCompletedQuest(player, "quest/speeder_quest"))
{
return false;
}
else
{
return true;
}
}
public boolean tatooine_eisley_gendra_condition_needsHorn(obj_id player, obj_id npc) throws InterruptedException
{
return utils.playerHasStaticItemInBankOrInventory(player, "item_npe_smooth_slitherhorn_01_01");
}
public boolean tatooine_eisley_gendra_condition_hasTalkToTrehla(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isQuestActive(player, "quest/tatooine_eisley_gototrehla_v2");
}
public void tatooine_eisley_gendra_action_grantJerkyQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_meat_jerky");
}
public void tatooine_eisley_gendra_action_grantGlassQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_small_glass");
}
public void tatooine_eisley_gendra_action_grantTeaQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_spiced_tea");
}
public void tatooine_eisley_gendra_action_grantDanceQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_cantina_dance");
}
public void tatooine_eisley_gendra_action_grantMusicQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_cantina_music");
}
public void tatooine_eisley_gendra_action_grantEntertainerQuest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_cantina_entertainer");
}
public void tatooine_eisley_gendra_action_sendDanceSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "dancedForGendra");
}
public void tatooine_eisley_gendra_action_sendMusicSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "playedForGendra");
}
public void tatooine_eisley_gendra_action_sendEntertainerSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "entertainedForGendra");
}
public void tatooine_eisley_gendra_action_showNeutralPilot(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_neutral_pilot");
}
public void tatooine_eisley_gendra_action_showRebelPilot(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_rebel_pilot");
}
public void tatooine_eisley_gendra_action_showImperialPilot(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_gendra_imperial_pilot");
}
public void tatooine_eisley_gendra_action_showCraftingTerminal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_crafter_terminal");
}
public void tatooine_eisley_gendra_action_showEntertainerTerminal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/newbie_entertainer_terminal");
}
public void tatooine_eisley_gendra_action_sendGlassSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "doneGlassQuest");
}
public void tatooine_eisley_gendra_action_sendTeaSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "doneTeaQuest");
}
public void tatooine_eisley_gendra_action_pocketPickingSignal(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "gendrasPocketPicked");
}
public void tatooine_eisley_gendra_action_givespeeder(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.requestGrantQuest(player, "quest/gendra_speeder");
}
public void tatooine_eisley_gendra_action_sendToTrehla(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isQuestActiveOrComplete(player, "quest/tatooine_eisley_gototrehla_v2"))
{
groundquests.clearQuest(player, "quest/tatooine_eisley_gototrehla_v2");
}
groundquests.grantQuest(player, "quest/tatooine_eisley_gototrehla_v2");
}
public void tatooine_eisley_gendra_action_giveHorn(obj_id player, obj_id npc) throws InterruptedException
{
obj_id horn = static_item.createNewItemFunction("item_npe_smooth_slitherhorn_01_01", player);
obj_id[] items = new obj_id[1];
items[0] = horn;
showLootBox(player, items);
}
public void tatooine_eisley_gendra_action_grantLegacyQuest(obj_id player, obj_id npc) throws InterruptedException
{
if (!groundquests.isQuestActiveOrComplete(player, "tatooine_eisley_legacy"))
{
groundquests.grantQuest(player, "tatooine_eisley_legacy");
}
}
public int tatooine_eisley_gendra_handleBranch1(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_211"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_226"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showCraftingTerminal(player, npc);
string_id message = new string_id(c_stringFile, "s_59");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_53");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 7);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_228"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showEntertainerTerminal(player, npc);
string_id message = new string_id(c_stringFile, "s_94");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_251"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_givespeeder(player, npc);
string_id message = new string_id(c_stringFile, "s_253");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_210"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_sendToTrehla(player, npc);
string_id message = new string_id(c_stringFile, "s_212");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_89"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_90");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_92");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_225");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_198"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_92"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showEntertainerTerminal(player, npc);
string_id message = new string_id(c_stringFile, "s_94");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_225"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_182");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_184");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_188");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 51);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_49"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_52");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_53");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 7);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_50"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_51");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_54");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 11);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_197"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_53"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_55");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_56");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_58");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_219");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 8);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch8(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_56"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_57");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_58"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showCraftingTerminal(player, npc);
string_id message = new string_id(c_stringFile, "s_59");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_53");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 7);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_219"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_182");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_184");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_188");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 51);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_53"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_55");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_56");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_58");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_219");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 8);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch11(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_54"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_55");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_56");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_58");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_219");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 8);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_81"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_83");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_84");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_82"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_254");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_196"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_84"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_85");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_86");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 16);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_86"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantEntertainerQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_87");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch18(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_63"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_65");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_67");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_72");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 19);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_99"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_101");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_195"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_67"))
{
tatooine_eisley_gendra_action_grantTeaQuest(player, npc);
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_69");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_72"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_74");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_76");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 21);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_76"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_78");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_95");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_97");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 22);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch22(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_95"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_69");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_97"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_101");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_110"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_112");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_199");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 27);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_127"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_254");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_194"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_199"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_201");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_230");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_245");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 28);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_230"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_232");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_234");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_242");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 29);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_245"))
{
if (!tatooine_eisley_gendra_condition_needsHorn(player, npc))
{
tatooine_eisley_gendra_action_giveHorn(player, npc);
string_id message = new string_id(c_stringFile, "s_233");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_230");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_245");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 28);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_246");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_234"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_236");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_238");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_240");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 30);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_242"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantMusicQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_244");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_238"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantMusicQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_244");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_240"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_254");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_230"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_232");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_234");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_242");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 29);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_245"))
{
if (!tatooine_eisley_gendra_condition_needsHorn(player, npc))
{
tatooine_eisley_gendra_action_giveHorn(player, npc);
string_id message = new string_id(c_stringFile, "s_233");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_230");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_245");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 28);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_246");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_132"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_134");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_136"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_138");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_140");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 36);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_193"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch36(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_140"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantGlassQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_142");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_151"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_247");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_252");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_256");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 41);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_166"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_168");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_170");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_178");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 48);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_180"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_182");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_184");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_188");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 51);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_208"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_220");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_224");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_239");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_249"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_givespeeder(player, npc);
string_id message = new string_id(c_stringFile, "s_253");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_252"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_254");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_256"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_258");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_260");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_264");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 43);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch43(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_260"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantJerkyQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_262");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_215");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 44);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_264"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_266");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch44(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_215"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_217");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_217"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_218");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_170"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_172");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_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_174");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 49);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_178"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_254");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_174"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_grantDanceQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_176");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_184"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_sendToTrehla(player, npc);
string_id message = new string_id(c_stringFile, "s_186");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_188"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_190");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition_isACrafter(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition_isAnEntertainer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_192");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_202");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_204");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 53);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch53(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_192"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_247");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_252");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_256");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 41);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_202"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_168");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_170");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_178");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 48);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_204"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_206");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_eisley_gendra_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_220"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showNeutralPilot(player, npc);
string_id message = new string_id(c_stringFile, "s_222");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_224"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showImperialPilot(player, npc);
string_id message = new string_id(c_stringFile, "s_229");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_239"))
{
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
tatooine_eisley_gendra_action_showRebelPilot(player, npc);
string_id message = new string_id(c_stringFile, "s_243");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.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.tatooine_eisley_gendra");
}
setCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_INTERESTING);
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_INTERESTING);
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.tatooine_eisley_gendra");
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 (tatooine_eisley_gendra_condition_doneWorking(player, npc))
{
string_id message = new string_id(c_stringFile, "s_60");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition_isACrafter(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_condition_isAnEntertainer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (tatooine_eisley_gendra_condition_needsVehicle(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (!tatooine_eisley_gendra_condition_hasTalkToTrehla(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_211");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_226");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_228");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_251");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_210");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 1);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishingEntertainer(player, npc))
{
tatooine_eisley_gendra_action_sendEntertainerSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_80");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_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_89");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_198");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 3);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishedTeaQuest(player, npc))
{
tatooine_eisley_gendra_action_sendTeaSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_48");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_49");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_50");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_197");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 6);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnEntertainerQuest(player, npc))
{
tatooine_eisley_gendra_action_sendEntertainerSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_88");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnTeaQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_47");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishingMusic(player, npc))
{
tatooine_eisley_gendra_action_sendMusicSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_70");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_81");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_196");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 14);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishedGlassQuest(player, npc))
{
tatooine_eisley_gendra_action_sendGlassSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_61");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_63");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_99");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_195");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 18);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnMusicQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_104");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnGlassQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_106");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishingDance(player, npc))
{
tatooine_eisley_gendra_action_sendDanceSignal(player, npc);
string_id message = new string_id(c_stringFile, "s_108");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_110");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_127");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_194");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 26);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_finishedJerkyQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_130");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_eisley_gendra_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_132");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_136");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_193");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 34);
npcStartConversation(player, npc, "tatooine_eisley_gendra", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnJerkyQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_145");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition_isOnDanceQuest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_147");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_149");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_eisley_gendra_condition_isACrafter(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_eisley_gendra_condition_isAnEntertainer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (!tatooine_eisley_gendra_condition_hasTalkToTrehla(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (tatooine_eisley_gendra_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (tatooine_eisley_gendra_condition_needsVehicle(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_151");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_166");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_180");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_208");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_249");
}
utils.setScriptVar(player, "conversation.tatooine_eisley_gendra.branchId", 40);
npcStartConversation(player, npc, "tatooine_eisley_gendra", 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("tatooine_eisley_gendra"))
{
return SCRIPT_CONTINUE;
}
obj_id npc = self;
int branchId = utils.getIntScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
if (branchId == 1 && tatooine_eisley_gendra_handleBranch1(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 3 && tatooine_eisley_gendra_handleBranch3(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 4 && tatooine_eisley_gendra_handleBranch4(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 6 && tatooine_eisley_gendra_handleBranch6(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 7 && tatooine_eisley_gendra_handleBranch7(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 8 && tatooine_eisley_gendra_handleBranch8(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 10 && tatooine_eisley_gendra_handleBranch10(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 11 && tatooine_eisley_gendra_handleBranch11(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 14 && tatooine_eisley_gendra_handleBranch14(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 15 && tatooine_eisley_gendra_handleBranch15(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 16 && tatooine_eisley_gendra_handleBranch16(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 18 && tatooine_eisley_gendra_handleBranch18(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 19 && tatooine_eisley_gendra_handleBranch19(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 21 && tatooine_eisley_gendra_handleBranch21(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 22 && tatooine_eisley_gendra_handleBranch22(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 26 && tatooine_eisley_gendra_handleBranch26(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 27 && tatooine_eisley_gendra_handleBranch27(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 28 && tatooine_eisley_gendra_handleBranch28(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 29 && tatooine_eisley_gendra_handleBranch29(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 30 && tatooine_eisley_gendra_handleBranch30(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 32 && tatooine_eisley_gendra_handleBranch32(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 34 && tatooine_eisley_gendra_handleBranch34(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 36 && tatooine_eisley_gendra_handleBranch36(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 40 && tatooine_eisley_gendra_handleBranch40(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 41 && tatooine_eisley_gendra_handleBranch41(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 43 && tatooine_eisley_gendra_handleBranch43(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 44 && tatooine_eisley_gendra_handleBranch44(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 45 && tatooine_eisley_gendra_handleBranch45(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 48 && tatooine_eisley_gendra_handleBranch48(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 49 && tatooine_eisley_gendra_handleBranch49(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 51 && tatooine_eisley_gendra_handleBranch51(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 53 && tatooine_eisley_gendra_handleBranch53(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 55 && tatooine_eisley_gendra_handleBranch55(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar(player, "conversation.tatooine_eisley_gendra.branchId");
return SCRIPT_CONTINUE;
}
}