Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/station_naboo.java
T
TekaohandGitHub 5c2e112349 Java 11.0.2 migration (#32)
* Code compiles - execution NOT tested

* updating gitignore

* Removed intellij settings files

* Removed more intellij files

* Added exclusion for JDK classes.

* Fixed purchasing script for vendors that have listed coin types.

* Updated script to not kick off until the entire preload is complete.

* adds static name entry for Solo movie poster and tcg9 vendor entry

* clean up empty and orphaned object templates

* adds placeholder black market (static) spawns

* corrects entries for the video game table to correctly set it in tcg series 2 and remove series 1 console errors

* Updated gitignore and removed intellij project files

* Fixed appearance reference for thranta payroll and kashyyyk door, added skipLosCheck objvar due to cannit see issue. Requires updated src

* Fixed appearance and template for terminal (#2)

* Fixed appearance and template for terminal (#3)

* Fixed appearance and template for terminal (#4)

* Deleted another faulty/orphaned object template

* Fixed gcw ranks option on frog. Only issue is that it doesn't award the officer commands or badges.

* Fixed some unneeded java 11 changes
2019-04-18 18:31:52 -05:00

2852 lines
120 KiB
Java
Executable File

package script.conversation;
import script.library.*;
import script.*;
public class station_naboo extends script.base_script
{
public station_naboo()
{
}
public static String c_stringFile = "conversation/station_naboo";
public boolean station_naboo_condition__defaultCondition(obj_id player, obj_id npc) throws InterruptedException
{
return true;
}
public boolean station_naboo_condition_canAfford50(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.canAffordShipRepairs(player, npc, 0.50f);
}
public boolean station_naboo_condition_canAfford25(obj_id player, obj_id npc) throws InterruptedException
{
return (space_crafting.canAffordShipRepairs(player, npc, 0.25f) && space_crafting.isDamaged(player));
}
public boolean station_naboo_condition_canAfford75(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.canAffordShipRepairs(player, npc, 0.75f);
}
public boolean station_naboo_condition_canAfford100(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.canAffordShipRepairs(player, npc, 1.0f);
}
public boolean station_naboo_condition_needRepairs(obj_id player, obj_id npc) throws InterruptedException
{
float fltDamage = space_crafting.getDamageTotal(player, getPilotedShip(player));
if (fltDamage > 0)
{
return true;
}
return false;
}
public boolean station_naboo_condition_isTooFar(obj_id player, obj_id npc) throws InterruptedException
{
space_combat.playCombatTauntSound(player);
obj_id containingShip = space_transition.getContainingShip(player);
return (getDistance(npc, containingShip) > space_transition.STATION_COMM_MAX_DISTANCE);
}
public boolean station_naboo_condition_isTier1NabooRebel(obj_id player, obj_id npc) throws InterruptedException
{
return (space_flags.isInTierOne(player) && space_flags.isSpaceTrack(player, space_flags.REBEL_NABOO));
}
public boolean station_naboo_condition_isTier1NabooImperial(obj_id player, obj_id npc) throws InterruptedException
{
return (space_flags.isInTierOne(player) && space_flags.isSpaceTrack(player, space_flags.IMPERIAL_NABOO));
}
public boolean station_naboo_condition_isTier1NabooPrivateer(obj_id player, obj_id npc) throws InterruptedException
{
return (space_flags.isInTierOne(player) && space_flags.isSpaceTrack(player, space_flags.PRIVATEER_NABOO));
}
public boolean station_naboo_condition_canDoImperialAccess(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_flags.hasCompletedTierOne(player))
{
return false;
}
if (space_quest.hasWonQuest(player, "destroy_surpriseattack", "naboo_station_emperors_access_quest_6"))
{
return false;
}
if (space_quest.hasQuest(player))
{
return false;
}
if (space_flags.isSpaceTrack(player, space_flags.IMPERIAL_NABOO))
{
return true;
}
if (space_flags.isSpaceTrack(player, space_flags.PRIVATEER_NABOO))
{
return true;
}
else
{
return false;
}
}
public boolean station_naboo_condition_canLandAtRetreat(obj_id player, obj_id npc) throws InterruptedException
{
if ((space_flags.isSpaceTrack(player, space_flags.PRIVATEER_NABOO) || space_flags.isSpaceTrack(player, space_flags.IMPERIAL_NABOO)) && space_flags.hasCompletedTierOne(player) && space_quest.hasWonQuest(player, "destroy_surpriseattack", "naboo_station_emperors_access_quest_6"))
{
return true;
}
else
{
return false;
}
}
public boolean station_naboo_condition_canGetTier2DestroyDuty(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_flags.hasCompletedTierOne(player))
{
return false;
}
if (space_quest.hasQuest(player))
{
return false;
}
if (hasSkill(player, "pilot_imperial_navy_novice"))
{
return true;
}
if (space_flags.isSpaceTrack(player, space_flags.PRIVATEER_NABOO))
{
return true;
}
else
{
return false;
}
}
public boolean station_naboo_condition_canLandAtHouse(obj_id player, obj_id npc) throws InterruptedException
{
if (hasObjVar(player, "homingBeacon.planet"))
{
String homePlanet = getStringObjVar(player, "homingBeacon.planet");
return (homePlanet.endsWith("naboo"));
}
else
{
return false;
}
}
public boolean station_naboo_condition_canAttackImperial(obj_id player, obj_id npc) throws InterruptedException
{
if (space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player))
{
return true;
}
return false;
}
public boolean station_naboo_condition_canAttackRebel(obj_id player, obj_id npc) throws InterruptedException
{
if (space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player))
{
return true;
}
return false;
}
public boolean station_naboo_condition_canTakeQuest(obj_id player, obj_id npc) throws InterruptedException
{
if (space_quest.hasQuest(player))
{
return false;
}
return true;
}
public boolean station_naboo_condition_canDoRebelTier5Duty(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_skill.isMasterPilot(player))
{
return false;
}
if (space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player))
{
return true;
}
return false;
}
public boolean station_naboo_condition_canDoImperialTier5Duty(obj_id player, obj_id npc) throws InterruptedException
{
if (!space_skill.isMasterPilot(player))
{
return false;
}
if (space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player))
{
return true;
}
return false;
}
public void station_naboo_action_landStation3(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayer(player, npc, "Keren Starport");
}
public void station_naboo_action_fix25(obj_id player, obj_id npc) throws InterruptedException
{
space_crafting.doStationToShipRepairs(player, npc, 0.25f);
}
public void station_naboo_action_fix50(obj_id player, obj_id npc) throws InterruptedException
{
space_crafting.doStationToShipRepairs(player, npc, 0.50f);
}
public void station_naboo_action_fix75(obj_id player, obj_id npc) throws InterruptedException
{
space_crafting.doStationToShipRepairs(player, npc, 0.75f);
}
public void station_naboo_action_fix100(obj_id player, obj_id npc) throws InterruptedException
{
space_crafting.doStationToShipRepairs(player, npc, 1.0f);
}
public void station_naboo_action_landStation1(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayer(player, npc, "Theed Spaceport");
}
public void station_naboo_action_landStation2(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayer(player, npc, "Kaadara Starport");
}
public void station_naboo_action_landStation4(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayer(player, npc, "Moenia");
}
public void station_naboo_action_landEmperor(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayer(player, npc, "The Emperor's Retreat");
}
public void station_naboo_action_giveEmperorAccessQuest(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "space_battle", "naboo_station_emperors_access_quest_1");
}
public void station_naboo_action_grantImperialDestroyDutyTier2(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_station_imperial_destroy_duty_tier2_1");
}
public void station_naboo_action_landHoming(obj_id player, obj_id npc) throws InterruptedException
{
space_content.landPlayerHoming(player, npc);
}
public void station_naboo_action_grantImperialDuty1(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_imperial_tier1");
}
public void station_naboo_action_grantImperialDuty2(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_imperial_tier2");
}
public void station_naboo_action_grantRebelDuty1(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_rebel_tier1");
}
public void station_naboo_action_grantRebelDuty2(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_rebel_tier2");
}
public void station_naboo_action_grantDroidDuty1(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_rogue_droid_tier1");
}
public void station_naboo_action_grantDroidDuty2(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_rogue_droid_tier2");
}
public void station_naboo_action_grantVoidDuty1(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_void_wing_tier1");
}
public void station_naboo_action_grantVoidDuty2(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_void_wing_tier2");
}
public void station_naboo_action_grantImperialDuty5(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_imperial_tier5");
}
public void station_naboo_action_grantRebelDuty5(obj_id player, obj_id npc) throws InterruptedException
{
space_quest.grantQuest(player, "destroy_duty", "naboo_rebel_tier5");
}
public String station_naboo_tokenTO_tokenTO0001(obj_id player, obj_id npc) throws InterruptedException
{
return new String();
}
public int station_naboo_tokenDI_getStationRepairCost25(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.getStationRepairCost(player, npc, 0.25f);
}
public int station_naboo_tokenDI_getStationRepairCost50(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.getStationRepairCost(player, npc, 0.50f);
}
public int station_naboo_tokenDI_getStationRepairCost75(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.getStationRepairCost(player, npc, 0.75f);
}
public int station_naboo_tokenDI_getStationRepairCost100(obj_id player, obj_id npc) throws InterruptedException
{
return space_crafting.getStationRepairCost(player, npc, 1.0f);
}
public int station_naboo_handleBranch2(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_e4c8ff17"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4bb1f207");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition_isTier1NabooPrivateer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_isTier1NabooRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_isTier1NabooImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (!station_naboo_condition_isTier1NabooPrivateer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (!station_naboo_condition_isTier1NabooImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (!station_naboo_condition_isTier1NabooRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (station_naboo_condition_canLandAtRetreat(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
boolean hasResponse8 = false;
if (station_naboo_condition_canLandAtHouse(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse8 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e809e957");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_612d9759");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6bbe88b4");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_c42b6203");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8845528b");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_a716a9c7");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2f99890c");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ce98dec5");
}
if (hasResponse8)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_143");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 6);
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.station_naboo.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_8460cdcf"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4b9c311");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_canAfford50(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_canAfford75(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (station_naboo_condition_canAfford100(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (station_naboo_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_90ee7f5d");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4468336c");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_14897567");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_70876928");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_169df3bb");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 34);
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.station_naboo.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_3bf3c89f"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_c1ae5dd1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_1a18a604");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_3466611d");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 3);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch3(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_1a18a604"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_giveEmperorAccessQuest(player, npc);
string_id message = new string_id(c_stringFile, "s_e331a0a5");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_3466611d"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_158");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition_canAttackImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_canAttackImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_canDoRebelTier5Duty(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (station_naboo_condition_canAttackRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (station_naboo_condition_canAttackRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (station_naboo_condition_canDoImperialTier5Duty(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
boolean hasResponse8 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse8 = true;
}
boolean hasResponse9 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse9 = true;
}
boolean hasResponse10 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse10 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_160");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_163");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_195");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_166");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_169");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_196");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_176");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_180");
}
if (hasResponse8)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_184");
}
if (hasResponse9)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_188");
}
if (hasResponse10)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_192");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 58);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch5(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_cebd107d"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4bb1f207");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition_isTier1NabooPrivateer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_isTier1NabooRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_isTier1NabooImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (!station_naboo_condition_isTier1NabooPrivateer(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (!station_naboo_condition_isTier1NabooImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (!station_naboo_condition_isTier1NabooRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (station_naboo_condition_canLandAtRetreat(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
boolean hasResponse8 = false;
if (station_naboo_condition_canLandAtHouse(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse8 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e809e957");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_612d9759");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_6bbe88b4");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_c42b6203");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8845528b");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_a716a9c7");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_2f99890c");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_ce98dec5");
}
if (hasResponse8)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_143");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 6);
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.station_naboo.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_c358d041"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_4b9c311");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_canAfford50(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_canAfford75(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (station_naboo_condition_canAfford100(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (station_naboo_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_90ee7f5d");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4468336c");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_14897567");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_70876928");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_169df3bb");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 34);
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.station_naboo.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_98f3774d"))
{
if (station_naboo_condition_canGetTier2DestroyDuty(player, npc))
{
string_id message = new string_id(c_stringFile, "s_2ebb5be7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_d6695e83");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_d392ae0b");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 48);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_fadd1b3c");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_157"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_158");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition_canAttackImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_canAttackImperial(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition_canDoRebelTier5Duty(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (station_naboo_condition_canAttackRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
boolean hasResponse4 = false;
if (station_naboo_condition_canAttackRebel(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
boolean hasResponse5 = false;
if (station_naboo_condition_canDoImperialTier5Duty(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
boolean hasResponse6 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
boolean hasResponse7 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
boolean hasResponse8 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse8 = true;
}
boolean hasResponse9 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse9 = true;
}
boolean hasResponse10 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse10 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_160");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_163");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_195");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_166");
}
if (hasResponse4)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_169");
}
if (hasResponse5)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_196");
}
if (hasResponse6)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_176");
}
if (hasResponse7)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_180");
}
if (hasResponse8)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_184");
}
if (hasResponse9)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_188");
}
if (hasResponse10)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_192");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 58);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch6(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_e809e957"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_8e61aac7");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_2dc4697a");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_f148786f");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 7);
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.station_naboo.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_612d9759"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7cffc9b4");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_24");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_27");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 10);
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.station_naboo.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_6bbe88b4"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_14ed557a");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_33");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_36");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 13);
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.station_naboo.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_c42b6203"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_41");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_43");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_47");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 16);
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.station_naboo.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_8845528b"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_52");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_54");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_58");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 19);
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.station_naboo.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_a716a9c7"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_cfbc1584");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_64");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_67");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 22);
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.station_naboo.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_2f99890c"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_72");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_74");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_78");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 25);
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.station_naboo.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_ce98dec5"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f3b40ad6");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_72a90512");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_917c9894");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 28);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_143"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_144");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_145");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_146");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 31);
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.station_naboo.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 station_naboo_handleBranch7(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_2dc4697a"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation1(player, npc);
string_id message = new string_id(c_stringFile, "s_390e6f9a");
utils.removeScriptVar(player, "conversation.station_naboo.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_f148786f"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_be07ed49");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch10(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_24"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation4(player, npc);
string_id message = new string_id(c_stringFile, "s_41f82cf5");
utils.removeScriptVar(player, "conversation.station_naboo.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_27"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_29");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch13(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_33"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation2(player, npc);
string_id message = new string_id(c_stringFile, "s_c9361653");
utils.removeScriptVar(player, "conversation.station_naboo.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_36"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_38");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch16(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_43"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation1(player, npc);
string_id message = new string_id(c_stringFile, "s_45");
utils.removeScriptVar(player, "conversation.station_naboo.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_47"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_49");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch19(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_54"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation2(player, npc);
string_id message = new string_id(c_stringFile, "s_56");
utils.removeScriptVar(player, "conversation.station_naboo.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_58"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_60");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch22(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_64"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation3(player, npc);
string_id message = new string_id(c_stringFile, "s_13eddc62");
utils.removeScriptVar(player, "conversation.station_naboo.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_67"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_69");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch25(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_74"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landStation4(player, npc);
string_id message = new string_id(c_stringFile, "s_76");
utils.removeScriptVar(player, "conversation.station_naboo.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_78"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_80");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch28(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_72a90512"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landEmperor(player, npc);
string_id message = new string_id(c_stringFile, "s_9c3ac80a");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_917c9894"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_c6aaa6b3");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch31(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_145"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_landHoming(player, npc);
string_id message = new string_id(c_stringFile, "s_147");
utils.removeScriptVar(player, "conversation.station_naboo.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_146"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_148");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch34(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_90ee7f5d"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_cb44587c");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_d70dba34");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_4c695dbd");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 35);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost25(player, npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost25(player, npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_4468336c"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7f991ab5");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_104");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_107");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 38);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost50(player, npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost50(player, npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_14897567"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_a0434258");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_113");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_116");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 41);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost75(player, npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost75(player, npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_70876928"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_67f72920");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_122");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_125");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 44);
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost100(player, npc);
npcSpeak(player, pp);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
prose_package pp = new prose_package();
pp.stringId = message;
pp.actor.set(player);
pp.target.set(npc);
pp.digitInteger = station_naboo_tokenDI_getStationRepairCost100(player, npc);
npcEndConversationWithMessage(player, pp);
}
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_169df3bb"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_43af1e95");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch35(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_d70dba34"))
{
station_naboo_action_fix25(player, npc);
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f478139");
utils.removeScriptVar(player, "conversation.station_naboo.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_4c695dbd"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_f918e086");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch38(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_104"))
{
station_naboo_action_fix50(player, npc);
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_3b9f150e");
utils.removeScriptVar(player, "conversation.station_naboo.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_107"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_109");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch41(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_113"))
{
station_naboo_action_fix75(player, npc);
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_ca5ee405");
utils.removeScriptVar(player, "conversation.station_naboo.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_116"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_118");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch44(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_122"))
{
station_naboo_action_fix100(player, npc);
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_5cc333f9");
utils.removeScriptVar(player, "conversation.station_naboo.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_125"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_127");
utils.removeScriptVar(player, "conversation.station_naboo.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 station_naboo_handleBranch48(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_d6695e83"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_28586fd5");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_d392ae0b"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_c295eda3");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_f98be94d");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_9daa68de");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 50);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch50(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_f98be94d"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_2c7bc9c5");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_9daa68de"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_e3843534");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_bece5a73");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_81db3c91");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 52);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch52(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_bece5a73"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_96d14fea");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_81db3c91"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_7e7609c1");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_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_ee26e33e");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_f190c97c");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 54);
npcSpeak(player, message);
npcSetConversationResponses(player, responses);
}
else
{
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch54(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_ee26e33e"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_382e612d");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_f190c97c"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantImperialDestroyDutyTier2(player, npc);
string_id message = new string_id(c_stringFile, "s_45426495");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int station_naboo_handleBranch58(obj_id player, obj_id npc, string_id response) throws InterruptedException
{
if (response.equals("s_160"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantRebelDuty1(player, npc);
string_id message = new string_id(c_stringFile, "s_170");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_163"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantRebelDuty2(player, npc);
string_id message = new string_id(c_stringFile, "s_171");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_195"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantRebelDuty5(player, npc);
string_id message = new string_id(c_stringFile, "s_197");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_166"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantImperialDuty1(player, npc);
string_id message = new string_id(c_stringFile, "s_172");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_169"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantImperialDuty2(player, npc);
string_id message = new string_id(c_stringFile, "s_174");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_196"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantImperialDuty5(player, npc);
string_id message = new string_id(c_stringFile, "s_198");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_176"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantDroidDuty1(player, npc);
string_id message = new string_id(c_stringFile, "s_178");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_180"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantDroidDuty2(player, npc);
string_id message = new string_id(c_stringFile, "s_182");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_184"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantVoidDuty1(player, npc);
string_id message = new string_id(c_stringFile, "s_186");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_188"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
station_naboo_action_grantVoidDuty2(player, npc);
string_id message = new string_id(c_stringFile, "s_190");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
if (response.equals("s_192"))
{
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_194");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
npcEndConversationWithMessage(player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
public int OnInitialize(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_naboo.iff");
return SCRIPT_CONTINUE;
}
public int OnAttach(obj_id self) throws InterruptedException
{
setCondition(self, CONDITION_CONVERSABLE);
setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_naboo.iff");
return SCRIPT_CONTINUE;
}
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info menuInfo) throws InterruptedException
{
int menu = menuInfo.addRootMenu(menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById(menu);
menuInfoData.setServerNotify(false);
setCondition(self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
public int OnIncapacitated(obj_id self, obj_id killer) throws InterruptedException
{
clearCondition(self, CONDITION_CONVERSABLE);
detachScript(self, "conversation.station_naboo");
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 (station_naboo_condition_isTooFar(player, npc))
{
string_id message = new string_id(c_stringFile, "s_1951f1c1");
chat.chat(npc, player, message);
return SCRIPT_CONTINUE;
}
if (station_naboo_condition_canDoImperialAccess(player, npc))
{
string_id message = new string_id(c_stringFile, "s_98fa9519");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_needRepairs(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_e4c8ff17");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_8460cdcf");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_3bf3c89f");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 2);
npcStartConversation(player, npc, "station_naboo", message, responses);
}
else
{
chat.chat(npc, player, message);
}
return SCRIPT_CONTINUE;
}
if (station_naboo_condition__defaultCondition(player, npc))
{
string_id message = new string_id(c_stringFile, "s_decdd151");
int numberOfResponses = 0;
boolean hasResponse = false;
boolean hasResponse0 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
boolean hasResponse1 = false;
if (station_naboo_condition_canAfford25(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
boolean hasResponse2 = false;
if (station_naboo_condition__defaultCondition(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
boolean hasResponse3 = false;
if (station_naboo_condition_canTakeQuest(player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses[] = new string_id[numberOfResponses];
if (hasResponse0)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_cebd107d");
}
if (hasResponse1)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_c358d041");
}
if (hasResponse2)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_98f3774d");
}
if (hasResponse3)
{
responses[responseIndex++] = new string_id(c_stringFile, "s_157");
}
utils.setScriptVar(player, "conversation.station_naboo.branchId", 5);
npcStartConversation(player, npc, "station_naboo", 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("station_naboo"))
{
return SCRIPT_CONTINUE;
}
obj_id npc = self;
int branchId = utils.getIntScriptVar(player, "conversation.station_naboo.branchId");
if (branchId == 2 && station_naboo_handleBranch2(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 3 && station_naboo_handleBranch3(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 5 && station_naboo_handleBranch5(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 6 && station_naboo_handleBranch6(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 7 && station_naboo_handleBranch7(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 10 && station_naboo_handleBranch10(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 13 && station_naboo_handleBranch13(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 16 && station_naboo_handleBranch16(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 19 && station_naboo_handleBranch19(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 22 && station_naboo_handleBranch22(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 25 && station_naboo_handleBranch25(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 28 && station_naboo_handleBranch28(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 31 && station_naboo_handleBranch31(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 34 && station_naboo_handleBranch34(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 35 && station_naboo_handleBranch35(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 38 && station_naboo_handleBranch38(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 41 && station_naboo_handleBranch41(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 44 && station_naboo_handleBranch44(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 48 && station_naboo_handleBranch48(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 50 && station_naboo_handleBranch50(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 52 && station_naboo_handleBranch52(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 54 && station_naboo_handleBranch54(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
if (branchId == 58 && station_naboo_handleBranch58(player, npc, response) == SCRIPT_CONTINUE)
{
return SCRIPT_CONTINUE;
}
chat.chat(npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar(player, "conversation.station_naboo.branchId");
return SCRIPT_CONTINUE;
}
}