Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/wod_rubina.java
T

2750 lines
114 KiB
Java

package script.conversation;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.library.ai_lib;
import script.library.chat;
import script.library.conversation;
import script.library.groundquests;
import script.library.utils;
public class wod_rubina extends script.base_script
{
public wod_rubina()
{
}
public static String c_stringFile = "conversation/wod_rubina";
public boolean wod_rubina_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean wod_rubina_condition_onReturnWalkabout2(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_prologue_walkabout_02", "speakWithRubina");
}
public boolean wod_rubina_condition_walkabout2Finished(obj_id player, obj_id npc) throws InterruptedException
{
if (!hasObjVar(player, "wod_prologue_quests"))
{
setObjVar(player, "wod_prologue_quests", 0);
}
else
{
if (getIntObjVar(player, "wod_prologue_quests") > 8)
{
setObjVar(player, "wod_prologue_quests", 8);
}
if (getIntObjVar(player, "wod_prologue_quests") < -8)
{
setObjVar(player, "wod_prologue_quests", -8);
}
}
if (questIsQuestComplete(questGetQuestId("quest/wod_prologue_kill_rancor"), player))
{
groundquests.clearQuest(player, "quest/wod_prologue_kill_rancor");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_prologue_kill_spider_clan"), player))
{
groundquests.clearQuest(player, "quest/wod_prologue_kill_spider_clan");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_prologue_herb_gathering"), player))
{
groundquests.clearQuest(player, "quest/wod_prologue_herb_gathering");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_1"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_1");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_2"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_2");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_3"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_3");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_4"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_4");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_5"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_5");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_6"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_6");
}
if (questIsQuestComplete(questGetQuestId("quest/wod_outcast_7"), player))
{
groundquests.clearQuest(player, "quest/wod_outcast_7");
}
return questIsQuestComplete(questGetQuestId("quest/wod_prologue_walkabout_02"), player);
}
public boolean wod_rubina_condition_oneQuestComplete(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status == 1 || status == -1)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_SMSlight(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status < -1)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_NSSlight(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status > 1)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_SMMost(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status < -4)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_NSMost(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status > 4)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_SMFull(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status < -7)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_NSFull(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status > 7)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_onReturnHerbsNS(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_prologue_herb_gathering", "returnForTreatNightsister");
}
public boolean wod_rubina_condition_onReturnRancorNS(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_prologue_kill_rancor", "waitForRubinaNightsisterRancor") || groundquests.isTaskActive(player, "wod_prologue_kill_spider_clan", "waitForRubinaNightsisterSpider");
}
public boolean wod_rubina_condition_zeroQuestComplete(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if (status == 0)
{
return true;
}
return false;
}
public boolean wod_rubina_condition_onReturnWisdomSM(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_outcast_1", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_2", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_3", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_4", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_5", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_6", "talkRubinaSinging") || groundquests.isTaskActive(player, "wod_outcast_7", "talkRubinaSinging");
}
public boolean wod_rubina_condition_onReturnHerbsSM(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_prologue_herb_gathering", "returnForTreatSinging");
}
public boolean wod_rubina_condition_onReturnWisdomNS(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_outcast_1", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_2", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_3", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_4", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_5", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_6", "talkRubinaNightsister") || groundquests.isTaskActive(player, "wod_outcast_7", "talkRubinaNightsister");
}
public boolean wod_rubina_condition_onReturnRancorSM(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_prologue_kill_rancor", "waitForRubinaSingingRancor") || groundquests.isTaskActive(player, "wod_prologue_kill_spider_clan", "waitForRubinaSingingSpider");
}
public boolean wod_rubina_condition_hasQuestsActive(obj_id player, obj_id npc) throws InterruptedException
{
return questIsQuestActive(questGetQuestId("quest/wod_prologue_kill_rancor"), player) || questIsQuestActive(questGetQuestId("quest/wod_prologue_kill_spider_clan"), player) || questIsQuestActive(questGetQuestId("quest/wod_prologue_herb_gathering"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_1"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_2"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_3"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_4"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_5"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_6"), player) || questIsQuestActive(questGetQuestId("quest/wod_outcast_7"), player);
}
public boolean wod_rubina_condition_readyToGoNS(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if ((status > 7) && (!groundquests.hasCompletedQuest(player, "wod_rubina_goto_ns")))
{
return true;
}
return false;
}
public boolean wod_rubina_condition_readyToGoSM(obj_id player, obj_id npc) throws InterruptedException
{
int status = getIntObjVar(player, "wod_prologue_quests");
if ((status < -7) && (!groundquests.hasCompletedQuest(player, "wod_rubina_goto_sm")))
{
return true;
}
return false;
}
public boolean wod_rubina_condition_onReturnChest(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isTaskActive(player, "wod_rubina_chest", "giveCylinder"))
{
return true;
}
else if (groundquests.hasCompletedQuest(player, "wod_rubina_chest") && !groundquests.hasCompletedQuest(player, "wod_left_behind") && !questIsQuestActive(questGetQuestId("quest/wod_left_behind"), player))
{
return true;
}
return false;
}
public boolean wod_rubina_condition_onReturnLeftBehind(obj_id player, obj_id npc) throws InterruptedException
{
return groundquests.isTaskActive(player, "wod_left_behind", "giveCache");
}
public void wod_rubina_action_sendReturnedSignalWalkabout2(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "speakWithRubina");
}
public void wod_rubina_action_grantPrologueHerbs(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/wod_prologue_herb_gathering");
}
public void wod_rubina_action_grantPrologueEnemies(obj_id player, obj_id npc) throws InterruptedException
{
int rng = rand(0, 100);
if (rng > 50)
{
groundquests.grantQuest(player, "quest/wod_prologue_kill_rancor");
}
else
{
groundquests.grantQuest(player, "quest/wod_prologue_kill_spider_clan");
}
}
public void wod_rubina_action_grantPrologueWisdom(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/wod_outcast_" + rand(1, 7));
}
public void wod_rubina_action_sendReturnedRancorNS(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isTaskActive(player, "wod_prologue_kill_rancor", "waitForRubinaNightsisterRancor"))
{
groundquests.sendSignal(player, "waitForRubinaNightsisterRancor");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") + 1);
modifyCollectionSlotValue(player, "wod_prologue_kill_rancors_01", 1);
}
if (groundquests.isTaskActive(player, "wod_prologue_kill_spider_clan", "waitForRubinaNightsisterSpider"))
{
groundquests.sendSignal(player, "waitForRubinaNightsisterSpider");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") + 1);
modifyCollectionSlotValue(player, "wod_prologue_kill_spiders_01", 1);
}
}
public void wod_rubina_action_sendReturnedRancorSM(obj_id player, obj_id npc) throws InterruptedException
{
if (groundquests.isTaskActive(player, "wod_prologue_kill_rancor", "waitForRubinaSingingRancor"))
{
groundquests.sendSignal(player, "waitForRubinaSingingRancor");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") - 1);
modifyCollectionSlotValue(player, "wod_prologue_kill_rancors_01", 1);
}
if (groundquests.isTaskActive(player, "wod_prologue_kill_spider_clan", "waitForRubinaSingingSpider"))
{
groundquests.sendSignal(player, "waitForRubinaSingingSpider");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") - 1);
modifyCollectionSlotValue(player, "wod_prologue_kill_spiders_01", 1);
}
}
public void wod_rubina_action_sendReturnedHerbsNS(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "selectBasketNightsister");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") + 1);
modifyCollectionSlotValue(player, "wod_prologue_ns_herb_01", 1);
}
public void wod_rubina_action_sendReturnedHerbsSM(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "selectBasketSiging");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") - 1);
modifyCollectionSlotValue(player, "wod_prologue_herb_01", 1);
}
public void wod_rubina_action_sendReturnedWisdomNS(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "wod_outcast_nightsister_win_2");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") + 1);
modifyCollectionSlotValue(player, "wod_prologue_nightsister_outcasts_01", 1);
}
public void wod_rubina_action_sendReturnedWisdomSM(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "wod_outcast_singing_win_2");
setObjVar(player, "wod_prologue_quests", getIntObjVar(player, "wod_prologue_quests") - 1);
modifyCollectionSlotValue(player, "wod_prologue_singing_outcasts_01", 1);
}
public void wod_rubina_action_grantGoToNS(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/wod_rubina_goto_ns");
}
public void wod_rubina_action_grantGoToSM(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/wod_rubina_goto_sm");
}
public void wod_rubina_action_sendReturnedSignalChest(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "hasGivenCylinder");
}
public void wod_rubina_action_grantLeftBehind(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.grantQuest(player, "quest/wod_left_behind");
}
public void wod_rubina_action_sendReturnedSignalLeftBehind(obj_id player, obj_id npc) throws InterruptedException
{
groundquests.sendSignal(player, "gaveCache");
}
public float wod_rubina_tokenDF_tokenDF0001(obj_id player, obj_id npc) throws InterruptedException
{
return 0.f;
}
public int wod_rubina_handleBranch1(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_6"))
{
wod_rubina_action_sendReturnedSignalWalkabout2(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_8");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_63"))
{
wod_rubina_action_sendReturnedHerbsNS(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_151");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_64"))
{
wod_rubina_action_sendReturnedHerbsSM(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_152");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_67"))
{
wod_rubina_action_sendReturnedRancorNS(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_153");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch9(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_68"))
{
wod_rubina_action_sendReturnedRancorSM(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_154");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch11(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_140"))
{
wod_rubina_action_sendReturnedWisdomNS(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_155");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_139"))
{
wod_rubina_action_sendReturnedWisdomSM(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_156");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_188"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_189");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_190");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 16);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_190"))
{
wod_rubina_action_sendReturnedSignalChest(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_191");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_197");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 17);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_197"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantLeftBehind(player, npc);
string_id message = new string_id(c_stringFile, "s_199");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_200"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_201");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_202");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 20);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_202"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_203");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_204");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 21);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch21(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_204"))
{
wod_rubina_action_sendReturnedSignalLeftBehind(player, npc);
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_205");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch24(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_45"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_47");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_148");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_149");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 25);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_100"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_102");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_104");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_116");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_120");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_124");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_128");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_132");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_136");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_146");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 36);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_158"))
{
if (wod_rubina_condition_readyToGoNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_172");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_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_174");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_178");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 47);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_readyToGoSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_180");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_182");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_186");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_170");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_173");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_177");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_181");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_185");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_193");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_oneQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_196");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_zeroQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_206");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_49"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_51");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_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_53");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_73");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_85");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 26);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_148"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueHerbs(player, npc);
string_id message = new string_id(c_stringFile, "s_71");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_145"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueEnemies(player, npc);
string_id message = new string_id(c_stringFile, "s_83");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_149"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueWisdom(player, npc);
string_id message = new string_id(c_stringFile, "s_95");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_53"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_55");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_57");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 27);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_73"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_75");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_77");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 30);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_85"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_87");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_89");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 33);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch27(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_57"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_59");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_69");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 28);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_69"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueHerbs(player, npc);
string_id message = new string_id(c_stringFile, "s_71");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch30(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_77"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_79");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_81");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 31);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_81"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueEnemies(player, npc);
string_id message = new string_id(c_stringFile, "s_83");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch33(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_89"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_91");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_93");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 34);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_93"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantPrologueWisdom(player, npc);
string_id message = new string_id(c_stringFile, "s_95");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch36(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_104"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_106");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_108");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 37);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_116"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_118");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_120"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_122");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_124"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_126");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_128"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_130");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_132"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_134");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_136"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_142");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_146"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_150");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch37(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_108"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_110");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_112");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 38);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_112"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_114");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch47(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_174"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantGoToNS(player, npc);
string_id message = new string_id(c_stringFile, "s_176");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_178"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_207");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_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_45");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_100");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_158");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 24);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch49(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_45"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_47");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_148");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_149");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 25);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_100"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_102");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_104");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_116");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_120");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_124");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_128");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_132");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_136");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_146");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 36);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_158"))
{
if (wod_rubina_condition_readyToGoNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_172");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_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_174");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_178");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 47);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_readyToGoSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_180");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_182");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_186");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_170");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_173");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_177");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_181");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_185");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_193");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_oneQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_196");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_zeroQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_206");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_182"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
wod_rubina_action_grantGoToSM(player, npc);
string_id message = new string_id(c_stringFile, "s_184");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_186"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_208");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_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_45");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_100");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_158");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 24);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int wod_rubina_handleBranch52(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_45"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_47");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_148");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_145");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_149");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 25);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_100"))
{
if (wod_rubina_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_102");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_104");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_116");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_120");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_124");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_128");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_132");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_136");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_146");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 36);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_158"))
{
if (wod_rubina_condition_readyToGoNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_172");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_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_174");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_178");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 47);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_readyToGoSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_180");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_182");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_186");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_170");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSFull(player, npc))
{
string_id message = new string_id(c_stringFile, "s_173");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_177");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSMost(player, npc))
{
string_id message = new string_id(c_stringFile, "s_181");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_SMSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_185");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_NSSlight(player, npc))
{
string_id message = new string_id(c_stringFile, "s_193");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_oneQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_196");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_zeroQuestComplete(player, npc))
{
string_id message = new string_id(c_stringFile, "s_206");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_CONTINUE;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if ((!isTangible(self)) || (isPlayer(self)))
{
detachScript(self, "conversation.wod_rubina");
}
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);
setCondition(self, CONDITION_INTERESTING);
return SCRIPT_CONTINUE;
}
public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException
{
clearCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_INTERESTING);
detachScript(self, "conversation.wod_rubina");
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 (wod_rubina_condition_onReturnWalkabout2(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_6");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 1);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnHerbsNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_61");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_63");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 3);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnHerbsSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_62");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_64");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 5);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnRancorNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_65");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_67");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 7);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnRancorSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_66");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_68");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 9);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnWisdomNS(player, npc))
{
string_id message = new string_id(c_stringFile, "s_137");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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.wod_rubina.branchId", 11);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnWisdomSM(player, npc))
{
string_id message = new string_id(c_stringFile, "s_138");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_139");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 13);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnChest(player, npc))
{
string_id message = new string_id(c_stringFile, "s_187");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_188");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 15);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_onReturnLeftBehind(player, npc))
{
string_id message = new string_id(c_stringFile, "s_195");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_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_200");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 19);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_hasQuestsActive(player, npc))
{
string_id message = new string_id(c_stringFile, "s_143");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (wod_rubina_condition_walkabout2Finished(player, npc))
{
string_id message = new string_id(c_stringFile, "s_43");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (wod_rubina_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (wod_rubina_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_45");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_100");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_158");
}
utils.setScriptVar(player, "conversation.wod_rubina.branchId", 24);
npcStartConversation(player, npc, "wod_rubina", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!wod_rubina_condition_walkabout2Finished(player, npc))
{
string_id message = new string_id(c_stringFile, "s_210");
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("wod_rubina"))
{
return SCRIPT_CONTINUE;
}
obj_id npc = self;
int branchId = utils.getIntScriptVar(player, "conversation.wod_rubina.branchId");
if (branchId == 1 && wod_rubina_handleBranch1(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 3 && wod_rubina_handleBranch3(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 5 && wod_rubina_handleBranch5(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 7 && wod_rubina_handleBranch7(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 9 && wod_rubina_handleBranch9(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 11 && wod_rubina_handleBranch11(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 13 && wod_rubina_handleBranch13(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 15 && wod_rubina_handleBranch15(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 16 && wod_rubina_handleBranch16(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 17 && wod_rubina_handleBranch17(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 19 && wod_rubina_handleBranch19(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 20 && wod_rubina_handleBranch20(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 21 && wod_rubina_handleBranch21(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 24 && wod_rubina_handleBranch24(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 25 && wod_rubina_handleBranch25(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 26 && wod_rubina_handleBranch26(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 27 && wod_rubina_handleBranch27(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 28 && wod_rubina_handleBranch28(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 30 && wod_rubina_handleBranch30(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 31 && wod_rubina_handleBranch31(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 33 && wod_rubina_handleBranch33(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 34 && wod_rubina_handleBranch34(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 36 && wod_rubina_handleBranch36(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 37 && wod_rubina_handleBranch37(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 38 && wod_rubina_handleBranch38(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 47 && wod_rubina_handleBranch47(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 49 && wod_rubina_handleBranch49(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 50 && wod_rubina_handleBranch50(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 52 && wod_rubina_handleBranch52(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar(player, "conversation.wod_rubina.branchId");
return SCRIPT_CONTINUE;
}
}