mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-08-01 02:16:04 -04:00
6497 lines
174 KiB
Plaintext
6497 lines
174 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// mun_quest_marauder.script
|
|
//
|
|
//
|
|
//
|
|
// Created with SwgConversationEditor 1.37 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.conversation;
|
|
include library.groundquests;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/mun_quest_marauder";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean mun_quest_marauder_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest1 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ1 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_1", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ1 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest2 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ2 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_2", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ2 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest3 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_3");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ3 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_3", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ3 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_3");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest4 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_4");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ4 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_4", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ4 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_4");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest5 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_5");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ5 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_5", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ5 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_5");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest6 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_6");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ6 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_6", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ6 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_6");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest7 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_7");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ7 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_7", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ7 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_7");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest8 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_8");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ8 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_8", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ8 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_8");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onQuest9 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "mun_marauder_9");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_onLastTaskQ9 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "mun_marauder_9", "final_task");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_finishedQ9 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.hasCompletedQuest(player, "mun_marauder_9");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isMunCrafterLvl86 (obj_id player, obj_id npc)
|
|
{
|
|
return hasSkill(player, "class_munitions_phase4_05");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasHighQualityQ1 (obj_id player, obj_id npc)
|
|
{
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ1 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_boots.iff", true, false);
|
|
obj_id[] boneBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_boots.iff", true, false);
|
|
obj_id[] mabariBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_boots.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBoots.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeBoots[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBoots.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneBoots[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariBoots.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(mabariBoots[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ1 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_boots.iff", true, false);
|
|
obj_id[] boneBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_boots.iff", true, false);
|
|
obj_id[] mabariBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_boots.iff", true, false);
|
|
|
|
|
|
if(compositeBoots == null || compositeBoots.length < 3)
|
|
return false;
|
|
|
|
if(boneBoots == null || boneBoots.length < 3)
|
|
return false;
|
|
|
|
if(mabariBoots == null || mabariBoots.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ2 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_l.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_l.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_l.iff", true, false);
|
|
|
|
if(compositeBracers == null || compositeBracers.length < 3)
|
|
return false;
|
|
|
|
if(boneBracers == null || boneBracers.length < 3)
|
|
return false;
|
|
|
|
if(paddedBracers == null || paddedBracers.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ2 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_l.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_l.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_l.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(paddedBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ3 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_r.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_r.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_r.iff", true, false);
|
|
|
|
if(compositeBracers == null || compositeBracers.length < 3)
|
|
return false;
|
|
|
|
if(boneBracers == null || boneBracers.length < 3)
|
|
return false;
|
|
|
|
if(paddedBracers == null || paddedBracers.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ3 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_r.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_r.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_r.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBracers.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(paddedBracers[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ4 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_r.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_r.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_r.iff", true, false);
|
|
|
|
if(compositeBiceps == null || compositeBiceps.length < 3)
|
|
return false;
|
|
|
|
if(boneBiceps == null || boneBiceps.length < 3)
|
|
return false;
|
|
|
|
if(paddedBiceps == null || paddedBiceps.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ4 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_r.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_r.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_r.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(paddedBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ5 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_l.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_l.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_l.iff", true, false);
|
|
|
|
if(compositeBiceps == null || compositeBiceps.length < 3)
|
|
return false;
|
|
|
|
if(boneBiceps == null || boneBiceps.length < 3)
|
|
return false;
|
|
|
|
if(paddedBiceps == null || paddedBiceps.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ5 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_l.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_l.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_l.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBiceps.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(paddedBiceps[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ6 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_gloves.iff", true, false);
|
|
obj_id[] boneGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_gloves.iff", true, false);
|
|
obj_id[] mabariGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_gloves.iff", true, false);
|
|
|
|
if(compositeGloves == null || compositeGloves.length < 3)
|
|
return false;
|
|
|
|
if(boneGloves == null || boneGloves.length < 3)
|
|
return false;
|
|
|
|
if(mabariGloves == null || mabariGloves.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ6 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_gloves.iff", true, false);
|
|
obj_id[] boneGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_gloves.iff", true, false);
|
|
obj_id[] mabariGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_gloves.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeGloves.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeGloves[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneGloves.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneGloves[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariGloves.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(mabariGloves[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ7 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_helmet.iff", true, false);
|
|
obj_id[] boneHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_helmet.iff", true, false);
|
|
obj_id[] mabariHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_helmet.iff", true, false);
|
|
|
|
if(compositeHelmets == null || compositeHelmets.length < 3)
|
|
return false;
|
|
|
|
if(boneHelmets == null || boneHelmets.length < 3)
|
|
return false;
|
|
|
|
if(mabariHelmets == null || mabariHelmets.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ7 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_helmet.iff", true, false);
|
|
obj_id[] boneHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_helmet.iff", true, false);
|
|
obj_id[] mabariHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_helmet.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeHelmets.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeHelmets[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneHelmets.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneHelmets[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariHelmets.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(mabariHelmets[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ8 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_leggings.iff", true, false);
|
|
obj_id[] boneLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_leggings.iff", true, false);
|
|
obj_id[] mabariLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_pants.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeLeggings.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeLeggings[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneLeggings.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneLeggings[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariLeggings.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(mabariLeggings[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ8 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_leggings.iff", true, false);
|
|
obj_id[] boneLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_leggings.iff", true, false);
|
|
obj_id[] mabariLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_pants.iff", true, false);
|
|
|
|
if(compositeLeggings == null || compositeLeggings.length < 3)
|
|
return false;
|
|
|
|
if(boneLeggings == null || boneLeggings.length < 3)
|
|
return false;
|
|
|
|
if(mabariLeggings == null || mabariLeggings.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_hasAllItemsQ9 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_chest_plate.iff", true, false);
|
|
obj_id[] boneChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_chest_plate.iff", true, false);
|
|
obj_id[] mabariChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_chest_plate.iff", true, false);
|
|
|
|
if(compositeChests == null || compositeChests.length < 3)
|
|
return false;
|
|
|
|
if(boneChests == null || boneChests.length < 3)
|
|
return false;
|
|
|
|
if(mabariChests == null || mabariChests.length < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean mun_quest_marauder_condition_isCraftedByPlayerQ9 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_chest_plate.iff", true, false);
|
|
obj_id[] boneChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_chest_plate.iff", true, false);
|
|
obj_id[] mabariChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_chest_plate.iff", true, false);
|
|
|
|
//check to see if player is the crafter of each piece
|
|
int count = 0;
|
|
for(int i = 0; i < compositeChests.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(compositeChests[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneChests.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(boneChests[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariChests.length; ++i)
|
|
{
|
|
obj_id crafter = getCrafter(mabariChests[i]);
|
|
if(crafter == player)
|
|
++count;
|
|
}
|
|
if(count < 3)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void mun_quest_marauder_action_grantQuest1 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_1");
|
|
groundquests.grantQuest(player, "mun_marauder_1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ1 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_boots.iff", true, false);
|
|
obj_id[] boneBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_boots.iff", true, false);
|
|
obj_id[] mabariBoots = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_boots.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBoots.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeBoots[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeBoots[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBoots.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneBoots[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneBoots[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariBoots.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(mabariBoots[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(mabariBoots[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_1_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest2 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_2");
|
|
groundquests.grantQuest(player, "mun_marauder_2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest3 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_3");
|
|
groundquests.grantQuest(player, "mun_marauder_3");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ2 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_l.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_l.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_l.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(paddedBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(paddedBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_2_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ3 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bracer_r.iff", true, false);
|
|
obj_id[] boneBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bracer_r.iff", true, false);
|
|
obj_id[] paddedBracers = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bracer_r.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBracers.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(paddedBracers[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(paddedBracers[i]);
|
|
++count;
|
|
}
|
|
}
|
|
groundquests.sendSignal(player, "mun_marauder_3_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest4 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_4");
|
|
groundquests.grantQuest(player, "mun_marauder_4");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ4 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_r.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_r.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_r.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(paddedBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(paddedBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
groundquests.sendSignal(player, "mun_marauder_4_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest5 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_5");
|
|
groundquests.grantQuest(player, "mun_marauder_5");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ5 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_bicep_l.iff", true, false);
|
|
obj_id[] boneBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_l.iff", true, false);
|
|
obj_id[] paddedBiceps = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_l.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < paddedBiceps.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(paddedBiceps[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(paddedBiceps[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_5_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest6 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_6");
|
|
groundquests.grantQuest(player, "mun_marauder_6");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ6 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_gloves.iff", true, false);
|
|
obj_id[] boneGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_gloves.iff", true, false);
|
|
obj_id[] mabariGloves = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_gloves.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeGloves.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeGloves[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeGloves[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneGloves.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneGloves[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneGloves[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariGloves.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(mabariGloves[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(mabariGloves[i]);
|
|
++count;
|
|
}
|
|
}
|
|
groundquests.sendSignal(player, "mun_marauder_6_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest7 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_7");
|
|
groundquests.grantQuest(player, "mun_marauder_7");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ7 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_helmet.iff", true, false);
|
|
obj_id[] boneHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_helmet.iff", true, false);
|
|
obj_id[] mabariHelmets = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_helmet.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeHelmets.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeHelmets[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeHelmets[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneHelmets.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneHelmets[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneHelmets[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariHelmets.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(mabariHelmets[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(mabariHelmets[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_7_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest8 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_8");
|
|
groundquests.grantQuest(player, "mun_marauder_8");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ8 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_leggings.iff", true, false);
|
|
obj_id[] boneLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_leggings.iff", true, false);
|
|
obj_id[] mabariLeggings = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_pants.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeLeggings.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeLeggings[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeLeggings[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneLeggings.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneLeggings[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneLeggings[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariLeggings.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(mabariLeggings[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(mabariLeggings[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_8_signal");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_grantQuest9 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.clearQuest(player, "mun_marauder_9");
|
|
groundquests.grantQuest(player, "mun_marauder_9");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void mun_quest_marauder_action_signalQ9 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id[] compositeChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/composite/armor_composite_chest_plate.iff", true, false);
|
|
obj_id[] boneChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/bone/armor_bone_s01_chest_plate.iff", true, false);
|
|
obj_id[] mabariChests = utils.getAllItemsInContainerByTemplate(player, "object/tangible/wearables/armor/zam/armor_zam_wesell_chest_plate.iff", true, false);
|
|
|
|
int count = 0;
|
|
for(int i = 0; i < compositeChests.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(compositeChests[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(compositeChests[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < boneChests.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(boneChests[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(boneChests[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
count = 0;
|
|
for(int i = 0; i < mabariChests.length; ++i)
|
|
{
|
|
if(count >= 3)
|
|
break;
|
|
|
|
obj_id crafter = getCrafter(mabariChests[i]);
|
|
if(crafter == player)
|
|
{
|
|
destroyObject(mabariChests[i]);
|
|
++count;
|
|
}
|
|
}
|
|
|
|
groundquests.sendSignal(player, "mun_marauder_9_signal");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int mun_quest_marauder_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my chest plates?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_121")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ9 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the chest plates?
|
|
string_id message = new string_id (c_stringFile, "s_238");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ9 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_242");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ9 (player, npc);
|
|
|
|
//-- NPC: Very good. Here are the marauder schematics for chest plates. This concludes our deal. Leave now before I forget we worked together.
|
|
string_id message = new string_id (c_stringFile, "s_122");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the chest plates?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch4 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my chest plates?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot them.
|
|
if (response == "s_117")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Your forgetting is getting old. Go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_118");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what chest plates you wanted.
|
|
if (response == "s_119")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_277");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_278");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_279");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch8 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_278")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest9 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor chest plates and I will teach you to make marauder chest plates.
|
|
string_id message = new string_id (c_stringFile, "s_114");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No you can just tell me.
|
|
if (response == "s_279")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and mabari armor chest plates and I will teach you to make marauder chest plates.
|
|
string_id message = new string_id (c_stringFile, "s_280");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch10 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Back for last schematic?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I need to complete the set.
|
|
if (response == "s_115")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest9 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor chest plates and I will teach you to make marauder chest plates.
|
|
string_id message = new string_id (c_stringFile, "s_114");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch11 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my leggings?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_111")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ8 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the leggings?
|
|
string_id message = new string_id (c_stringFile, "s_235");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ8 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_237");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ8 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder leggings.
|
|
string_id message = new string_id (c_stringFile, "s_112");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_113");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 14);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the leggings?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch14 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder leggings.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_113")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest9 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor chest plates and I will teach you to make marauder chest plates.
|
|
string_id message = new string_id (c_stringFile, "s_114");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch16 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my leggings?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot them.
|
|
if (response == "s_107")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go get them.
|
|
string_id message = new string_id (c_stringFile, "s_109");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what leggings you wanted.
|
|
if (response == "s_108")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_273");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_274");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_275");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_274")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest8 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor leggings and I will teach you to make marauder leggings.
|
|
string_id message = new string_id (c_stringFile, "s_106");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No you can just tell me.
|
|
if (response == "s_275")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and mabari armor leggings and I will teach you to make marauder leggings.
|
|
string_id message = new string_id (c_stringFile, "s_276");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch20 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You back?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes I want to trade more.
|
|
if (response == "s_103")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest8 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor leggings and I will teach you to make marauder leggings.
|
|
string_id message = new string_id (c_stringFile, "s_106");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch21 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my helmets?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_93")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ7 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the gloves?
|
|
string_id message = new string_id (c_stringFile, "s_231");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ7 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_233");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ7 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder helmets.
|
|
string_id message = new string_id (c_stringFile, "s_94");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_105");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 24);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch22 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the gloves?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch23 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch24 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder helmets.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_105")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest8 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor leggings and I will teach you to make marauder leggings.
|
|
string_id message = new string_id (c_stringFile, "s_106");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch26 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my helmets?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot them.
|
|
if (response == "s_89")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go get them.
|
|
string_id message = new string_id (c_stringFile, "s_91");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what helmets you wanted.
|
|
if (response == "s_90")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_308");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_309");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_310");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 28);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_309")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest7 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor helmets and I will teach you to make marauder helmets.
|
|
string_id message = new string_id (c_stringFile, "s_86");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_310")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and mabari armor helmets and I will teach you to make marauder helmets.
|
|
string_id message = new string_id (c_stringFile, "s_311");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch30 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ready for more?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Always.
|
|
if (response == "s_87")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest7 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor helmets and I will teach you to make marauder helmets.
|
|
string_id message = new string_id (c_stringFile, "s_86");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch31 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my gloves?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_83")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ6 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the gloves?
|
|
string_id message = new string_id (c_stringFile, "s_227");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ6 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_229");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ6 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder gloves.
|
|
string_id message = new string_id (c_stringFile, "s_84");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_85");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch32 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the gloves?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch33 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch34 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder gloves.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_85")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest7 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor helmets and I will teach you to make marauder helmets.
|
|
string_id message = new string_id (c_stringFile, "s_86");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch36 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my gloves?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot them.
|
|
if (response == "s_79")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go get them.
|
|
string_id message = new string_id (c_stringFile, "s_81");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what gloves you wanted.
|
|
if (response == "s_80")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_304");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_305");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_306");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 38);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch38 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_305")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest6 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor gloves and I will teach you to make marauder gloves.
|
|
string_id message = new string_id (c_stringFile, "s_128");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_306")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and mabari armor gloves and I will teach you to make marauder gloves.
|
|
string_id message = new string_id (c_stringFile, "s_307");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch40 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Another trade?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes.
|
|
if (response == "s_92")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest6 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor gloves and I will teach you to make marauder gloves.
|
|
string_id message = new string_id (c_stringFile, "s_128");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch41 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my left biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_110")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ5 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the biceps?
|
|
string_id message = new string_id (c_stringFile, "s_223");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ5 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_225");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ5 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder left biceps.
|
|
string_id message = new string_id (c_stringFile, "s_124");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_126");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 44);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch42 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch43 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch44 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder left biceps.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_126")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest6 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and mabari armor gloves and I will teach you to make marauder gloves.
|
|
string_id message = new string_id (c_stringFile, "s_128");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch46 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In the works.
|
|
if (response == "s_132")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Remember to bring them next time.
|
|
string_id message = new string_id (c_stringFile, "s_134");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what biceps you wanted.
|
|
if (response == "s_136")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_300");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_301");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_302");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 48);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch48 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_301")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest5 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left biceps and I will teach you to make marauder left biceps.
|
|
string_id message = new string_id (c_stringFile, "s_156");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_302")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and padded armor left biceps and I will teach you to make marauder left biceps.
|
|
string_id message = new string_id (c_stringFile, "s_303");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch50 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ready to trade me again?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes.
|
|
if (response == "s_144")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest5 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left biceps and I will teach you to make marauder left biceps.
|
|
string_id message = new string_id (c_stringFile, "s_156");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch51 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my right biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_148")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ4 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the biceps?
|
|
string_id message = new string_id (c_stringFile, "s_219");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ4 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_221");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ4 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder right biceps.
|
|
string_id message = new string_id (c_stringFile, "s_152");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_154");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch52 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch53 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch54 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder right biceps.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_154")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest5 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left biceps and I will teach you to make marauder left biceps.
|
|
string_id message = new string_id (c_stringFile, "s_156");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch56 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why aren't you making my biceps?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Working on it.
|
|
if (response == "s_160")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bring them if you want to make the trade.
|
|
string_id message = new string_id (c_stringFile, "s_162");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what biceps you wanted.
|
|
if (response == "s_164")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_296");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_297");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_298");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 58);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch58 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_297")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest4 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right biceps and I will teach you to make marauder right biceps.
|
|
string_id message = new string_id (c_stringFile, "s_184");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_298")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and padded armor right biceps and I will teach you to make marauder right biceps.
|
|
string_id message = new string_id (c_stringFile, "s_299");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch60 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Back for another trade?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Lets do this.
|
|
if (response == "s_172")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest4 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right biceps and I will teach you to make marauder right biceps.
|
|
string_id message = new string_id (c_stringFile, "s_184");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch61 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my right bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_176")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ3 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the bracers?
|
|
string_id message = new string_id (c_stringFile, "s_215");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ3 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_217");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ3 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder right bracers.
|
|
string_id message = new string_id (c_stringFile, "s_180");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_182");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 64);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch62 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch63 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch64 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder right bracers.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_182")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest4 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right biceps and I will teach you to make marauder right biceps.
|
|
string_id message = new string_id (c_stringFile, "s_184");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch66 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are my bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: They are coming.
|
|
if (response == "s_188")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I need them soon.
|
|
string_id message = new string_id (c_stringFile, "s_190");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what bracers you wanted.
|
|
if (response == "s_192")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_292");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_293");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_294");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 68);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch68 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_293")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest3 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right bracers and I will teach you to make marauder right bracers.
|
|
string_id message = new string_id (c_stringFile, "s_214");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_294")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and padded armor right bracers and I will teach you to make marauder right bracers.
|
|
string_id message = new string_id (c_stringFile, "s_295");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch70 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Are you ready for the next trade?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes.
|
|
if (response == "s_200")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest3 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right bracers and I will teach you to make marauder right bracers.
|
|
string_id message = new string_id (c_stringFile, "s_214");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch71 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my left bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_204")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ2 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the bracers?
|
|
string_id message = new string_id (c_stringFile, "s_206");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ2 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_208");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ2 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder left bracers.
|
|
string_id message = new string_id (c_stringFile, "s_210");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_212");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 74);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch72 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch73 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch74 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder left bracers.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_212")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest3 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor right bracers and I will teach you to make marauder right bracers.
|
|
string_id message = new string_id (c_stringFile, "s_214");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch76 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why aren't you making my bracers?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Almost done.
|
|
if (response == "s_222")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well hurry.
|
|
string_id message = new string_id (c_stringFile, "s_226");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what bracers you wanted.
|
|
if (response == "s_230")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_288");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_289");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_290");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 78);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch78 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_289")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest2 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left bracers and I will teach you to make marauder left bracers.
|
|
string_id message = new string_id (c_stringFile, "s_270");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_290")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Make me three composite, bone, and padded armor left bracers and I will teach you to make marauder left bracers.
|
|
string_id message = new string_id (c_stringFile, "s_291");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch80 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You ready to continue trading?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_244")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest2 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left bracers and I will teach you to make marauder left bracers.
|
|
string_id message = new string_id (c_stringFile, "s_270");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch81 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have my boots?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, here they are.
|
|
if (response == "s_248")
|
|
{
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_hasAllItemsQ1 (player, npc))
|
|
{
|
|
//-- NPC: Where are all the boots?
|
|
string_id message = new string_id (c_stringFile, "s_250");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oops, I must have left them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_252");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!mun_quest_marauder_condition_isCraftedByPlayerQ1 (player, npc))
|
|
{
|
|
//-- NPC: What kind of scam are you pulling?
|
|
string_id message = new string_id (c_stringFile, "s_256");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you mean?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_signalQ1 (player, npc);
|
|
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder boots.
|
|
string_id message = new string_id (c_stringFile, "s_262");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any other trades?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_264");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 86);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch82 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Where are all the boots?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oops, I must have left them.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well go and get them.
|
|
string_id message = new string_id (c_stringFile, "s_254");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch84 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What kind of scam are you pulling?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you mean?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These werent crafted by you! Bring me the ones you crafted.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch86 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, nice quality. Here, this is how you make marauder boots.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any other trades?
|
|
if (response == "s_264")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest2 (player, npc);
|
|
|
|
//-- NPC: Make me three composite, bone, and padded armor left bracers and I will teach you to make marauder left bracers.
|
|
string_id message = new string_id (c_stringFile, "s_270");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch88 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why aren't you making my boots?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I thought you said something.
|
|
if (response == "s_282")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I didn't.
|
|
string_id message = new string_id (c_stringFile, "s_284");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I forgot what boots you wanted.
|
|
if (response == "s_286")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
string_id message = new string_id (c_stringFile, "s_312");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, you can just tell me.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_314");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_318");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 90);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch90 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You want me to add it back to your data journal?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes please.
|
|
if (response == "s_314")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest1 (player, npc);
|
|
|
|
//-- NPC: I need you to craft me three composite, bone, and mabari armor boots.
|
|
string_id message = new string_id (c_stringFile, "s_316");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, you can just tell me.
|
|
if (response == "s_318")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I need you to craft me three composite, bone, and mabari armor boots.
|
|
string_id message = new string_id (c_stringFile, "s_320");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch93 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What do you want?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I am just curious why a marauder is out here all alone.
|
|
if (response == "s_324")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Lets just say my way of acquiring technology differs from the rest of my race.
|
|
string_id message = new string_id (c_stringFile, "s_326");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: And how is that?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_328");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 94);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch94 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Lets just say my way of acquiring technology differs from the rest of my race.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: And how is that?
|
|
if (response == "s_328")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I offer to trade for it... You wouldn't happen to want to trade, would you?
|
|
string_id message = new string_id (c_stringFile, "s_330");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you have that I could possibly want?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_332");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 95);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch95 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I offer to trade for it... You wouldn't happen to want to trade, would you?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you have that I could possibly want?
|
|
if (response == "s_332")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: How about I teach you to make our armor, and you teach me to make yours?
|
|
string_id message = new string_id (c_stringFile, "s_334");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I like the sound of that.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_336");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 96);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch96 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: How about I teach you to make our armor, and you teach me to make yours?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I like the sound of that.
|
|
if (response == "s_336")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
mun_quest_marauder_action_grantQuest1 (player, npc);
|
|
|
|
//-- NPC: Good, first I need you to prove to me that you can make quality armor. This schematic isn't for amateurs. I need you to craft me three composite, bone, and mabari armor boots.
|
|
string_id message = new string_id (c_stringFile, "s_338");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Three? Of each?
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_340");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 97);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int mun_quest_marauder_handleBranch97 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good, first I need you to prove to me that you can make quality armor. This schematic isn't for amateurs. I need you to craft me three composite, bone, and mabari armor boots.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Three? Of each?
|
|
if (response == "s_340")
|
|
{
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You will do it if you want to learn.
|
|
string_id message = new string_id (c_stringFile, "s_342");
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isTangible (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.mun_quest_marauder");
|
|
|
|
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.mun_quest_marauder");
|
|
|
|
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 (mun_quest_marauder_condition_finishedQ9 (player, npc))
|
|
{
|
|
//-- NPC: You had better leave now.
|
|
string_id message = new string_id (c_stringFile, "s_18");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ9 (player, npc))
|
|
{
|
|
//-- NPC: You have my chest plates?
|
|
string_id message = new string_id (c_stringFile, "s_98");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_121");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 2);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest9 (player, npc))
|
|
{
|
|
//-- NPC: Where are my chest plates?
|
|
string_id message = new string_id (c_stringFile, "s_97");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I forgot them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what chest plates you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_117");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_119");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 6);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ8 (player, npc))
|
|
{
|
|
//-- NPC: Back for last schematic?
|
|
string_id message = new string_id (c_stringFile, "s_99");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I need to complete the set.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_115");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 10);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ8 (player, npc))
|
|
{
|
|
//-- NPC: You have my leggings?
|
|
string_id message = new string_id (c_stringFile, "s_100");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_111");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 11);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest8 (player, npc))
|
|
{
|
|
//-- NPC: Where are my leggings?
|
|
string_id message = new string_id (c_stringFile, "s_101");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I forgot them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what leggings you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_107");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_108");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 16);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ7 (player, npc))
|
|
{
|
|
//-- NPC: You back?
|
|
string_id message = new string_id (c_stringFile, "s_102");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes I want to trade more.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_103");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 20);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ7 (player, npc))
|
|
{
|
|
//-- NPC: You have my helmets?
|
|
string_id message = new string_id (c_stringFile, "s_42");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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.mun_quest_marauder.branchId", 21);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest7 (player, npc))
|
|
{
|
|
//-- NPC: Where are my helmets?
|
|
string_id message = new string_id (c_stringFile, "s_50");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I forgot them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what helmets you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_89");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_90");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 26);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ6 (player, npc))
|
|
{
|
|
//-- NPC: Ready for more?
|
|
string_id message = new string_id (c_stringFile, "s_59");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Always.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_87");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 30);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ6 (player, npc))
|
|
{
|
|
//-- NPC: You have my gloves?
|
|
string_id message = new string_id (c_stringFile, "s_62");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_83");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 31);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest6 (player, npc))
|
|
{
|
|
//-- NPC: Where are my gloves?
|
|
string_id message = new string_id (c_stringFile, "s_70");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I forgot them.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what gloves you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_79");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_80");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 36);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ5 (player, npc))
|
|
{
|
|
//-- NPC: Another trade?
|
|
string_id message = new string_id (c_stringFile, "s_82");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_92");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 40);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ5 (player, npc))
|
|
{
|
|
//-- NPC: You have my left biceps?
|
|
string_id message = new string_id (c_stringFile, "s_96");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_110");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 41);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest5 (player, npc))
|
|
{
|
|
//-- NPC: Where are my biceps?
|
|
string_id message = new string_id (c_stringFile, "s_130");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In the works.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what biceps you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_132");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_136");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 46);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ4 (player, npc))
|
|
{
|
|
//-- NPC: Ready to trade me again?
|
|
string_id message = new string_id (c_stringFile, "s_142");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_144");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 50);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ4 (player, npc))
|
|
{
|
|
//-- NPC: You have my right biceps?
|
|
string_id message = new string_id (c_stringFile, "s_146");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_148");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 51);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest4 (player, npc))
|
|
{
|
|
//-- NPC: Why aren't you making my biceps?
|
|
string_id message = new string_id (c_stringFile, "s_158");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Working on it.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what biceps you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_160");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_164");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 56);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ3 (player, npc))
|
|
{
|
|
//-- NPC: Back for another trade?
|
|
string_id message = new string_id (c_stringFile, "s_170");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Lets do this.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_172");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 60);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ3 (player, npc))
|
|
{
|
|
//-- NPC: You have my right bracers?
|
|
string_id message = new string_id (c_stringFile, "s_174");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_176");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 61);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest3 (player, npc))
|
|
{
|
|
//-- NPC: Where are my bracers?
|
|
string_id message = new string_id (c_stringFile, "s_186");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: They are coming.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what bracers you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_188");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_192");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 66);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ2 (player, npc))
|
|
{
|
|
//-- NPC: Are you ready for the next trade?
|
|
string_id message = new string_id (c_stringFile, "s_198");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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.mun_quest_marauder.branchId", 70);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ2 (player, npc))
|
|
{
|
|
//-- NPC: You have my left bracers?
|
|
string_id message = new string_id (c_stringFile, "s_202");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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.mun_quest_marauder.branchId", 71);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest2 (player, npc))
|
|
{
|
|
//-- NPC: Why aren't you making my bracers?
|
|
string_id message = new string_id (c_stringFile, "s_218");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Almost done.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what bracers you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_222");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_230");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 76);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_finishedQ1 (player, npc))
|
|
{
|
|
//-- NPC: You ready to continue trading?
|
|
string_id message = new string_id (c_stringFile, "s_241");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes please.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_244");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 80);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onLastTaskQ1 (player, npc))
|
|
{
|
|
//-- NPC: You have my boots?
|
|
string_id message = new string_id (c_stringFile, "s_246");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, here they are.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_248");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 81);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_onQuest1 (player, npc))
|
|
{
|
|
//-- NPC: Why aren't you making my boots?
|
|
string_id message = new string_id (c_stringFile, "s_272");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I thought you said something.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I forgot what boots you wanted.
|
|
boolean hasResponse1 = false;
|
|
if (mun_quest_marauder_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_282");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_286");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 88);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition_isMunCrafterLvl86 (player, npc))
|
|
{
|
|
//-- NPC: What do you want?
|
|
string_id message = new string_id (c_stringFile, "s_322");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I am just curious why a marauder is out here all alone.
|
|
boolean hasResponse0 = false;
|
|
if (mun_quest_marauder_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_324");
|
|
|
|
utils.setScriptVar (player, "conversation.mun_quest_marauder.branchId", 93);
|
|
|
|
npcStartConversation (player, npc, "mun_quest_marauder", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (mun_quest_marauder_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I have no use for you, begone.
|
|
string_id message = new string_id (c_stringFile, "s_344");
|
|
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 != "mun_quest_marauder")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
if (branchId == 2 && mun_quest_marauder_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && mun_quest_marauder_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 4 && mun_quest_marauder_handleBranch4 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && mun_quest_marauder_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 8 && mun_quest_marauder_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 10 && mun_quest_marauder_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 11 && mun_quest_marauder_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && mun_quest_marauder_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && mun_quest_marauder_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 14 && mun_quest_marauder_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 16 && mun_quest_marauder_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && mun_quest_marauder_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 20 && mun_quest_marauder_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 21 && mun_quest_marauder_handleBranch21 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 22 && mun_quest_marauder_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 23 && mun_quest_marauder_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 24 && mun_quest_marauder_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 26 && mun_quest_marauder_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && mun_quest_marauder_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 30 && mun_quest_marauder_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 31 && mun_quest_marauder_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 32 && mun_quest_marauder_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 33 && mun_quest_marauder_handleBranch33 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 34 && mun_quest_marauder_handleBranch34 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 36 && mun_quest_marauder_handleBranch36 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 38 && mun_quest_marauder_handleBranch38 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 40 && mun_quest_marauder_handleBranch40 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 41 && mun_quest_marauder_handleBranch41 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 42 && mun_quest_marauder_handleBranch42 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 43 && mun_quest_marauder_handleBranch43 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 44 && mun_quest_marauder_handleBranch44 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 46 && mun_quest_marauder_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 48 && mun_quest_marauder_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 50 && mun_quest_marauder_handleBranch50 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 51 && mun_quest_marauder_handleBranch51 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 52 && mun_quest_marauder_handleBranch52 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 53 && mun_quest_marauder_handleBranch53 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 54 && mun_quest_marauder_handleBranch54 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 56 && mun_quest_marauder_handleBranch56 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 58 && mun_quest_marauder_handleBranch58 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 60 && mun_quest_marauder_handleBranch60 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 61 && mun_quest_marauder_handleBranch61 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 62 && mun_quest_marauder_handleBranch62 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 63 && mun_quest_marauder_handleBranch63 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 64 && mun_quest_marauder_handleBranch64 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 66 && mun_quest_marauder_handleBranch66 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 68 && mun_quest_marauder_handleBranch68 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 70 && mun_quest_marauder_handleBranch70 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 71 && mun_quest_marauder_handleBranch71 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 72 && mun_quest_marauder_handleBranch72 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 73 && mun_quest_marauder_handleBranch73 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 74 && mun_quest_marauder_handleBranch74 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 76 && mun_quest_marauder_handleBranch76 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 78 && mun_quest_marauder_handleBranch78 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 80 && mun_quest_marauder_handleBranch80 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 81 && mun_quest_marauder_handleBranch81 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 82 && mun_quest_marauder_handleBranch82 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 84 && mun_quest_marauder_handleBranch84 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 86 && mun_quest_marauder_handleBranch86 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 88 && mun_quest_marauder_handleBranch88 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 90 && mun_quest_marauder_handleBranch90 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 93 && mun_quest_marauder_handleBranch93 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 94 && mun_quest_marauder_handleBranch94 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 95 && mun_quest_marauder_handleBranch95 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 96 && mun_quest_marauder_handleBranch96 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 97 && mun_quest_marauder_handleBranch97 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.mun_quest_marauder.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|