mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
649 lines
20 KiB
Plaintext
649 lines
20 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// coa3wcoolguy.script
|
|
// Copyright 2004, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// Created with SwgConversationEditor 1.36 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.badge;
|
|
include library.chat;
|
|
include library.factions;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/coa3wcoolguy";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean coa3wcoolguy_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wcoolguy_condition_spokeCoordinatorLast (obj_id player, obj_id npc)
|
|
{
|
|
return (getIntObjVar (player, "coa3.convTracker") == -401);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wcoolguy_condition_finalMissionActive (obj_id player, obj_id npc)
|
|
{
|
|
return (getIntObjVar (player, "coa3.convTracker") == -402);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wcoolguy_condition_hasWonStory (obj_id player, obj_id npc)
|
|
{
|
|
// If the player has the story badge for Act 3;
|
|
return (badge.hasBadge(player, "event_coa3_rebel"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wcoolguy_condition_isCorrectFaction (obj_id player, obj_id npc)
|
|
{
|
|
//int pvpFaction = pvpGetType(player);
|
|
string pvpFaction = factions.getFaction(player);
|
|
if(pvpFaction != "Rebel")
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void coa3wcoolguy_action_getFinalMission (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar (player, "coa3.convTracker", -402);
|
|
|
|
// Give player final mission.
|
|
dictionary params = new dictionary();
|
|
params.put("player", player);
|
|
params.put("npc", npc);
|
|
params.put("value", 5);
|
|
|
|
messageTo(npc, "messageStartMission", params, 0, false);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void coa3wcoolguy_action_refreshFinalMission (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar (player, "coa3.convTracker", -402);
|
|
|
|
// Refresh mission
|
|
dictionary params = new dictionary();
|
|
params.put("player", player);
|
|
params.put("npc", npc);
|
|
params.put("value", 5);
|
|
|
|
messageTo(npc, "messageStartMission", params, 0, false);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void coa3wcoolguy_action_abortFinalMission (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar (player, "coa3.convTracker", -401);
|
|
|
|
// Abort final mission
|
|
dictionary params = new dictionary();
|
|
params.put("player", player);
|
|
params.put("npc", npc);
|
|
params.put("value", 5);
|
|
|
|
messageTo(player, "handleAbortMission", params, 0, false);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int coa3wcoolguy_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It is so nice to meet you. Your bravery so far has generated quite a bit of conversation in the ranks. Are you ready to do more for the Alliance?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's going on?
|
|
if (response == "s_62241cb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We're trying to find an alternative to Alderaanian Flora for the Dead Eye process and have a number of research stations working on the problem. If we succeed we will be able to continue to make Dead Eye. If we can't, Dead Eye will be useless once the current stores of Alderaanian Flora are exhausted.
|
|
string_id message = new string_id (c_stringFile, "s_9ebad40b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is the enemy doing?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd like to finish what I started.
|
|
boolean hasResponse1 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't have time for this now.
|
|
boolean hasResponse2 = false;
|
|
if (coa3wcoolguy_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_d768eb98");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4c3cd444");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d1ae6871");
|
|
|
|
utils.setScriptVar (player, "conversation.coa3wcoolguy.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd like to finish what I started.
|
|
if (response == "s_14")
|
|
{
|
|
//-- [NOTE]
|
|
if (!coa3wcoolguy_condition_isCorrectFaction (player, npc))
|
|
{
|
|
//-- NPC: For this task you must become one of us. Please speak to one of our recruiters and come back to me. You cannot be on leave, and must at lease be a Combatant.
|
|
string_id message = new string_id (c_stringFile, "s_30");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
coa3wcoolguy_action_getFinalMission (player, npc);
|
|
|
|
//-- NPC: Excellent. We have a number of research stations that are coming under attack from the Empire. I've uploaded a waypoint to your datapad. Head out there and stop the attackers. It will be a hard fight. You might need help.
|
|
string_id message = new string_id (c_stringFile, "s_17");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't have time for this now.
|
|
if (response == "s_19")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I'm sorry to hear that. These stations are constantly coming under attack, so come back if you change your mind.
|
|
string_id message = new string_id (c_stringFile, "s_21");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int coa3wcoolguy_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We're trying to find an alternative to Alderaanian Flora for the Dead Eye process and have a number of research stations working on the problem. If we succeed we will be able to continue to make Dead Eye. If we can't, Dead Eye will be useless once the current stores of Alderaanian Flora are exhausted.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is the enemy doing?
|
|
if (response == "s_d768eb98")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: They have discovered our research stations and have been launching constant attacks against them. They are hoping to hinder our research to the point that Dead Eye will fail.
|
|
string_id message = new string_id (c_stringFile, "s_f3080e5");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd like to finish what I started.
|
|
if (response == "s_4c3cd444")
|
|
{
|
|
//-- [NOTE]
|
|
if (!coa3wcoolguy_condition_isCorrectFaction (player, npc))
|
|
{
|
|
//-- NPC: For this task you must become one of us. Please speak to one of our recruiters and come back to me. You cannot be on leave, and must at lease be a Combatant.
|
|
string_id message = new string_id (c_stringFile, "s_29");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
coa3wcoolguy_action_getFinalMission (player, npc);
|
|
|
|
//-- NPC: Excellent. We have a number of research stations that are coming under attack from the Empire. I've uploaded a waypoint to your datapad. Head out there and stop the attackers. It will be a hard fight. You might need help.
|
|
string_id message = new string_id (c_stringFile, "s_c0e4cb7a");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't have time for this now.
|
|
if (response == "s_d1ae6871")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I'm sorry to hear that. These stations are constantly coming under attack, so come back if you change your mind.
|
|
string_id message = new string_id (c_stringFile, "s_cc92be25");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int coa3wcoolguy_handleBranch11 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Did you complete the mission yet?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Not yet. I'm working on it.
|
|
if (response == "s_83b68081")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Good luck then. Come back when you're done.
|
|
string_id message = new string_id (c_stringFile, "s_cf3aed9b");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I need to get a new assignment, that last one had a bad waypoint.
|
|
if (response == "s_dc616180")
|
|
{
|
|
coa3wcoolguy_action_refreshFinalMission (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Datapad troubles? That happens. I'll upload a new waypoint to your pad. Good luck.
|
|
string_id message = new string_id (c_stringFile, "s_bb33eb73");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I can't complete this mission right now.
|
|
if (response == "s_6428dedb")
|
|
{
|
|
coa3wcoolguy_action_abortFinalMission (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I'm sorry to hear that. These stations are constantly coming under attack, so come back if you change your mind.
|
|
string_id message = new string_id (c_stringFile, "s_31");
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.coa3wcoolguy");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
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;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.coa3wcoolguy");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
//-- This function should move to base_class.java
|
|
boolean npcStartConversation(obj_id player, obj_id npc, string convoName, string_id greetingId, prose_package greetingProse, string_id[] responses)
|
|
{
|
|
Object[] objects = new Object[responses.length];
|
|
System.arraycopy(responses, 0, objects, 0, responses.length);
|
|
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
obj_id npc = self;
|
|
|
|
if (ai_lib.isInCombat (npc) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition_hasWonStory (player, npc))
|
|
{
|
|
//-- NPC: The Rebellion owes you a debt of thanks. If we are able to finish this research, we will be able to replace the Alderaanian Flora with a suitable alternative and bring Dead Eye to our troops. While the Tactical Officers might have more missions to collect flora, we have asked all of you that we can. You have my personal thanks. May the Force be with you.
|
|
string_id message = new string_id (c_stringFile, "s_c500ae34");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition_spokeCoordinatorLast (player, npc))
|
|
{
|
|
//-- NPC: It is so nice to meet you. Your bravery so far has generated quite a bit of conversation in the ranks. Are you ready to do more for the Alliance?
|
|
string_id message = new string_id (c_stringFile, "s_a85b1da");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's going on?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd like to finish what I started.
|
|
boolean hasResponse1 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't have time for this now.
|
|
boolean hasResponse2 = false;
|
|
if (coa3wcoolguy_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_62241cb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_14");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_19");
|
|
|
|
utils.setScriptVar (player, "conversation.coa3wcoolguy.branchId", 2);
|
|
|
|
npcStartConversation (player, npc, "coa3wcoolguy", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition_finalMissionActive (player, npc))
|
|
{
|
|
//-- NPC: Did you complete the mission yet?
|
|
string_id message = new string_id (c_stringFile, "s_a4053724");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Not yet. I'm working on it.
|
|
boolean hasResponse0 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I need to get a new assignment, that last one had a bad waypoint.
|
|
boolean hasResponse1 = false;
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I can't complete this mission right now.
|
|
boolean hasResponse2 = false;
|
|
if (coa3wcoolguy_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_83b68081");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dc616180");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6428dedb");
|
|
|
|
utils.setScriptVar (player, "conversation.coa3wcoolguy.branchId", 11);
|
|
|
|
npcStartConversation (player, npc, "coa3wcoolguy", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wcoolguy_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I'm sorry, but we are very busy right now. If you want to help, you should go find one of our Coordinators.
|
|
string_id message = new string_id (c_stringFile, "s_a3621ded");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "coa3wcoolguy")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
if (branchId == 2 && coa3wcoolguy_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && coa3wcoolguy_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 11 && coa3wcoolguy_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.coa3wcoolguy.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|