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

5022 lines
218 KiB
Java
Executable File

package script.conversation;
import script.library.*;
import script.*;
public class tatooine_imperial_tier4 extends script.base_script
{
public tatooine_imperial_tier4()
{
}
public static String c_stringFile = "conversation/tatooine_imperial_tier4";
public boolean tatooine_imperial_tier4_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean tatooine_imperial_tier4_condition_isWrongFaction(obj_id player, obj_id npc) throws InterruptedException
{
return (!hasSkill(player, "pilot_imperial_navy_novice"));
}
public boolean tatooine_imperial_tier4_condition_hasCompletedTier3(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.hasCompletedTierThree(player);
}
public boolean tatooine_imperial_tier4_condition_isOnMission(obj_id player, obj_id npc) throws InterruptedException
{
return (space_quest.hasQuest(player));
}
public boolean tatooine_imperial_tier4_condition_faliedMissionOne(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasAbortedQuestRecursive(player, "patrol", "tatooine_imperial_tier4_1") || space_quest.hasFailedQuestRecursive(player, "patrol", "tatooine_imperial_tier4_1"))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_failedMissionTwo(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasAbortedQuestRecursive(player, "recovery", "tatooine_imperial_tier4_2") || space_quest.hasFailedQuestRecursive(player, "recovery", "tatooine_imperial_tier4_2"))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_failedMissionThree(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasAbortedQuestRecursive(player, "escort", "tatooine_imperial_tier4_3") || space_quest.hasFailedQuestRecursive(player, "escort", "tatooine_imperial_tier4_3"))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_failedMissionFour(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasAbortedQuestRecursive(player, "assassinate", "tatooine_imperial_tier4_4") || space_quest.hasFailedQuestRecursive(player, "assassinate", "tatooine_imperial_tier4_4"))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_failedMasterMission(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasAbortedQuestRecursive(player, "destroy", "tatooine_imperial_master") || space_quest.hasFailedQuestRecursive(player, "destroy", "tatooine_imperial_master"))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_isReadyForTraining(obj_id player, obj_id npc) throws InterruptedException
{
if (tatooine_imperial_tier4_condition_hasCompletedTier4(player, npc))
{
return false;
}
return (space_quest.isPlayerQualifiedForSkill(player, "pilot_imperial_navy_starships_04"));
}
public boolean tatooine_imperial_tier4_condition_hasCompletedTier4(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.hasCompletedTierFour(player);
}
public boolean tatooine_imperial_tier4_condition_hasMasterSkill(obj_id player, obj_id npc) throws InterruptedException
{
return (hasSkill(player, "pilot_imperial_navy_master"));
}
public boolean tatooine_imperial_tier4_condition_isGettingMissionOneReward(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasCompletedQuestRecursive(player, "patrol", "tatooine_imperial_tier4_1"))
{
return false;
}
if (!space_quest.hasReceivedReward(player, "patrol", "tatooine_imperial_tier4_1"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_isGettingMissionTwoReward(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasCompletedQuestRecursive(player, "recovery", "tatooine_imperial_tier4_2"))
{
return false;
}
if (!space_quest.hasReceivedReward(player, "recovery", "tatooine_imperial_tier4_2"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_isGettingMissionThreeReward(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasCompletedQuestRecursive(player, "escort", "tatooine_imperial_tier4_3"))
{
return false;
}
if (!space_quest.hasReceivedReward(player, "escort", "tatooine_imperial_tier4_3"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_isGettingMissionFourReward(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasCompletedQuestRecursive(player, "assassinate", "tatooine_imperial_tier4_4"))
{
return false;
}
if (!space_quest.hasReceivedReward(player, "assassinate", "tatooine_imperial_tier4_4"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_isGettingMasterMissionReward(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasCompletedQuestRecursive(player, "destroy", "tatooine_imperial_master"))
{
return false;
}
if (!space_quest.hasReceivedReward(player, "destroy", "tatooine_imperial_master"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasCompletedMissionOne(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasCompletedQuestRecursive(player, "patrol", "tatooine_imperial_tier4_1"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasCompletedMissionTwo(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasCompletedQuestRecursive(player, "recovery", "tatooine_imperial_tier4_2"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasCompletedMissionThree(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasCompletedQuestRecursive(player, "escort", "tatooine_imperial_tier4_3"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasDroidSkill(obj_id player, obj_id npc) throws InterruptedException
{
if (!hasSkill(player, "pilot_imperial_navy_droid_04"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasStarshipSkill(obj_id player, obj_id npc) throws InterruptedException
{
if (!hasSkill(player, "pilot_imperial_navy_starships_04"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasProceduresSkill(obj_id player, obj_id npc) throws InterruptedException
{
if (!hasSkill(player, "pilot_imperial_navy_procedures_04"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_hasWeaponSkill(obj_id player, obj_id npc) throws InterruptedException
{
if (!hasSkill(player, "pilot_imperial_navy_weapons_04"))
{
return true;
}
else
{
return false;
}
}
public boolean tatooine_imperial_tier4_condition_isPilot(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.hasAnyPilotSkill(player);
}
public boolean tatooine_imperial_tier4_condition_onMyTrack(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.isSpaceTrack(player, space_flags.IMPERIAL_TATOOINE);
}
public boolean tatooine_imperial_tier4_condition_canFlyNonTrackDuty(obj_id player, obj_id npc) throws InterruptedException
{
if (space_flags.hasCompletedTierThree(player) && !space_quest.hasQuest(player))
{
return true;
}
return false;
}
public boolean tatooine_imperial_tier4_condition_hasMetMe(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.hasSpaceFlag(player, "metTier4");
}
public boolean tatooine_imperial_tier4_condition_hasNegativeFaction(obj_id player, obj_id npc) throws InterruptedException
{
return (factions.getFactionStanding(player, factions.FACTION_IMPERIAL) < 0.0f);
}
public boolean tatooine_imperial_tier4_condition_isReadyForMission(obj_id player, obj_id npc) throws InterruptedException
{
return space_flags.hasSpaceFlag(player, "readyForTier4Mission");
}
public void tatooine_imperial_tier4_action_grantMissionOne(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "patrol", "tatooine_imperial_tier4_1");
if (space_flags.hasSpaceFlag(player, "readyForTier4Mission"))
{
space_flags.removeSpaceFlag(player, "readyForTier4Mission");
}
}
public void tatooine_imperial_tier4_action_grantMissionTwo(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "recovery", "tatooine_imperial_tier4_2");
if (space_flags.hasSpaceFlag(player, "readyForTier4Mission"))
{
space_flags.removeSpaceFlag(player, "readyForTier4Mission");
}
}
public void tatooine_imperial_tier4_action_grantMissionThree(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "escort", "tatooine_imperial_tier4_3");
if (space_flags.hasSpaceFlag(player, "readyForTier4Mission"))
{
space_flags.removeSpaceFlag(player, "readyForTier4Mission");
}
}
public void tatooine_imperial_tier4_action_grantMissionFour(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "assassinate", "tatooine_imperial_tier4_4");
if (space_flags.hasSpaceFlag(player, "readyForTier4Mission"))
{
space_flags.removeSpaceFlag(player, "readyForTier4Mission");
}
}
public void tatooine_imperial_tier4_action_grantDutyMissionOne(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "tatooine_imperial_tier4_destroyduty_1");
}
public void tatooine_imperial_tier4_action_grantDutyMissionTwo(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "escort_duty", "tatooine_imperial_tier4_escortduty_1");
}
public void tatooine_imperial_tier4_action_grantDutyMissionThree(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "recovery_duty", "tatooine_imperial_tier4_recoveryduty_1");
}
public void tatooine_imperial_tier4_action_grantDutyMissionFour(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "rescue_duty", "tatooine_imperial_tier4_rescueduty_1");
}
public void tatooine_imperial_tier4_action_rewardForMissionOne(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasReceivedReward(player, "patrol", "tatooine_imperial_tier4_1"))
{
space_quest.giveReward(player, "patrol", "tatooine_imperial_tier4_1", 10000, "object/tangible/ship/components/weapon/wpn_mission_reward_imperial_sds_boltdriver.iff");
factions.addFactionStanding(player, factions.FACTION_IMPERIAL, 150.0f);
}
}
public void tatooine_imperial_tier4_action_rewardForMissionTwo(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasReceivedReward(player, "recovery", "tatooine_imperial_tier4_2"))
{
space_quest.giveReward(player, "recovery", "tatooine_imperial_tier4_2", 10000, "object/tangible/ship/components/shield_generator/shd_mission_reward_imperial_cygnus_holoscreen.iff");
factions.addFactionStanding(player, factions.FACTION_IMPERIAL, 150.0f);
}
}
public void tatooine_imperial_tier4_action_rewardForMissionThree(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasReceivedReward(player, "escort", "tatooine_imperial_tier4_3"))
{
space_quest.giveReward(player, "escort", "tatooine_imperial_tier4_3", 10000, "object/tangible/ship/components/armor/arm_mission_reward_imperial_rss_special_durasteel.iff");
factions.addFactionStanding(player, factions.FACTION_IMPERIAL, 150.0f);
}
}
public void tatooine_imperial_tier4_action_rewardForMissionFour(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_quest.hasReceivedReward(player, "assassinate", "tatooine_imperial_tier4_4"))
{
space_quest.giveReward(player, "assassinate", "tatooine_imperial_tier4_4", 10000, "object/tangible/ship/components/reactor/rct_mission_reward_imperial_rss_advanced_military.iff");
factions.addFactionStanding(player, factions.FACTION_IMPERIAL, 150.0f);
}
}
public void tatooine_imperial_tier4_action_grantDroidSkill(obj_id player, obj_id npc) throws InterruptedException
{
skill.purchaseSkill(player, "pilot_imperial_navy_droid_04");
}
public void tatooine_imperial_tier4_action_grantProcedureSkill(obj_id player, obj_id npc) throws InterruptedException
{
skill.purchaseSkill(player, "pilot_imperial_navy_procedures_04");
}
public void tatooine_imperial_tier4_action_grantWeaponSkill(obj_id player, obj_id npc) throws InterruptedException
{
skill.purchaseSkill(player, "pilot_imperial_navy_weapons_04");
}
public void tatooine_imperial_tier4_action_grantStarshipSkill(obj_id player, obj_id npc) throws InterruptedException
{
skill.purchaseSkill(player, "pilot_imperial_navy_starships_04");
}
public void tatooine_imperial_tier4_action_setMetMe(obj_id player, obj_id npc) throws InterruptedException
{
space_flags.setSpaceFlag(player, "metTier4", true);
}
public void tatooine_imperial_tier4_action_setReadyForMission(obj_id player, obj_id npc) throws InterruptedException
{
space_flags.setSpaceFlag(player, "readyForTier4Mission", true);
}
public int tatooine_imperial_tier4_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_4854758d"))
{
if (tatooine_imperial_tier4_condition_canFlyNonTrackDuty(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7247f243");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_8a4f7617");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 4);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_e542a06b");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch4(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8a4f7617"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3e6a4237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_61657d0f");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 93);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_7090182"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shake_head_disgust");
string_id message = new string_id(c_stringFile, "s_c8003afd");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_8f4d001d"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_898e32ed");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_abddb145"))
{
doAnimationAction(player, "slump_head");
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_9da5d80d");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_77e48d5b"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_b3c5ff5e");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_49237f95");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 14);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_b3d150e3"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "rub_chin_thoughtful");
string_id message = new string_id(c_stringFile, "s_eb570c2b");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_60db9426");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 17);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch14(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_49237f95"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "explain");
string_id message = new string_id(c_stringFile, "s_83cb9cbb");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_87d4bfc2");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 15);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch15(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_87d4bfc2"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a9fb7454");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch17(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_60db9426"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "clap_rousing");
string_id message = new string_id(c_stringFile, "s_661f1464");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_c1ce722e"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7a3b60ae");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_6ebb13d3");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 20);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_e26ff616"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_ee7cbdbe");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch20(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_6ebb13d3"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_8bcb23a1");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch23(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_ef420789"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_ee15b61");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_4c695dbd"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_175d585");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch26(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_b9b27823"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_b1d99272");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_71197541"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_cae57de6");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch29(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_c90d9b02"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f5ef44e1");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_a46cdee9"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_d7be8f57");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch32(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_134dd45"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1e4c7d44");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_56"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a5182b84");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch35(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_b474959c"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1e20c3ab");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_5085bdab"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_2c46518");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_52917b0d"))
{
if (tatooine_imperial_tier4_condition_hasCompletedMissionThree(player, npc))
{
string_id message = new string_id(c_stringFile, "s_fee3d28f");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_227");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_243");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionTwo(player, npc))
{
string_id message = new string_id(c_stringFile, "s_66bd8046");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_261");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_285");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionOne(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4aef73fb");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_295");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_319");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 63);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f10afb8");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_337");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_349");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 74);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch39(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_227"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_229");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_231");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 46);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_243"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_245");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_247");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch40(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_261"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_263");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_265");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_285"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_287");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_289");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 61);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_295"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_297");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_299");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 64);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_319"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_321");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_323");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 70);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch42(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_337"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_339");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_341");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 75);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_349"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "point_to_self");
string_id message = new string_id(c_stringFile, "s_351");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_353");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 78);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch43(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_212"))
{
if (tatooine_imperial_tier4_condition_hasStarshipSkill(player, npc))
{
string_id message = new string_id(c_stringFile, "s_213");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_217");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 44);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasWeaponSkill(player, npc))
{
string_id message = new string_id(c_stringFile, "s_214");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_219");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 84);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasProceduresSkill(player, npc))
{
string_id message = new string_id(c_stringFile, "s_215");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_221");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 85);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_216");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_223");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 86);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch44(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_217"))
{
tatooine_imperial_tier4_action_grantStarshipSkill(player, npc);
if (tatooine_imperial_tier4_condition_hasCompletedMissionThree(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_225");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_227");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_243");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionTwo(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_259");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_261");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_285");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionOne(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_293");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_295");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_319");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 63);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_335");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_337");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_349");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 74);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch45(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_227"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_229");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_231");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 46);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_243"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_245");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_247");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch46(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_231"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "wave_finger_warning");
string_id message = new string_id(c_stringFile, "s_233");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_235");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 47);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch47(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_235"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "nod_head_once");
string_id message = new string_id(c_stringFile, "s_237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_239");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 48);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_239"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "pound_fist_palm");
tatooine_imperial_tier4_action_grantMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_241");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_247"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "pound_fist_palm");
string_id message = new string_id(c_stringFile, "s_249");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_251");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 51);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch51(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_251"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_253");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_255");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 52);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch52(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_255"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_257");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch54(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_261"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_263");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_265");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 55);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_285"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_287");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_289");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 61);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch55(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_265"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "whisper");
string_id message = new string_id(c_stringFile, "s_267");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_269");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 56);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch56(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_269"))
{
doAnimationAction(player, "nervous");
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_271");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_273");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 57);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch57(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_273"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_275");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_277");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 58);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch58(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_277"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shake_head_no");
string_id message = new string_id(c_stringFile, "s_279");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_281");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 59);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch59(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_281"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "dismiss");
tatooine_imperial_tier4_action_grantMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_283");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch61(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_289"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "wave_on_dismissing");
tatooine_imperial_tier4_action_grantMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_291");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch63(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_295"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_297");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_299");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 64);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_319"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_321");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_323");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 70);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch64(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_299"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_301");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_303");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 65);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch65(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_303"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_305");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_307");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 66);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch66(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_307"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_309");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_311");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 67);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch67(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_311"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_313");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_315");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 68);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch68(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_315"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_317");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch70(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_323"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "nod_head_once");
string_id message = new string_id(c_stringFile, "s_325");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_327");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 71);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch71(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_327"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_329");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_331");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 72);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch72(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_331"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_333");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch74(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_337"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_339");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_341");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 75);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_349"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "point_to_self");
string_id message = new string_id(c_stringFile, "s_351");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_353");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 78);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch75(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_341"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_343");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_345");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 76);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch76(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_345"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "salute1");
tatooine_imperial_tier4_action_grantMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_347");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch78(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_353"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "wave_on_dismissing");
string_id message = new string_id(c_stringFile, "s_355");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_357");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 79);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch79(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_357"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_359");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_361");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 80);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch80(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_361"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "shake_head_no");
string_id message = new string_id(c_stringFile, "s_363");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_365");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 81);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch81(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_365"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_367");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_369");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 82);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch82(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_369"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
doAnimationAction(npc, "salute1");
doAnimationAction(player, "salute1");
tatooine_imperial_tier4_action_grantMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_371");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch84(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_219"))
{
tatooine_imperial_tier4_action_grantWeaponSkill(player, npc);
if (tatooine_imperial_tier4_condition_hasCompletedMissionThree(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_225");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_227");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_243");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionTwo(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_259");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_261");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_285");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionOne(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_293");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_295");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_319");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 63);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_335");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_337");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_349");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 74);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch85(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_221"))
{
tatooine_imperial_tier4_action_grantProcedureSkill(player, npc);
if (tatooine_imperial_tier4_condition_hasCompletedMissionThree(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_225");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_227");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_243");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionTwo(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_259");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_261");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_285");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionOne(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_293");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_295");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_319");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 63);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_335");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_337");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_349");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 74);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch86(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_223"))
{
tatooine_imperial_tier4_action_grantDroidSkill(player, npc);
if (tatooine_imperial_tier4_condition_hasCompletedMissionThree(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_225");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_227");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_243");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 45);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionTwo(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_259");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_261");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_285");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasCompletedMissionOne(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_293");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_295");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_319");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 63);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_setReadyForMission(player, npc);
string_id message = new string_id(c_stringFile, "s_335");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_337");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_349");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 74);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch87(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_178"))
{
tatooine_imperial_tier4_action_setMetMe(player, npc);
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3e6a4237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_61657d0f");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 93);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch88(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_cec1f447"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_f6f97563");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_7b2d0234"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_f4d0ec53");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d115dd42"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_31428bf1");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_5208f382"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_86c72612");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_49805f81"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3e6a4237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_61657d0f");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 93);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch93(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_61657d0f"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_77788129");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_eef2363b");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 94);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch94(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_eef2363b"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a0bfbb");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_7b7590d4");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 95);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch95(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_7b7590d4"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_2d7a9ef4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_cec1f447");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7b2d0234");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d115dd42");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5208f382");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49805f81");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 88);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch96(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_cec1f447"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_f6f97563");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_7b2d0234"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_f4d0ec53");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d115dd42"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_31428bf1");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_5208f382"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_86c72612");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_49805f81"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3e6a4237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_61657d0f");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 93);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch97(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_333f441a"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_45c5c358");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_df3eeb29");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 98);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_7177c3f2"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_dc219a69");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_bf2260fb");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_613f70ae");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 102);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch98(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_df3eeb29"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a4f1dc7d");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_b8173a60");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_adcc0a23");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 99);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch99(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_b8173a60"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_b78b6139");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_adcc0a23"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_d669284c");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch102(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_bf2260fb"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_e015cb4");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_613f70ae"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a5827814");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int tatooine_imperial_tier4_handleBranch105(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_cec1f447"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_f6f97563");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_7b2d0234"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_f4d0ec53");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d115dd42"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_31428bf1");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcEndConversationWithMessage(player, pp);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_5208f382"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
tatooine_imperial_tier4_action_grantDutyMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_86c72612");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_49805f81"))
{
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3e6a4237");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_61657d0f");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 93);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
if ((!isMob(self)) || (isPlayer(self)))
{
detachScript(self, "conversation.tatooine_imperial_tier4");
}
setCondition(self, CONDITION_CONVERSABLE);
setCondition(self, CONDITION_SPACE_INTERESTING);
setInvulnerable(self, true);
factions.setFaction(self, factions.FACTION_IMPERIAL);
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
setName(self, "Admiral Kilnstrider");
setCondition(self, CONDITION_SPACE_INTERESTING);
setInvulnerable(self, true);
factions.setFaction(self, factions.FACTION_IMPERIAL);
return SCRIPT_CONTINUE;
}
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info menuInfo) throws InterruptedException
{
int menu = menuInfo.addRootMenu(menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById(menu);
menuInfoData.setServerNotify(false);
faceTo(self, player);
return SCRIPT_CONTINUE;
}
public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException
{
clearCondition(self, CONDITION_CONVERSABLE);
detachScript(self, "conversation.tatooine_imperial_tier4");
return SCRIPT_CONTINUE;
}
public boolean npcStartConversation(obj_id player, obj_id npc, String convoName, string_id greetingId, prose_package greetingProse, string_id[] responses) throws InterruptedException
{
Object[] objects = new Object[responses.length];
System.arraycopy(responses, 0, objects, 0, responses.length);
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
}
public int OnStartNpcConversation(obj_id self, obj_id player) throws InterruptedException
{
obj_id npc = self;
if (ai_lib.isInCombat(npc) || ai_lib.isInCombat(player))
{
return SCRIPT_OVERRIDE;
}
if (!tatooine_imperial_tier4_condition_isPilot(player, npc))
{
string_id message = new string_id(c_stringFile, "s_d318f289");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isWrongFaction(player, npc))
{
string_id message = new string_id(c_stringFile, "s_e16137e8");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (!tatooine_imperial_tier4_condition_onMyTrack(player, npc))
{
string_id message = new string_id(c_stringFile, "s_50605b35");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_4854758d");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 3);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_hasNegativeFaction(player, npc))
{
doAnimationAction(npc, "point_accusingly");
string_id message = new string_id(c_stringFile, "s_f2643fdd");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_7090182");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 6);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (!tatooine_imperial_tier4_condition_hasCompletedTier3(player, npc))
{
doAnimationAction(npc, "dismiss");
string_id message = new string_id(c_stringFile, "s_d3b2272c");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isOnMission(player, npc))
{
doAnimationAction(npc, "point_accusingly");
string_id message = new string_id(c_stringFile, "s_2a35d2fe");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_faliedMissionOne(player, npc))
{
tatooine_imperial_tier4_action_grantMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_71e775f5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_8f4d001d");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_abddb145");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 10);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_failedMissionTwo(player, npc))
{
doAnimationAction(npc, "wave_finger_warning");
tatooine_imperial_tier4_action_grantMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_2eb3aa2");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_77e48d5b");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_b3d150e3");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 13);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_failedMissionThree(player, npc))
{
tatooine_imperial_tier4_action_grantMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_e0e28bdb");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_c1ce722e");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e26ff616");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 19);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_failedMissionFour(player, npc))
{
tatooine_imperial_tier4_action_grantMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_3e3689e0");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_ef420789");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4c695dbd");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 23);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isGettingMissionOneReward(player, npc))
{
tatooine_imperial_tier4_action_rewardForMissionOne(player, npc);
string_id message = new string_id(c_stringFile, "s_3ec8b347");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_b9b27823");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_71197541");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 26);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isGettingMissionTwoReward(player, npc))
{
tatooine_imperial_tier4_action_rewardForMissionTwo(player, npc);
string_id message = new string_id(c_stringFile, "s_a4dd5d0d");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_c90d9b02");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_a46cdee9");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 29);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isGettingMissionThreeReward(player, npc))
{
tatooine_imperial_tier4_action_rewardForMissionThree(player, npc);
string_id message = new string_id(c_stringFile, "s_9ff091bd");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_134dd45");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_56");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 32);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isGettingMissionFourReward(player, npc))
{
tatooine_imperial_tier4_action_rewardForMissionFour(player, npc);
string_id message = new string_id(c_stringFile, "s_5066022c");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_b474959c");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5085bdab");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 35);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isReadyForMission(player, npc))
{
string_id message = new string_id(c_stringFile, "s_53773f7e");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_52917b0d");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 38);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
npcStartConversation(player, npc, "tatooine_imperial_tier4", null, pp, responses);
}
else
{
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
chat.chat(npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition_isReadyForTraining(player, npc))
{
doAnimationAction(npc, "beckon");
string_id message = new string_id(c_stringFile, "s_d1e73984");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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.tatooine_imperial_tier4.branchId", 43);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!tatooine_imperial_tier4_condition_hasMetMe(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7f465235");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_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_178");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 87);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!tatooine_imperial_tier4_condition_hasCompletedTier4(player, npc))
{
string_id message = new string_id(c_stringFile, "s_67f91789");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_cec1f447");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7b2d0234");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d115dd42");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5208f382");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49805f81");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 88);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (!tatooine_imperial_tier4_condition_hasMasterSkill(player, npc))
{
string_id message = new string_id(c_stringFile, "s_146bc0b9");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_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_333f441a");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7177c3f2");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 97);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f5e3efbe");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (tatooine_imperial_tier4_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_cec1f447");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_7b2d0234");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d115dd42");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_5208f382");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_49805f81");
}
utils.setScriptVar(player, "conversation.tatooine_imperial_tier4.branchId", 88);
npcStartConversation(player, npc, "tatooine_imperial_tier4", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: All conditions for OnStartNpcConversation were false.");
return SCRIPT_CONTINUE;
}
public int OnNpcConversationResponse(obj_id self, String conversationId, obj_id player, string_id response) throws InterruptedException
{
if (!conversationId.equals("tatooine_imperial_tier4"))
{
return SCRIPT_CONTINUE;
}
obj_id npc = self;
int branchId = utils.getIntScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
if (branchId == 3 && tatooine_imperial_tier4_handleBranch3(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 4 && tatooine_imperial_tier4_handleBranch4(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 6 && tatooine_imperial_tier4_handleBranch6(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 10 && tatooine_imperial_tier4_handleBranch10(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 13 && tatooine_imperial_tier4_handleBranch13(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 14 && tatooine_imperial_tier4_handleBranch14(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 15 && tatooine_imperial_tier4_handleBranch15(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 17 && tatooine_imperial_tier4_handleBranch17(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 19 && tatooine_imperial_tier4_handleBranch19(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 20 && tatooine_imperial_tier4_handleBranch20(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 23 && tatooine_imperial_tier4_handleBranch23(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 26 && tatooine_imperial_tier4_handleBranch26(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 29 && tatooine_imperial_tier4_handleBranch29(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 32 && tatooine_imperial_tier4_handleBranch32(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 35 && tatooine_imperial_tier4_handleBranch35(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 38 && tatooine_imperial_tier4_handleBranch38(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 39 && tatooine_imperial_tier4_handleBranch39(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 40 && tatooine_imperial_tier4_handleBranch40(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 41 && tatooine_imperial_tier4_handleBranch41(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 42 && tatooine_imperial_tier4_handleBranch42(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 43 && tatooine_imperial_tier4_handleBranch43(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 44 && tatooine_imperial_tier4_handleBranch44(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 45 && tatooine_imperial_tier4_handleBranch45(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 46 && tatooine_imperial_tier4_handleBranch46(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 47 && tatooine_imperial_tier4_handleBranch47(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 48 && tatooine_imperial_tier4_handleBranch48(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 50 && tatooine_imperial_tier4_handleBranch50(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 51 && tatooine_imperial_tier4_handleBranch51(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 52 && tatooine_imperial_tier4_handleBranch52(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 54 && tatooine_imperial_tier4_handleBranch54(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 55 && tatooine_imperial_tier4_handleBranch55(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 56 && tatooine_imperial_tier4_handleBranch56(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 57 && tatooine_imperial_tier4_handleBranch57(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 58 && tatooine_imperial_tier4_handleBranch58(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 59 && tatooine_imperial_tier4_handleBranch59(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 61 && tatooine_imperial_tier4_handleBranch61(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 63 && tatooine_imperial_tier4_handleBranch63(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 64 && tatooine_imperial_tier4_handleBranch64(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 65 && tatooine_imperial_tier4_handleBranch65(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 66 && tatooine_imperial_tier4_handleBranch66(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 67 && tatooine_imperial_tier4_handleBranch67(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 68 && tatooine_imperial_tier4_handleBranch68(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 70 && tatooine_imperial_tier4_handleBranch70(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 71 && tatooine_imperial_tier4_handleBranch71(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 72 && tatooine_imperial_tier4_handleBranch72(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 74 && tatooine_imperial_tier4_handleBranch74(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 75 && tatooine_imperial_tier4_handleBranch75(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 76 && tatooine_imperial_tier4_handleBranch76(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 78 && tatooine_imperial_tier4_handleBranch78(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 79 && tatooine_imperial_tier4_handleBranch79(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 80 && tatooine_imperial_tier4_handleBranch80(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 81 && tatooine_imperial_tier4_handleBranch81(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 82 && tatooine_imperial_tier4_handleBranch82(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 84 && tatooine_imperial_tier4_handleBranch84(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 85 && tatooine_imperial_tier4_handleBranch85(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 86 && tatooine_imperial_tier4_handleBranch86(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 87 && tatooine_imperial_tier4_handleBranch87(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 88 && tatooine_imperial_tier4_handleBranch88(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 93 && tatooine_imperial_tier4_handleBranch93(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 94 && tatooine_imperial_tier4_handleBranch94(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 95 && tatooine_imperial_tier4_handleBranch95(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 96 && tatooine_imperial_tier4_handleBranch96(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 97 && tatooine_imperial_tier4_handleBranch97(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 98 && tatooine_imperial_tier4_handleBranch98(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 99 && tatooine_imperial_tier4_handleBranch99(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 102 && tatooine_imperial_tier4_handleBranch102(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 105 && tatooine_imperial_tier4_handleBranch105(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar(player, "conversation.tatooine_imperial_tier4.branchId");
return SCRIPT_CONTINUE;
}
}