Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/station_dantooine.script
T
2013-09-10 23:17:15 -07:00

13947 lines
392 KiB
Plaintext

// ======================================================================
//
// station_dantooine.script
// Copyright 2004, Sony Online Entertainment
// All Rights Reserved.
//
// Created with SwgConversationEditor 1.37 - DO NOT EDIT THIS AUTO-GENERATED FILE!
//
// ======================================================================
// ======================================================================
// Library Includes
// ======================================================================
include library.ai_lib;
include library.chat;
include library.conversation;
include library.factions;
include library.space_combat;
include library.space_content;
include library.space_crafting;
include library.space_flags;
include library.space_quest;
include library.space_transition;
include library.utils;
// ======================================================================
// Script Constants
// ======================================================================
string c_stringFile = "conversation/station_dantooine";
// ======================================================================
// Script Conditions
// ======================================================================
boolean station_dantooine_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAfford50 (obj_id player, obj_id npc)
{
return space_crafting.canAffordShipRepairs(player, npc, .50f);
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAfford25 (obj_id player, obj_id npc)
{
return ( space_crafting.canAffordShipRepairs(player, npc, .25f) && space_crafting.isDamaged( player ) );
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAfford75 (obj_id player, obj_id npc)
{
return space_crafting.canAffordShipRepairs(player, npc, .75f);
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAfford100 (obj_id player, obj_id npc)
{
return space_crafting.canAffordShipRepairs(player, npc, 1.0f);
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_needRepairs (obj_id player, obj_id npc)
{
float fltDamage = space_crafting.getDamageTotal(player, getPilotedShip(player));
if(fltDamage>0)
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_isTooFar (obj_id player, obj_id npc)
{
space_combat.playCombatTauntSound( player );
obj_id containingShip = space_transition.getContainingShip(player);
return ( getDistance( npc, containingShip ) > space_transition.STATION_COMM_MAX_DISTANCE );
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_hasRecentlyRepaired (obj_id player, obj_id npc)
{
if(hasObjVar(player, "space_quests.dantooine_station.fullRepair"))
return false;
int wasRepairedAtTime = utils.getIntScriptVar( player, "stationDantooineLastRepairs" );
int currentTime = getGameTime();
if ( (wasRepairedAtTime + 360) > currentTime )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canTakeMissions (obj_id player, obj_id npc)
{
if(space_flags.hasCompletedTierOne(player))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_isSmuggler (obj_id player, obj_id npc)
{
if(!space_flags.hasCompletedTierOne(player))
return false;
if( space_flags.isSpaceTrack(player, space_flags.PRIVATEER_TATOOINE))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_completedLokDelivery (obj_id player, obj_id npc)
{
if(!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1") &&
space_quest.hasWonQuest(player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_completedNabooDelivery (obj_id player, obj_id npc)
{
if(!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1") &&
space_quest.hasWonQuest(player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_completedTatooineDelivery (obj_id player, obj_id npc)
{
if(!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1") &&
space_quest.hasWonQuest(player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_completedCorelliaDelivery (obj_id player, obj_id npc)
{
if(!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1") &&
space_quest.hasWonQuest(player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_receivedRewardLok (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1") )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_receivedRewardCorellia (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1") )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_receivedRewardNaboo (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1") )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_receivedRewardTat (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1") )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_hasDeliveredAll (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1") ||
!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1") ||
!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1") ||
!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_rebelLanding (obj_id player, obj_id npc)
{
if(hasObjVar(player, "space.dantooine_landing_permission"))
return false;
if(!hasSkill(player, "pilot_rebel_navy_novice"))
return false;
if(space_flags.hasCompletedTierOne(player))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedLandingMission (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1"))
return false;
if ( space_quest.hasAbortedQuest( player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1" ) )
return true;
if ( space_quest.hasFailedQuest( player, "space_battle", "stn_dantooine_owner_rebel_landing_tier2_2" ) ||
space_quest.hasAbortedQuest( player, "space_battle", "stn_dantooine_owner_rebel_landing_tier2_2" ) )
return true;
if ( space_quest.hasFailedQuest( player, "assassinate", "stn_dantooine_owner_rebel_landing_tier2_3" ) ||
space_quest.hasAbortedQuest( player, "assassinate", "stn_dantooine_owner_rebel_landing_tier2_3" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_wonLandingMission (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1"))
return false;
if ( space_quest.hasWonQuest( player, "space_battle", "stn_dantooine_owner_rebel_landing_tier2_2" ))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_rebelBase (obj_id player, obj_id npc)
{
if(hasObjVar(player, "space.dantooine_landing_permission"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedSmuggler (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1"))
return false;
if ( space_quest.hasFailedQuestRecursive( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1" ) ||
space_quest.hasAbortedQuestRecursive( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_wonSmuggler (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1"))
return false;
if ( space_quest.hasWonQuestRecursive( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1" ))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_hasMission (obj_id player, obj_id npc)
{
if(!space_quest.hasQuest(player))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canRepairFull (obj_id player, obj_id npc)
{
if(hasObjVar(player, "space_quests.dantooine_station.fullRepair"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_hasFailedRepair (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01"))
return false;
if ( space_quest.hasFailedQuestRecursive( player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01" ) ||
space_quest.hasAbortedQuestRecursive( player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_hasWonRepair (obj_id player, obj_id npc)
{
if(!space_quest.hasReceivedReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01") &&
space_quest.hasWonQuestRecursive(player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01"))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedLokDelivery (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1" ) ||
space_quest.hasAbortedQuest( player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedCorelliaDelivery (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1" ) ||
space_quest.hasAbortedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedNabooDelivery (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1" ) ||
space_quest.hasAbortedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_failedTatooineDelivery (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1" ) ||
space_quest.hasAbortedQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1" ) )
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canTakeSmuggler (obj_id player, obj_id npc)
{
if(space_quest.hasReceivedReward(player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1"))
return false;
if(!space_flags.hasCompletedTierOne(player))
return false;
if( space_flags.isSpaceTrack(player, space_flags.PRIVATEER_TATOOINE))
return true;
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canLandAtHouse (obj_id player, obj_id npc)
{
if (hasObjVar (player, "homingBeacon.planet"))
{
string homePlanet = getStringObjVar (player, "homingBeacon.planet");
return (homePlanet.endsWith ("dantooine"));
}
else
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canHandleTier4 (obj_id player, obj_id npc)
{
return space_flags.hasCompletedTierThree(player);
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canHandleTier2 (obj_id player, obj_id npc)
{
return space_flags.hasCompletedTierThree(player);
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAttackImperial (obj_id player, obj_id npc)
{
if(space_flags.isRebelPilot(player) || space_flags.isRebelHelperPilot(player))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean station_dantooine_condition_canAttackRebel (obj_id player, obj_id npc)
{
if(space_flags.isImperialPilot(player) || space_flags.isImperialHelperPilot(player))
{
return true;
}
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void station_dantooine_action_landStation3 (obj_id player, obj_id npc)
{
space_content.landPlayer(player, npc, "Dantooine Imperial Outpost");
}
// ----------------------------------------------------------------------
void station_dantooine_action_fix25 (obj_id player, obj_id npc)
{
space_crafting.doStationToShipRepairs(player, npc, .25f);
}
// ----------------------------------------------------------------------
void station_dantooine_action_fix50 (obj_id player, obj_id npc)
{
space_crafting.doStationToShipRepairs(player, npc, .50f);
}
// ----------------------------------------------------------------------
void station_dantooine_action_fix75 (obj_id player, obj_id npc)
{
space_crafting.doStationToShipRepairs(player, npc, .75f);
}
// ----------------------------------------------------------------------
void station_dantooine_action_fix100 (obj_id player, obj_id npc)
{
space_crafting.doStationToShipRepairs(player, npc, 1.0f);
}
// ----------------------------------------------------------------------
void station_dantooine_action_landStation1 (obj_id player, obj_id npc)
{
space_content.landPlayer(player, npc, "Dantooine Mining Outpost");
}
// ----------------------------------------------------------------------
void station_dantooine_action_landStation2 (obj_id player, obj_id npc)
{
space_content.landPlayer(player, npc, "Dantooine Agro Outpost");
}
// ----------------------------------------------------------------------
void station_dantooine_action_flagRecentlyRepaired (obj_id player, obj_id npc)
{
utils.setScriptVar( player, "stationDantooineLastRepairs", getGameTime() );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantDestroyDuty (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "destroy_duty", "stn_dantooine_owner_all_raiderdestroy_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantLokPickup (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantTatooinePickup (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantNabooPickup (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantCorelliaPickup (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantEscortDuty (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "escort_duty", "stn_dantooine_owner_all_escortduty_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantRecoveryDuty (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "recovery_duty", "stn_dantooine_owner_smuggler_recoveryduty_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardLokPickup (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1", 20000 );
grantExperiencePoints(player, "space_combat_general", 2000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardCorelliaPickup (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1", 10000 );
grantExperiencePoints(player, "space_combat_general", 1000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardNabooPickup (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1", 10000 );
grantExperiencePoints(player, "space_combat_general", 1000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardTatPickup (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1", 10000 );
grantExperiencePoints(player, "space_combat_general", 1000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantLandingMission (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_regrantLandingMission (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearLandingMission (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1");
space_quest.clearQuestFlags(player, "assassinate", "stn_dantooine_owner_rebel_landing_tier2_3");
space_quest.clearQuestFlags(player, "space_battle", "stn_dantooine_owner_rebel_landing_tier2_2");
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardLanding (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "recovery", "stn_dantooine_owner_rebel_landing_tier2_1", 5000 );
grantExperiencePoints(player, "space_combat_general", 1000);
setObjVar(player, "space.dantooine_landing_permission", 1);
}
// ----------------------------------------------------------------------
void station_dantooine_action_landStation4 (obj_id player, obj_id npc)
{
space_content.landPlayer(player, npc, "Abandoned Rebel Base");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantSmugglerMission (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantSmugglerAgain (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearSmugglerMission (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1");
space_quest.clearQuestFlags(player, "recovery", "stn_dantooine_owner_smuggler_recovery02_tier2_1");
space_quest.clearQuestFlags(player, "destroy_surpriseattack", "stn_dantooine_owner_smuggler_surpriseattack01_tier2_1");
space_quest.clearQuestFlags(player, "inspect", "stn_dantooine_owner_smuggler_inspect02_tier2_1");
space_quest.clearQuestFlags(player, "destroy_surpriseattack", "stn_dantooine_owner_smuggler_surpriseattack02_tier2_1");
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardSmuggler (obj_id player, obj_id npc)
{
space_quest.giveReward( player, "inspect", "stn_dantooine_owner_smuggler_inspect01_tier2_1", 30000 );
grantExperiencePoints(player, "space_combat_general", 3000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantRepairMission (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01" );
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearRepairMission (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01");
space_quest.clearQuestFlags(player, "escort", "stn_dantooine_owner_all_repairmission_tier2_2");
}
// ----------------------------------------------------------------------
void station_dantooine_action_rewardRepair (obj_id player, obj_id npc)
{
space_quest.giveReward(player, "delivery_no_pickup", "stn_dantooine_owner_all_mircropickup_tier2_01", 2000);
setObjVar(player, "space_quests.dantooine_station.fullRepair", 1);
grantExperiencePoints(player, "space_combat_general", 1000);
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearLokDelivery (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "delivery_no_pickup", "stan_dantooine_owner_all_lokdelivery_tier2_1");
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearNabooDelivery (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "delivery_no_pickup", "stn_dantooine_owner_all_naboodelivery_tier2_1");
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearTatooineDelivery (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "delivery_no_pickup", "stn_dantooine_owner_all_tatooinedelivery_tier2_1");
}
// ----------------------------------------------------------------------
void station_dantooine_action_clearCorelliaDelivery (obj_id player, obj_id npc)
{
space_quest.clearQuestFlags(player, "delivery_no_pickup", "stn_dantooine_owner_all_corelliapickup_tier2_1");
}
// ----------------------------------------------------------------------
void station_dantooine_action_landHoming (obj_id player, obj_id npc)
{
space_content.landPlayerHoming(player, npc);
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantImperialDuty4 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_imperial_tier4");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantImperialDuty5 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "kessel_imperial_tier5");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantRebelDuty4 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_rebel_tier4");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantRebelDuty5 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "kessel_rebel_tier5");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantDroidDuty5 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_rogue_droid_tier5");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantDroidDuty4 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_rogue_droid_tier4");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantVoidDuty5 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_void_wing_tier5");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantVoidDuty4 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_void_wing_tier4");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantImperialDuty5_2 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_imperial_tier5");
}
// ----------------------------------------------------------------------
void station_dantooine_action_grantRebelDuty5_2 (obj_id player, obj_id npc)
{
space_quest.grantQuest(player, "destroy_duty", "dantooine_rebel_tier5");
}
// ======================================================================
// Script %TO Tokens
// ======================================================================
string station_dantooine_tokenTO_tokenTO0001 (obj_id player, obj_id npc)
{
return new string();
}
// ======================================================================
// Script %DI Tokens
// ======================================================================
int station_dantooine_tokenDI_getStationRepairCost25 (obj_id player, obj_id npc)
{
return space_crafting.getStationRepairCost(player, npc, .25f);
}
// ----------------------------------------------------------------------
int station_dantooine_tokenDI_getStationRepairCost50 (obj_id player, obj_id npc)
{
return space_crafting.getStationRepairCost(player, npc, .50f);
}
// ----------------------------------------------------------------------
int station_dantooine_tokenDI_getStationRepairCost75 (obj_id player, obj_id npc)
{
return space_crafting.getStationRepairCost(player, npc, .75f);
}
// ----------------------------------------------------------------------
int station_dantooine_tokenDI_getStationRepairCost100 (obj_id player, obj_id npc)
{
return space_crafting.getStationRepairCost(player, npc, 1.0f);
}
// ======================================================================
// Script %DF Tokens
// ======================================================================
// ======================================================================
// handleBranch<n> Functions
// ======================================================================
int station_dantooine_handleBranch2 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Listen! You are going to have to do better than that. I am not going to be breaking Imperial law and letting ya land where ya want if my freighters are not returned.
//-- [RESPONSE NOTE]
//-- PLAYER: Let me give it another go.
if (response == "s_e141a0e8")
{
station_dantooine_action_clearLandingMission (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_regrantLandingMission (player, npc);
//-- NPC: Fine. Just try to get it done this time.
string_id message = new string_id (c_stringFile, "s_da7e618d");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_75f22c97")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_54c04765")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_cc899cff")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_clearLandingMission (player, npc);
//-- NPC: Ok what do ya want then?
string_id message = new string_id (c_stringFile, "s_432005ea");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch4 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok what do ya want then?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch5 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I should have known that my plan wouldn't work out...nothing else ever does. It's this place...Dantooine...it's cursed, I tell ya.
//-- [RESPONSE NOTE]
//-- PLAYER: I will try again.
if (response == "s_a14e5fb1")
{
station_dantooine_action_clearSmugglerMission (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantSmugglerMission (player, npc);
//-- NPC: Fine, I hope you remember the instructions because I am not going to explain myself twice. I have better things to do than hope for the best.
string_id message = new string_id (c_stringFile, "s_aa9dafbe");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_14")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_16")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_18")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_clearSmugglerMission (player, npc);
//-- NPC: Ok, what do ya want then?
string_id message = new string_id (c_stringFile, "s_338dd0a0");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch7 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, what do ya want then?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch8 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Hey, I haven't gotten my stuff yet! What is the deal?
//-- [RESPONSE NOTE]
//-- PLAYER: I need to try again.
if (response == "s_1e46e4ca")
{
station_dantooine_action_clearRepairMission (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRepairMission (player, npc);
//-- NPC: Fine, I hope you remember the instructions because I am not going to explain myself twice. I have better things to do than hope for the best.
string_id message = new string_id (c_stringFile, "s_23");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_25")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_27")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_29")
{
station_dantooine_action_clearRepairMission (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, what do ya want then?
string_id message = new string_id (c_stringFile, "s_31");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch10 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, what do ya want then?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch11 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: So, did you get my stuff from Lok for me?
//-- [RESPONSE NOTE]
//-- PLAYER: I need to try that one again.
if (response == "s_4ff8fc41")
{
station_dantooine_action_clearLokDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantLokPickup (player, npc);
//-- NPC: Ok, just try to be timely. I am really running low here.
string_id message = new string_id (c_stringFile, "s_25329888");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land.
if (response == "s_305434ff")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_37")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_39")
{
station_dantooine_action_clearLokDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
string_id message = new string_id (c_stringFile, "s_965f7738");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch13 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch14 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Did you managed to pick up that cargo from Corellia?
//-- [RESPONSE NOTE]
//-- PLAYER: I need to try that one again.
if (response == "s_43")
{
station_dantooine_action_clearCorelliaDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantCorelliaPickup (player, npc);
//-- NPC: Ok, just try to be timely. I am really running low here.
string_id message = new string_id (c_stringFile, "s_45");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land.
if (response == "s_47")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_49")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_51")
{
station_dantooine_action_clearCorelliaDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
string_id message = new string_id (c_stringFile, "s_53");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch16 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch17 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: How did your trip to Naboo go?
//-- [RESPONSE NOTE]
//-- PLAYER: I need to try that one again.
if (response == "s_56")
{
station_dantooine_action_clearNabooDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantNabooPickup (player, npc);
//-- NPC: Ok, just try to be timely. I am really running low here.
string_id message = new string_id (c_stringFile, "s_58");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land.
if (response == "s_60")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_62")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_64")
{
station_dantooine_action_clearNabooDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
string_id message = new string_id (c_stringFile, "s_66");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch19 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch20 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Tatooine must be nice this time of year. Wish I was there...by the way did you make that pickup for me?
//-- [RESPONSE NOTE]
//-- PLAYER: I need to try that one again.
if (response == "s_69")
{
station_dantooine_action_clearTatooineDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantTatooinePickup (player, npc);
//-- NPC: Ok, just try to be timely. I am really running low here.
string_id message = new string_id (c_stringFile, "s_71");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land.
if (response == "s_73")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_75")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to try something else.
if (response == "s_77")
{
station_dantooine_action_clearNabooDelivery (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
string_id message = new string_id (c_stringFile, "s_79");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch22 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, fine...fine. I should have known I wouldn't have been getting my supplies.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch23 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Excellent. I have been waiting for this. I hope your trip to Lok went smoothly. As promised here is your payment for a job well done.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch24 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I have been waiting for this. I understand that Naboo is nice this time of year...wish I could be there instead of here. As promised here is your payment for a job well done.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch25 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I am surprised that Tatooine had anything...they are almost as remote as I am. Must be nice to have everyone flying around there. Oh well, here is your payment.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch26 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I really hate Corellia. Always fully stocked...never having any problems getting goods. I bet those station owners are making a fortune. Here is your payment.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch28 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Hey, nice job. The freighter showed up just a short time ago and those micro-processors will come in handy. Whenever you need repairs, I will fix your ship to full...for a price of course. Is there anything else you need?
//-- [RESPONSE NOTE]
//-- PLAYER: It wasn't any problem.
if (response == "s_5076c164")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_rewardRepair (player, npc);
//-- NPC: Whatever...I am just glad to have those much needed supplies. Is there anything else I can do for you?
string_id message = new string_id (c_stringFile, "s_3da1b8c8");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch29 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Whatever...I am just glad to have those much needed supplies. Is there anything else I can do for you?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch30 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Hey, look whose back and look at all of this nice stuff. You did good...real good. I cannot wait to take a little sniff of that brandy...I know I deserve it. Oh, yeah...ya need to be paid.
//-- [RESPONSE NOTE]
//-- PLAYER: Anything else I can do for you?
if (response == "s_9553e32c")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: No, no...is there anything that I can do for you?
string_id message = new string_id (c_stringFile, "s_a7c07d40");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch31 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: No, no...is there anything that I can do for you?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch32 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: This is Dantooine Station. What can I do for ya?
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch33 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Good grief, friend. Why would you want to land here?
//-- [RESPONSE NOTE]
//-- PLAYER: I have business on Dantooine.
if (response == "s_fc85e244")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: There are nicer places to visit in the galaxy, but I suppose if you're in a pinch, then you might be able to get by on Dantooine.
string_id message = new string_id (c_stringFile, "s_460d6dba");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Let me land at the Mining Outpost.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Let me land at the Agro Outpost.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Let me land at the Imperial Outpost.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Let me land at the Rebel Base.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelBase (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: Let me land at my Homing Beacon.
boolean hasResponse4 = false;
if (station_dantooine_condition_canLandAtHouse (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_9fa6755e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_9977dcd9");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_6c9d2543");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f81007d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_229");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 34);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch34 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: There are nicer places to visit in the galaxy, but I suppose if you're in a pinch, then you might be able to get by on Dantooine.
//-- [RESPONSE NOTE]
//-- PLAYER: Let me land at the Mining Outpost.
if (response == "s_9fa6755e")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: That mining outpost hasn't been producing decent resources for months. I'd suggest traveling to a different system. I hear Naboo is nice.
string_id message = new string_id (c_stringFile, "s_bc8bd720");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just clear me for landing.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Never mind then.
boolean hasResponse1 = false;
if (station_dantooine_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_890b6a4c");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_737e644a");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 35);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Let me land at the Agro Outpost.
if (response == "s_9977dcd9")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Oh... Oh! You're one of... I mean. Ok, then. You're sure you want to land there? I mean, there's some rough customers around those parts, if you know what I mean.
string_id message = new string_id (c_stringFile, "s_8316a19c");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Yes, clear me for landing.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: On second thought...
boolean hasResponse1 = false;
if (station_dantooine_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_bceb6c8c");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_5d4f7fdb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 38);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Let me land at the Imperial Outpost.
if (response == "s_6c9d2543")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Oh, I see. Here on official business, are you?
string_id message = new string_id (c_stringFile, "s_eb3c41c");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just clear me for landing.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: On second thought, never mind.
boolean hasResponse1 = false;
if (station_dantooine_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_112");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_aec16b0a");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 41);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Let me land at the Rebel Base.
if (response == "s_7f81007d")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landStation4 (player, npc);
//-- NPC: Oh, it's you. Sure thing buddy. No problems. Thanks again for helping me earlier.
string_id message = new string_id (c_stringFile, "s_e06f5f77");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Let me land at my Homing Beacon.
if (response == "s_229")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: You actually live here?!
string_id message = new string_id (c_stringFile, "s_230");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just let me land.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: On second thought, you're right.
boolean hasResponse1 = false;
if (station_dantooine_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_231");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_232");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 45);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch35 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: That mining outpost hasn't been producing decent resources for months. I'd suggest traveling to a different system. I hear Naboo is nice.
//-- [RESPONSE NOTE]
//-- PLAYER: Just clear me for landing.
if (response == "s_890b6a4c")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landStation1 (player, npc);
//-- NPC: Ok, ok... don't know why you're in such a rush to go there, though. You're cleared for landing.
string_id message = new string_id (c_stringFile, "s_3ca4bcbc");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Never mind then.
if (response == "s_737e644a")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: No problem, friend. Give us a comm if you're needin' anything else.
string_id message = new string_id (c_stringFile, "s_b0cfe018");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch38 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Oh... Oh! You're one of... I mean. Ok, then. You're sure you want to land there? I mean, there's some rough customers around those parts, if you know what I mean.
//-- [RESPONSE NOTE]
//-- PLAYER: Yes, clear me for landing.
if (response == "s_bceb6c8c")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landStation2 (player, npc);
//-- NPC: Heh. Ok, you got it. Good Luck!
string_id message = new string_id (c_stringFile, "s_d857aa79");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: On second thought...
if (response == "s_5d4f7fdb")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Yeah, that's what I thought. Give us a comm if you need anything else.
string_id message = new string_id (c_stringFile, "s_772ab602");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch41 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Oh, I see. Here on official business, are you?
//-- [RESPONSE NOTE]
//-- PLAYER: Just clear me for landing.
if (response == "s_112")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landStation3 (player, npc);
//-- NPC: Ok, ok... You're cleared for landing.
string_id message = new string_id (c_stringFile, "s_28876db2");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: On second thought, never mind.
if (response == "s_aec16b0a")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: No problem, friend. Give us a comm if you're needin' anything else.
string_id message = new string_id (c_stringFile, "s_116");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch45 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: You actually live here?!
//-- [RESPONSE NOTE]
//-- PLAYER: Just let me land.
if (response == "s_231")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landHoming (player, npc);
//-- NPC: Fine, fine. Enjoy your stay, if that's possible.
string_id message = new string_id (c_stringFile, "s_234");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: On second thought, you're right.
if (response == "s_232")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: I thought so. You should really think about moving somewhere nice.
string_id message = new string_id (c_stringFile, "s_233");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch48 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
//-- [RESPONSE NOTE]
//-- PLAYER: Fine. Bye.
if (response == "s_bbdda3b3")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Shouldn't be long now. Check back in a few. Or I guess you could land on Dantooine and see if there's a shipwright handy.
string_id message = new string_id (c_stringFile, "s_fe0697d3");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: No thanks.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Yes. Let me land.
boolean hasResponse1 = false;
if (station_dantooine_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_1b800e2e");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 49);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll wait.
if (response == "s_cb019515")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Sure thing, friend. Maybe you want to land, though? Could get some help on the planet, maybe.
string_id message = new string_id (c_stringFile, "s_49a5815f");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Let me land.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No thanks.
boolean hasResponse1 = false;
if (station_dantooine_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_7a1a092d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_137");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 51);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch49 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Shouldn't be long now. Check back in a few. Or I guess you could land on Dantooine and see if there's a shipwright handy.
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks.
if (response == "s_d6695e83")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok then. Nice talking to you, %NU.
string_id message = new string_id (c_stringFile, "s_9e962746");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Yes. Let me land.
if (response == "s_1b800e2e")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: There are nicer places to visit in the galaxy, but I suppose if you're in a pinch, then you might be able to get by on Dantooine.
string_id message = new string_id (c_stringFile, "s_460d6dba");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Let me land at the Mining Outpost.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Let me land at the Agro Outpost.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Let me land at the Imperial Outpost.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Let me land at the Rebel Base.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelBase (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: Let me land at my Homing Beacon.
boolean hasResponse4 = false;
if (station_dantooine_condition_canLandAtHouse (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_9fa6755e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_9977dcd9");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_6c9d2543");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f81007d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_229");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 34);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch51 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Sure thing, friend. Maybe you want to land, though? Could get some help on the planet, maybe.
//-- [RESPONSE NOTE]
//-- PLAYER: Fine. Let me land.
if (response == "s_7a1a092d")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: There are nicer places to visit in the galaxy, but I suppose if you're in a pinch, then you might be able to get by on Dantooine.
string_id message = new string_id (c_stringFile, "s_460d6dba");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Let me land at the Mining Outpost.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Let me land at the Agro Outpost.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Let me land at the Imperial Outpost.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Let me land at the Rebel Base.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelBase (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: Let me land at my Homing Beacon.
boolean hasResponse4 = false;
if (station_dantooine_condition_canLandAtHouse (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_9fa6755e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_9977dcd9");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_6c9d2543");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f81007d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_229");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 34);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks.
if (response == "s_137")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok then. Nice talking to you, %NU.
string_id message = new string_id (c_stringFile, "s_139");
utils.removeScriptVar (player, "conversation.station_dantooine.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;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch53 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
//-- [RESPONSE NOTE]
//-- PLAYER: Just a little.
if (response == "s_90ee7f5d")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, that shouldn't be too much trouble. We can fix you up just enough for you to get underway again for a mere %DI credits. How's that sound?
string_id message = new string_id (c_stringFile, "s_6b2d605a");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Do it.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Forget it.
boolean hasResponse1 = false;
if (station_dantooine_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_fef28268");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 54);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost25 (player, npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost25 (player, npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Repair half.
if (response == "s_245c7c6d")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: We can manage that. Do you have the %DI credits to pay for this, though?
string_id message = new string_id (c_stringFile, "s_2fc5fe5d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Yes.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No.
boolean hasResponse1 = false;
if (station_dantooine_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_dantooine.branchId", 57);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost50 (player, npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost50 (player, npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: All of it.
if (response == "s_70876928")
{
//-- [NOTE]
if (station_dantooine_condition_canRepairFull (player, npc))
{
//-- NPC: A deal is a deal. Do you have the %DI credits to cover the costs for this? Hey, I never said I would do it for free!
string_id message = new string_id (c_stringFile, "s_6bceda29");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Yes.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No.
boolean hasResponse1 = false;
if (station_dantooine_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_156");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_160");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 60);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost100 (player, npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost100 (player, npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. Probably the best we could do would be to repair three-quarters of your damage... How about for %DI credits?
string_id message = new string_id (c_stringFile, "s_89c649f8");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: It's a deal.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Why can't you fix all of it?
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Forget it.
boolean hasResponse2 = false;
if (station_dantooine_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_ebe2e111");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_49c64100");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_172");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 63);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost75 (player, npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
pp.digitInteger = station_dantooine_tokenDI_getStationRepairCost75 (player, npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Never mind.
if (response == "s_169df3bb")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok, %NU. Give us a comm if there's anything we can do for you.
string_id message = new string_id (c_stringFile, "s_7e303ed8");
utils.removeScriptVar (player, "conversation.station_dantooine.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;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch54 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Ok, that shouldn't be too much trouble. We can fix you up just enough for you to get underway again for a mere %DI credits. How's that sound?
//-- [RESPONSE NOTE]
//-- PLAYER: Do it.
if (response == "s_fef28268")
{
station_dantooine_action_fix25 (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: There you go. You might be limpin' for a while 'til you can afford some more repairs. Just give us a comm if there's anything else we can do for you.
string_id message = new string_id (c_stringFile, "s_5600fd38");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Forget it.
if (response == "s_ca932c28")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Your call, friend. Give us a comm if there's something we can help you with.
string_id message = new string_id (c_stringFile, "s_be24e8c2");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch57 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: We can manage that. Do you have the %DI credits to pay for this, though?
//-- [RESPONSE NOTE]
//-- PLAYER: Yes.
if (response == "s_d70dba34")
{
station_dantooine_action_fix50 (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Repairs complete! Give us a comm if there's anything else you need.
string_id message = new string_id (c_stringFile, "s_4daeb488");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No.
if (response == "s_4c695dbd")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: I'm afraid I can't help you, then. Give us a comm if there's something we can do for you.
string_id message = new string_id (c_stringFile, "s_f3b73e85");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch60 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: A deal is a deal. Do you have the %DI credits to cover the costs for this? Hey, I never said I would do it for free!
//-- [RESPONSE NOTE]
//-- PLAYER: Yes.
if (response == "s_156")
{
station_dantooine_action_fix100 (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Repairs complete! Give us a comm if there's anything else you need.
string_id message = new string_id (c_stringFile, "s_158");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No.
if (response == "s_160")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: I'm afraid I can't help you, then. Give us a comm if there's something we can do for you.
string_id message = new string_id (c_stringFile, "s_162");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch63 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: 'Fraid we can't manage that, friend. Probably the best we could do would be to repair three-quarters of your damage... How about for %DI credits?
//-- [RESPONSE NOTE]
//-- PLAYER: It's a deal.
if (response == "s_ebe2e111")
{
station_dantooine_action_fix75 (player, npc);
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_flagRecentlyRepaired (player, npc);
//-- NPC: Fantastic. Repairs complete! You'll want to hit a better-equipped station to get the rest of that damage taken care of.
string_id message = new string_id (c_stringFile, "s_26c53da2");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Why can't you fix all of it?
if (response == "s_49c64100")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, let me see. I am out of nearly everything here. Hey...maybe you could help me and get me some more supplies? If you do, I will fix your ship to full...but don't go around telling everyone that I gave you this opportunity.
string_id message = new string_id (c_stringFile, "s_61aa8974");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Ok, you have a deal.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Na, I just want my ship fixed.
boolean hasResponse1 = false;
if (station_dantooine_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_c385e8d2");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_25a58267");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 65);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Forget it.
if (response == "s_172")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Sorry we couldn't be of more help. You might be able to find an engineer on Dantooine at one of the mining outposts to help you, or if you can make it to a better-equipped station...
string_id message = new string_id (c_stringFile, "s_d3dfb66a");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Don't worry about it.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Ok, I'll land at the Mining Outpost.
boolean hasResponse1 = false;
if (station_dantooine_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_3d1c2e17");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_853a6233");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 67);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch65 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Well, let me see. I am out of nearly everything here. Hey...maybe you could help me and get me some more supplies? If you do, I will fix your ship to full...but don't go around telling everyone that I gave you this opportunity.
//-- [RESPONSE NOTE]
//-- PLAYER: Ok, you have a deal.
if (response == "s_c385e8d2")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRepairMission (player, npc);
//-- NPC: I knew you were going to help me. Ok, this is the deal. First you need to go to Corellia and pick up an order of micro-processors that I put in close to a month ago. After that there is a freighter in Tatooine that is dragging it's feet getting here. You get me those processors and get that freighter here and I will repair your ship to full when you need me to.
string_id message = new string_id (c_stringFile, "s_6301c26");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Na, I just want my ship fixed.
if (response == "s_25a58267")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch67 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Sorry we couldn't be of more help. You might be able to find an engineer on Dantooine at one of the mining outposts to help you, or if you can make it to a better-equipped station...
//-- [RESPONSE NOTE]
//-- PLAYER: Don't worry about it.
if (response == "s_3d1c2e17")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Ok. Give us a comm if there's anything I can do for you.
string_id message = new string_id (c_stringFile, "s_ff02facb");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Ok, I'll land at the Mining Outpost.
if (response == "s_853a6233")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_landStation1 (player, npc);
//-- NPC: Good luck with your repairs! You're cleared to land.
string_id message = new string_id (c_stringFile, "s_1c95bcfd");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch71 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
//-- [RESPONSE NOTE]
//-- PLAYER: Tell me about the mercenary contracts.
if (response == "s_f801849e")
{
//-- [NOTE]
if (station_dantooine_condition_canHandleTier4 (player, npc))
{
//-- NPC: Here's the menu, Pick your poison.
string_id message = new string_id (c_stringFile, "s_241");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I'll hunt down tier 4 Imperial patrols
boolean hasResponse0 = false;
if (station_dantooine_condition_canAttackImperial (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll hunt down tier 5 Imperial patrols in Kessel
boolean hasResponse1 = false;
if (station_dantooine_condition_canAttackImperial (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'll hunt down tier 5 Imperial patrols in the area
boolean hasResponse2 = false;
if (station_dantooine_condition_canAttackImperial (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I'll hunt down tier 4 Rebel patrols
boolean hasResponse3 = false;
if (station_dantooine_condition_canAttackRebel (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I'll hunt down tier 5 Rebel patrols in Kessel
boolean hasResponse4 = false;
if (station_dantooine_condition_canAttackRebel (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
//-- PLAYER: I'll hunt down tier 5 Rebel patrols in the area
boolean hasResponse5 = false;
if (station_dantooine_condition_canAttackRebel (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
//-- PLAYER: I'll hunt down tier 4 Void Wing Pirates
boolean hasResponse6 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
//-- PLAYER: I'll hunt down tier 5 Void Wing Pirates
boolean hasResponse7 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse7 = true;
}
//-- PLAYER: I'll hunt down tier 4 Rogue Droids
boolean hasResponse8 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse8 = true;
}
//-- PLAYER: I'll hunt down tier 5 Rogue Droids
boolean hasResponse9 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse9 = true;
}
//-- PLAYER: I'll hunt down the local tier 2 and 3 raiders
boolean hasResponse10 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse10 = true;
}
//-- PLAYER: Nothing here for me
boolean hasResponse11 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse11 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_242");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_243");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_290");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_244");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_245");
if (hasResponse5)
responses [responseIndex++] = new string_id (c_stringFile, "s_291");
if (hasResponse6)
responses [responseIndex++] = new string_id (c_stringFile, "s_246");
if (hasResponse7)
responses [responseIndex++] = new string_id (c_stringFile, "s_247");
if (hasResponse8)
responses [responseIndex++] = new string_id (c_stringFile, "s_248");
if (hasResponse9)
responses [responseIndex++] = new string_id (c_stringFile, "s_249");
if (hasResponse10)
responses [responseIndex++] = new string_id (c_stringFile, "s_250");
if (hasResponse11)
responses [responseIndex++] = new string_id (c_stringFile, "s_251");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 72);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_canHandleTier2 (player, npc))
{
//-- NPC: It looks like most of the contracts require more combat experience than you have. However, we do have a problem with some local raiders. Perhps you could deal with those?
string_id message = new string_id (c_stringFile, "s_262");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Sure I'll deal with the raiders.
boolean hasResponse0 = false;
if (station_dantooine_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_263");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 85);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: We don't have any contracts available to new pilots. Try the Corellia, Naboo or tatooine systems. I hear they'll hire just about anyone.
string_id message = new string_id (c_stringFile, "s_265");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I would like to make the pickups.
if (response == "s_cbcf9a11")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Right ya are. I have several scheduled pick ups in a few other systems. If ya go pick that stuff up for me I will pay you for each of the deliveries you make. I cannot pay ya a lot but at least it is something. You should do this for me.
string_id message = new string_id (c_stringFile, "s_2f1ada36");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Do you have anything in the Lok system?
boolean hasResponse0 = false;
if (station_dantooine_condition_receivedRewardLok (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I am heading to the Corellia system.
boolean hasResponse1 = false;
if (station_dantooine_condition_receivedRewardCorellia (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: What about Tatooine?
boolean hasResponse2 = false;
if (station_dantooine_condition_receivedRewardTat (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to travel to Naboo.
boolean hasResponse3 = false;
if (station_dantooine_condition_receivedRewardNaboo (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_a545492f");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_c3d29ec8");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_c03160ec");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_72e300ed");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 88);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I will escort your freighters.
if (response == "s_a3c632c9")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantEscortDuty (player, npc);
//-- NPC: Ok, for each of the freighters ya get through I will pay you. These freighters are coming in from Corellia and I am not really sure what is on them...but we do need them. I will send ya the arrival location of each of the freighters when they are ready to arrive.
string_id message = new string_id (c_stringFile, "s_925010fb");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I was thinking of some 'special' help.
if (response == "s_23615777")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Yeah, I thought ya looked the shady type. Maybe...I have something for ya. I have this problem of never getting my supplies. Now how am I supposed to run a station without supplies, I ask you? There are some pretty fat shipping lanes in Corellia, I doubt that they would miss a few freighters.
string_id message = new string_id (c_stringFile, "s_6ee8b2ec");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am just the pilot you are looking for.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: You are talking about piracy. No way!
boolean hasResponse1 = false;
if (station_dantooine_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_48d5ef59");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_c0ce6b3a");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 94);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch72 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Here's the menu, Pick your poison.
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 4 Imperial patrols
if (response == "s_242")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRebelDuty4 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_253");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Imperial patrols in Kessel
if (response == "s_243")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRebelDuty5 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_254");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Imperial patrols in the area
if (response == "s_290")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRebelDuty5_2 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_292");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 4 Rebel patrols
if (response == "s_244")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantImperialDuty4 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_255");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Rebel patrols in Kessel
if (response == "s_245")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantImperialDuty5 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_256");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Rebel patrols in the area
if (response == "s_291")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantImperialDuty5_2 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_293");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 4 Void Wing Pirates
if (response == "s_246")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantVoidDuty4 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_257");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Void Wing Pirates
if (response == "s_247")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantVoidDuty5 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_258");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 4 Rogue Droids
if (response == "s_248")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantDroidDuty4 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_259");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down tier 5 Rogue Droids
if (response == "s_249")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantDroidDuty5 (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_260");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'll hunt down the local tier 2 and 3 raiders
if (response == "s_250")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantDestroyDuty (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_261");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Nothing here for me
if (response == "s_251")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Big surprise. Come back again if you find you spine.
string_id message = new string_id (c_stringFile, "s_252");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch85 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: It looks like most of the contracts require more combat experience than you have. However, we do have a problem with some local raiders. Perhps you could deal with those?
//-- [RESPONSE NOTE]
//-- PLAYER: Sure I'll deal with the raiders.
if (response == "s_263")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantDestroyDuty (player, npc);
//-- NPC: Transmitting mission data. Good hunting.
string_id message = new string_id (c_stringFile, "s_264");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch87 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: We don't have any contracts available to new pilots. Try the Corellia, Naboo or tatooine systems. I hear they'll hire just about anyone.
//-- [RESPONSE NOTE]
//-- PLAYER: I want to land on Dantooine.
if (response == "s_93")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Good grief, friend. Why would you want to land here?
string_id message = new string_id (c_stringFile, "s_688c4b5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I have business on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_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_fc85e244");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need repairs!
if (response == "s_126")
{
//-- [NOTE]
if (station_dantooine_condition_hasRecentlyRepaired (player, npc))
{
//-- NPC: 'Fraid we can't manage that, friend. We're all out of supplies 'til the next shipment comes in.
string_id message = new string_id (c_stringFile, "s_3626cec6");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Fine. Bye.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll wait.
boolean hasResponse1 = false;
if (station_dantooine_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_bbdda3b3");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cb019515");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, you sure picked a backwater station to get repairs from. Until our next supply ship comes through, we're sort of limited with that. Just how much of that damage do you need repaired?
string_id message = new string_id (c_stringFile, "s_b22f6cee");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just a little.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Repair half.
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford50 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: All of it.
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford75 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: Never mind.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_90ee7f5d");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_245c7c6d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_70876928");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_169df3bb");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 53);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I'm looking for work.
if (response == "s_a560e84c")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Oh, really? Well then I have just what ya need...or rather maybe ya can help me with some problems around here. Seems like I have nothin' but problems. Let me see here...I got some open mercenary contracts. I have some supply pickups that need to be made. And..oh yeah...I need some freighters escorted through the system.
string_id message = new string_id (c_stringFile, "s_874539f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Tell me about the mercenary contracts.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I would like to make the pickups.
boolean hasResponse1 = false;
if (station_dantooine_condition_hasDeliveredAll (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I will escort your freighters.
boolean hasResponse2 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I was thinking of some 'special' help.
boolean hasResponse3 = false;
if (station_dantooine_condition_isSmuggler (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_f801849e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_cbcf9a11");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a3c632c9");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_23615777");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 71);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: It looks like you are a bit busy, ya know. Maybe finish up with what you are doing and talk to me later.
string_id message = new string_id (c_stringFile, "s_87f1159b");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I need special landing permission.
if (response == "s_7f5d5f9d")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
string_id message = new string_id (c_stringFile, "s_f00111d");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am listening.
boolean hasResponse0 = false;
if (station_dantooine_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_c9aa99a2");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 98);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_2612d825");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am looking for some adventure.
if (response == "s_5f4f6d25")
{
//-- [NOTE]
if (station_dantooine_condition_hasMission (player, npc))
{
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
string_id message = new string_id (c_stringFile, "s_b6617db1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am not afraid to bend a few laws.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Illegal! No way.
boolean hasResponse1 = false;
if (station_dantooine_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_d1d752d1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_783aa9d8");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 105);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: How about you finish up with what you are working on and then come back to talk to me. I want your full attention before I will just hand out jobs.
string_id message = new string_id (c_stringFile, "s_289");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch88 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Right ya are. I have several scheduled pick ups in a few other systems. If ya go pick that stuff up for me I will pay you for each of the deliveries you make. I cannot pay ya a lot but at least it is something. You should do this for me.
//-- [RESPONSE NOTE]
//-- PLAYER: Do you have anything in the Lok system?
if (response == "s_a545492f")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantLokPickup (player, npc);
//-- NPC: Fine with me. Travel to Lok and meet with a delivery vessel that is waiting there. I will pay ya for the trouble when you get back to me.
string_id message = new string_id (c_stringFile, "s_478f318d");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I am heading to the Corellia system.
if (response == "s_c3d29ec8")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantCorelliaPickup (player, npc);
//-- NPC: Sounds good to me. Travel to Corellia and meet with the freighter that is supposed to have a load of cargo for me. You will be payed when ya return with the cargo.
string_id message = new string_id (c_stringFile, "s_3ea99f04");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: What about Tatooine?
if (response == "s_c03160ec")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantTatooinePickup (player, npc);
//-- NPC: Whatever. Not that I expect ya to ever come back...no one else ever does. Anyways, head to Tatooine and meet up with the delivery vessel there. I will have your payment waiting for ya on delivery of the goods.
string_id message = new string_id (c_stringFile, "s_df473597");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I want to travel to Naboo.
if (response == "s_72e300ed")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantNabooPickup (player, npc);
//-- NPC: Oh, ya will. That is surprising news I must admit. Meet up with the delivery vessel in the Naboo systsem. Once I have the cargo, ya can get paid.
string_id message = new string_id (c_stringFile, "s_59a700b5");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch94 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Yeah, I thought ya looked the shady type. Maybe...I have something for ya. I have this problem of never getting my supplies. Now how am I supposed to run a station without supplies, I ask you? There are some pretty fat shipping lanes in Corellia, I doubt that they would miss a few freighters.
//-- [RESPONSE NOTE]
//-- PLAYER: I am just the pilot you are looking for.
if (response == "s_48d5ef59")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantRecoveryDuty (player, npc);
//-- NPC: I thought you would be interested. I will find someone else to escort those freighters coming into this system, so all ya need to do is to capture them in Corellia and send them out here. Watch out for those CorSec...they get rather upset about losing freighters for some reason.
string_id message = new string_id (c_stringFile, "s_407899ba");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: You are talking about piracy. No way!
if (response == "s_c0ce6b3a")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: I didn't say anything about piracy...how insulting. I am an honest businessman. We are done talking now.
string_id message = new string_id (c_stringFile, "s_964449aa");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch98 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I was wondering if ya were going to ask me about that? I have been watching ya from up here...don't have much else to do really. I am willing to help ya out if ya help me out. One hand washes the other...ya know?
//-- [RESPONSE NOTE]
//-- PLAYER: I am listening.
if (response == "s_c9aa99a2")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: I have a slight Imperial problem. If you help me out with my problem, I can see fit to look the other way if you were to...say land at a base on the planet that isn't supposed to be there...if ya get my drift.
string_id message = new string_id (c_stringFile, "s_9121f9d2");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I am still listening.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No thanks. I am not interested.
boolean hasResponse1 = false;
if (station_dantooine_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_2798158f");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_269");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 99);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch99 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I have a slight Imperial problem. If you help me out with my problem, I can see fit to look the other way if you were to...say land at a base on the planet that isn't supposed to be there...if ya get my drift.
//-- [RESPONSE NOTE]
//-- PLAYER: I am still listening.
if (response == "s_2798158f")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Part of my freighter fleet has been conscripted by those blasted Imperials. Even with those ships I cannot keep my station fully stocked...without them I am running dangerously low on supplies. If you get my fleet back from those Imperials, I will let you land at that base that isn't really there.
string_id message = new string_id (c_stringFile, "s_3555e858");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: You have a deal.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No thanks. I am not interested.
boolean hasResponse1 = false;
if (station_dantooine_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_2102ee02");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_a567620f");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 100);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks. I am not interested.
if (response == "s_269")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Have it your way. If you change your mind...
string_id message = new string_id (c_stringFile, "s_271");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch100 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Part of my freighter fleet has been conscripted by those blasted Imperials. Even with those ships I cannot keep my station fully stocked...without them I am running dangerously low on supplies. If you get my fleet back from those Imperials, I will let you land at that base that isn't really there.
//-- [RESPONSE NOTE]
//-- PLAYER: You have a deal.
if (response == "s_2102ee02")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantLandingMission (player, npc);
//-- NPC: Ok, I will send you the navigation location to one of the freighters. You capture it and bring it back here. I will repaint and rename it. The dumb Imperials won't know the difference. Thanks for helping out.
string_id message = new string_id (c_stringFile, "s_b6546bce");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks. I am not interested.
if (response == "s_a567620f")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Have it your way. If you change your mind...
string_id message = new string_id (c_stringFile, "s_d4c99a54");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch105 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Adventure, eh? I might have something for ya if ya don't mind...doing something that isn't exactly legal.
//-- [RESPONSE NOTE]
//-- PLAYER: I am not afraid to bend a few laws.
if (response == "s_d1d752d1")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Well, this should be simple enough for someone like you. I have some things that I need to have...picked up. Ya see, I was promised some goods and those goods never showed up. I need someone with your talents to go make those goods show up.
string_id message = new string_id (c_stringFile, "s_106850f3");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Keep talking. I'm listening.
boolean hasResponse0 = false;
if (station_dantooine_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_29632203");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 106);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Illegal! No way.
if (response == "s_783aa9d8")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: And I thought ya were looking for adventure. Fine...play it safe.
string_id message = new string_id (c_stringFile, "s_287");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch106 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Well, this should be simple enough for someone like you. I have some things that I need to have...picked up. Ya see, I was promised some goods and those goods never showed up. I need someone with your talents to go make those goods show up.
//-- [RESPONSE NOTE]
//-- PLAYER: Keep talking. I'm listening.
if (response == "s_29632203")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: The first thing I need is on a freighter called the Shifty Prince. It is carrying a load of phasotron radium and is in the Naboo system right now. Inspect that ship and get the radium. Then I need you to go to Corellia and capture the Bez'ox Mentzz. The load of atmospheric inhibitors is mine but the shipping company won't send them to me.
string_id message = new string_id (c_stringFile, "s_90f8c50e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Anything else?
boolean hasResponse0 = false;
if (station_dantooine_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_362a48e0");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 107);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch107 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: The first thing I need is on a freighter called the Shifty Prince. It is carrying a load of phasotron radium and is in the Naboo system right now. Inspect that ship and get the radium. Then I need you to go to Corellia and capture the Bez'ox Mentzz. The load of atmospheric inhibitors is mine but the shipping company won't send them to me.
//-- [RESPONSE NOTE]
//-- PLAYER: Anything else?
if (response == "s_362a48e0")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: Yeah...I want something for me, blast it. There is a ship in Tatooine called the Lord's Mistress. She is loaded with Corellian Brandy and I want some. Being out here makes a man want to drink. Inspect her and get me some of that brandy. Just watch out for Hap, he owns the Mistress and is a real vengeful cuss.
string_id message = new string_id (c_stringFile, "s_7823bf");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Ok, got it. This should be a snap.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: On second thought...no thanks.
boolean hasResponse1 = false;
if (station_dantooine_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_e2fc1d54");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_5ce90655");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 108);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int station_dantooine_handleBranch108 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Yeah...I want something for me, blast it. There is a ship in Tatooine called the Lord's Mistress. She is loaded with Corellian Brandy and I want some. Being out here makes a man want to drink. Inspect her and get me some of that brandy. Just watch out for Hap, he owns the Mistress and is a real vengeful cuss.
//-- [RESPONSE NOTE]
//-- PLAYER: Ok, got it. This should be a snap.
if (response == "s_e2fc1d54")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
station_dantooine_action_grantSmugglerMission (player, npc);
//-- NPC: Alright. I will forward you coordinates of each of the ships when you arrive in the system. Oh, and if you get caught I will deny everything.
string_id message = new string_id (c_stringFile, "s_a7b78b9d");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: On second thought...no thanks.
if (response == "s_5ce90655")
{
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: And I thought ya were looking for adventure. Fine...play it safe.
string_id message = new string_id (c_stringFile, "s_72db56e1");
utils.removeScriptVar (player, "conversation.station_dantooine.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
setCondition (self, CONDITION_CONVERSABLE);
setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_dantooine.iff" );
return SCRIPT_CONTINUE;
}
trigger OnAttach ()
{
setCondition (self, CONDITION_CONVERSABLE);
setObjVar(self, "convo.appearance", "object/mobile/space_comm_station_dantooine.iff" );
return SCRIPT_CONTINUE;
}
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
{
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
menuInfoData.setServerNotify (false);
setCondition (self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
trigger OnIncapacitated (obj_id killer)
{
clearCondition (self, CONDITION_CONVERSABLE);
detachScript (self, "conversation.station_dantooine");
return SCRIPT_CONTINUE;
}
// ======================================================================
// Script Triggers
// ======================================================================
//-- This function should move to base_class.java
boolean npcStartConversation(obj_id player, obj_id npc, string convoName, string_id greetingId, prose_package greetingProse, string_id[] responses)
{
Object[] objects = new Object[responses.length];
System.arraycopy(responses, 0, objects, 0, responses.length);
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
}
// ----------------------------------------------------------------------
trigger OnStartNpcConversation (obj_id player)
{
obj_id npc = self;
if (ai_lib.isInCombat (npc) || ai_lib.isInCombat (player))
return SCRIPT_OVERRIDE;
//-- [NOTE]
if (station_dantooine_condition_isTooFar (player, npc))
{
//-- NPC: I think you must have comm'd me by mistake... but if not, well then you're going to have to fly a bit closer than that. I can't help you with anything from this range!
string_id message = new string_id (c_stringFile, "s_1b90bd5");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedLandingMission (player, npc))
{
//-- NPC: Listen! You are going to have to do better than that. I am not going to be breaking Imperial law and letting ya land where ya want if my freighters are not returned.
string_id message = new string_id (c_stringFile, "s_d7c1b26f");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Let me give it another go.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_e141a0e8");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_75f22c97");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_54c04765");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_cc899cff");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 2);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedSmuggler (player, npc))
{
//-- NPC: I should have known that my plan wouldn't work out...nothing else ever does. It's this place...Dantooine...it's cursed, I tell ya.
string_id message = new string_id (c_stringFile, "s_21255661");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I will try again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_a14e5fb1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_14");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_16");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_18");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 5);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_hasFailedRepair (player, npc))
{
//-- NPC: Hey, I haven't gotten my stuff yet! What is the deal?
string_id message = new string_id (c_stringFile, "s_5ac08819");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I need to try again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_1e46e4ca");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_25");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_27");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_29");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 8);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedLokDelivery (player, npc))
{
//-- NPC: So, did you get my stuff from Lok for me?
string_id message = new string_id (c_stringFile, "s_53317e16");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I need to try that one again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_4ff8fc41");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_305434ff");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_37");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_39");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 11);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedCorelliaDelivery (player, npc))
{
//-- NPC: Did you managed to pick up that cargo from Corellia?
string_id message = new string_id (c_stringFile, "s_ea0c00c7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I need to try that one again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_43");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_47");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_49");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_51");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 14);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedNabooDelivery (player, npc))
{
//-- NPC: How did your trip to Naboo go?
string_id message = new string_id (c_stringFile, "s_be141863");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I need to try that one again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_56");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_60");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_62");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_64");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 17);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_failedTatooineDelivery (player, npc))
{
//-- NPC: Tatooine must be nice this time of year. Wish I was there...by the way did you make that pickup for me?
string_id message = new string_id (c_stringFile, "s_8a3087d7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I need to try that one again.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I want to land.
boolean hasResponse1 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse2 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I want to try something else.
boolean hasResponse3 = false;
if (station_dantooine_condition__defaultCondition (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_69");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_73");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_75");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_77");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 20);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_completedLokDelivery (player, npc))
{
station_dantooine_action_rewardLokPickup (player, npc);
//-- NPC: Excellent. I have been waiting for this. I hope your trip to Lok went smoothly. As promised here is your payment for a job well done.
string_id message = new string_id (c_stringFile, "s_1b496fe4");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_completedNabooDelivery (player, npc))
{
station_dantooine_action_rewardNabooPickup (player, npc);
//-- NPC: I have been waiting for this. I understand that Naboo is nice this time of year...wish I could be there instead of here. As promised here is your payment for a job well done.
string_id message = new string_id (c_stringFile, "s_60117ea4");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_completedTatooineDelivery (player, npc))
{
station_dantooine_action_rewardTatPickup (player, npc);
//-- NPC: I am surprised that Tatooine had anything...they are almost as remote as I am. Must be nice to have everyone flying around there. Oh well, here is your payment.
string_id message = new string_id (c_stringFile, "s_15716a1");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_completedCorelliaDelivery (player, npc))
{
station_dantooine_action_rewardCorelliaPickup (player, npc);
//-- NPC: I really hate Corellia. Always fully stocked...never having any problems getting goods. I bet those station owners are making a fortune. Here is your payment.
string_id message = new string_id (c_stringFile, "s_b16218ce");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_wonLandingMission (player, npc))
{
station_dantooine_action_rewardLanding (player, npc);
//-- NPC: You did it. Now at least I will be able to do get some supplies in here. You can land anywhere ya want. Oh and I suppose I can manage a slight monetary reward too. Thanks again, friend.
string_id message = new string_id (c_stringFile, "s_f7587a6");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_hasWonRepair (player, npc))
{
//-- NPC: Hey, nice job. The freighter showed up just a short time ago and those micro-processors will come in handy. Whenever you need repairs, I will fix your ship to full...for a price of course. Is there anything else you need?
string_id message = new string_id (c_stringFile, "s_1841fbde");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: It wasn't any problem.
boolean hasResponse0 = false;
if (station_dantooine_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_5076c164");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 28);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition_wonSmuggler (player, npc))
{
station_dantooine_action_rewardSmuggler (player, npc);
//-- NPC: Hey, look whose back and look at all of this nice stuff. You did good...real good. I cannot wait to take a little sniff of that brandy...I know I deserve it. Oh, yeah...ya need to be paid.
string_id message = new string_id (c_stringFile, "s_2ba33f79");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Anything else I can do for you?
boolean hasResponse0 = false;
if (station_dantooine_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_9553e32c");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 30);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (station_dantooine_condition__defaultCondition (player, npc))
{
//-- NPC: This is Dantooine Station. What can I do for ya?
string_id message = new string_id (c_stringFile, "s_73a08149");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I want to land on Dantooine.
boolean hasResponse0 = false;
if (station_dantooine_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I need repairs!
boolean hasResponse1 = false;
if (station_dantooine_condition_canAfford25 (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm looking for work.
boolean hasResponse2 = false;
if (station_dantooine_condition_canTakeMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: I need special landing permission.
boolean hasResponse3 = false;
if (station_dantooine_condition_rebelLanding (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: I am looking for some adventure.
boolean hasResponse4 = false;
if (station_dantooine_condition_canTakeSmuggler (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_93");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_126");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_a560e84c");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_7f5d5f9d");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_5f4f6d25");
utils.setScriptVar (player, "conversation.station_dantooine.branchId", 32);
npcStartConversation (player, npc, "station_dantooine", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
return SCRIPT_CONTINUE;
}
// ----------------------------------------------------------------------
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
{
if (conversationId != "station_dantooine")
return SCRIPT_CONTINUE;
obj_id npc = self;
int branchId = utils.getIntScriptVar (player, "conversation.station_dantooine.branchId");
if (branchId == 2 && station_dantooine_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 4 && station_dantooine_handleBranch4 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 5 && station_dantooine_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 7 && station_dantooine_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 8 && station_dantooine_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 10 && station_dantooine_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 11 && station_dantooine_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 13 && station_dantooine_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 14 && station_dantooine_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 16 && station_dantooine_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 17 && station_dantooine_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 19 && station_dantooine_handleBranch19 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 20 && station_dantooine_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 22 && station_dantooine_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 23 && station_dantooine_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 24 && station_dantooine_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 25 && station_dantooine_handleBranch25 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 26 && station_dantooine_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 28 && station_dantooine_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 29 && station_dantooine_handleBranch29 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 30 && station_dantooine_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 31 && station_dantooine_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 32 && station_dantooine_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 33 && station_dantooine_handleBranch33 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 34 && station_dantooine_handleBranch34 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 35 && station_dantooine_handleBranch35 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 38 && station_dantooine_handleBranch38 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 41 && station_dantooine_handleBranch41 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 45 && station_dantooine_handleBranch45 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 48 && station_dantooine_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 49 && station_dantooine_handleBranch49 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 51 && station_dantooine_handleBranch51 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 53 && station_dantooine_handleBranch53 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 54 && station_dantooine_handleBranch54 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 57 && station_dantooine_handleBranch57 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 60 && station_dantooine_handleBranch60 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 63 && station_dantooine_handleBranch63 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 65 && station_dantooine_handleBranch65 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 67 && station_dantooine_handleBranch67 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 71 && station_dantooine_handleBranch71 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 72 && station_dantooine_handleBranch72 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 85 && station_dantooine_handleBranch85 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 87 && station_dantooine_handleBranch87 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 88 && station_dantooine_handleBranch88 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 94 && station_dantooine_handleBranch94 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 98 && station_dantooine_handleBranch98 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 99 && station_dantooine_handleBranch99 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 100 && station_dantooine_handleBranch100 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 105 && station_dantooine_handleBranch105 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 106 && station_dantooine_handleBranch106 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 107 && station_dantooine_handleBranch107 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 108 && station_dantooine_handleBranch108 (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_dantooine.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================