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

2662 lines
115 KiB
Java
Executable File

package script.conversation;
import script.library.ai_lib;
import script.library.chat;
import script.*;
public class sample_links extends script.base_script
{
public sample_links()
{
}
public static String c_stringFile = "conversation/sample_links";
public boolean sample_links_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean sample_links_condition_condition0001(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean sample_links_condition_condition0002(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public void sample_links_action__defaultAction(obj_id player, obj_id npc) throws InterruptedException
{
}
public void sample_links_action_action0001(obj_id player, obj_id npc) throws InterruptedException
{
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if ((!isMob(self)) || (isPlayer(self)))
{
detachScript(self, "npc.conversation.sample_links");
}
setCondition(self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
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, "npc.conversation.sample_links");
return SCRIPT_CONTINUE;
}
public int OnStartNpcConversation(obj_id self, obj_id player) throws InterruptedException
{
if (ai_lib.isInCombat(self) || ai_lib.isInCombat(player))
{
return SCRIPT_OVERRIDE;
}
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_f8d0c9d2");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcStartConversation(player, self, "sample_links", message, responses);
}
else
{
chat.chat(self, message);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "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("sample_links"))
{
return SCRIPT_CONTINUE;
}
int branchId = getIntObjVar(player, "conversation.sample_links.branchId");
if (branchId == 1 && response.equals("s_79345378"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_3c59e302");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 1 && response.equals("s_7a43e024"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_a91a9b13");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 1 && response.equals("s_872e7a7d"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_2664b871");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 1 && response.equals("s_9ede25b7"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cde8ebfe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 2 && response.equals("s_79345378"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_3c59e302");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 2 && response.equals("s_7a43e024"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_a91a9b13");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 2 && response.equals("s_872e7a7d"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_2664b871");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 2 && response.equals("s_9ede25b7"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cde8ebfe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 3 && response.equals("s_79345378"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_3c59e302");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 3 && response.equals("s_7a43e024"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_a91a9b13");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 3 && response.equals("s_872e7a7d"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_2664b871");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 3 && response.equals("s_9ede25b7"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cde8ebfe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_79345378"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_3c59e302");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_7a43e024"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_a91a9b13");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_872e7a7d"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_2664b871");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 4 && response.equals("s_9ede25b7"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cde8ebfe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_7cac869c"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_875d7686");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_81c11cc5"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_82355e4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_82b6af99"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_9d602df5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 5 && response.equals("s_d3ff6fc9"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_c261cfae");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 6 && response.equals("s_7cac869c"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_875d7686");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 6 && response.equals("s_81c11cc5"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_82355e4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 6 && response.equals("s_82b6af99"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_9d602df5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 6 && response.equals("s_d3ff6fc9"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_c261cfae");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_7cac869c"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_875d7686");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_81c11cc5"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_82355e4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_82b6af99"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_9d602df5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 7 && response.equals("s_d3ff6fc9"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_c261cfae");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 8 && response.equals("s_7cac869c"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_875d7686");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 8 && response.equals("s_81c11cc5"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_82355e4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 8 && response.equals("s_82b6af99"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_9d602df5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 8 && response.equals("s_d3ff6fc9"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_c261cfae");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 9 && response.equals("s_79345378"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_3c59e302");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 9 && response.equals("s_7a43e024"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_a91a9b13");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 9 && response.equals("s_872e7a7d"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_2664b871");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_79345378");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7a43e024");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_872e7a7d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9ede25b7");
}
setObjVar(player, "conversation.sample_links.branchId", 1);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false.");
return SCRIPT_CONTINUE;
}
if (branchId == 9 && response.equals("s_9ede25b7"))
{
if (sample_links_condition__defaultCondition(player, self))
{
string_id message = new string_id(c_stringFile, "s_cde8ebfe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (sample_links_condition__defaultCondition(player, self))
{
++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_7cac869c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81c11cc5");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_82b6af99");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d3ff6fc9");
}
setObjVar(player, "conversation.sample_links.branchId", 5);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
removeObjVar(player, "conversation.sample_links.branchId");
npcSpeak(player, message);
npcEndConversation(player);
}
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false.");
return SCRIPT_CONTINUE;
}
chat.chat(self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
removeObjVar(player, "conversation.sample_links.branchId");
return SCRIPT_CONTINUE;
}
}