mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
255 lines
6.1 KiB
Plaintext
255 lines
6.1 KiB
Plaintext
include library.create;
|
|
include library.quests;
|
|
|
|
const string msg = "theme_park_nym/messages";
|
|
|
|
trigger OnAttach()
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler finishDroidQuest ()
|
|
{
|
|
string_id droidMessage = new string_id (msg, "acquired_memory");
|
|
sendSystemMessage (self, droidMessage);
|
|
setObjVar (self, "nym.kole.droid", 1);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler finishGasQuest ()
|
|
{
|
|
string_id gasMessage = new string_id (msg, "acquired_gas");
|
|
sendSystemMessage (self, gasMessage);
|
|
setObjVar (self, "nym.jinkins.gotgas", 1);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler gotImggcu()
|
|
{
|
|
setObjVar (self, "nym.nym.imggcu", 1);
|
|
if (hasObjVar (self, "nym.nym.harddrive"))
|
|
{
|
|
string_id haveAll = new string_id (msg, "all_nym_needed");
|
|
sendSystemMessage (self, haveAll);
|
|
}
|
|
else
|
|
{
|
|
debugSpeakMsg (self, "GOT IMGGCU");
|
|
string_id imggcu = new string_id (msg, "acquired_imggcu");
|
|
sendSystemMessage (self, imggcu);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler gotHarddrive()
|
|
{
|
|
setObjVar (self, "nym.nym.harddrive", 1);
|
|
if (hasObjVar (self, "nym.nym.imggcu"))
|
|
{
|
|
string_id haveAll = new string_id (msg, "all_nym_needed");
|
|
sendSystemMessage (self, haveAll);
|
|
}
|
|
else
|
|
{
|
|
string_id hardDrive = new string_id (msg, "acquired_hard_drive");
|
|
sendSystemMessage (self, hardDrive);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/**** JINKINS ****/
|
|
messageHandler goSeeGuy ()
|
|
{
|
|
obj_id waypointToGuy = getObjIdObjVar (self, "nym.jinkins.guypoint");
|
|
|
|
if (waypointToGuy == null)
|
|
{
|
|
location guy = new location (540.4f, 12f, 5091.18f, "lok", null);
|
|
|
|
string questID = "jinkinsQuest";
|
|
|
|
string target = "The Guy";
|
|
string CONVO = "convo";
|
|
string entry = "entry";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", guy, 2, target, CONVO, entry);
|
|
//obj_id theGuy = create.object ("commoner_human_male", guy);
|
|
//attachScript (theGuy, "theme_park.nym.pirate_engineer");
|
|
setObjVar (self, "nym.jinkins.guypoint", waypoint);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/**** JINKINS ****/
|
|
messageHandler goToCave()
|
|
{
|
|
|
|
obj_id waypointToCave = getObjIdObjVar (self, "nym.jinkins.cavepoint");
|
|
|
|
if (waypointToCave == null)
|
|
{
|
|
location cave = new location (-3027, 0, -681, "lok", null);
|
|
|
|
string questID = "jinkinsQuest";
|
|
|
|
string target = "Droid Cave";
|
|
string CONVO = "convo2";
|
|
string entry = "entry2";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", cave, 2, target, CONVO, entry);
|
|
setObjVar (self, "nym.jinkins.cavepoint", waypoint);
|
|
|
|
//obj_id droidCave = createObject ("object/building/lok/cave_03_nym_pirates.iff", cave);
|
|
//attachScript(droidCave, "theme_park.nym.droid_cave");
|
|
|
|
//setObjVar (droidCave, "player", self);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
/**** KOLE ****/
|
|
messageHandler goSeeImperial ()
|
|
{
|
|
obj_id waypointToGuy = getObjIdObjVar (self, "nym.kole.officerPoint");
|
|
|
|
if (waypointToGuy == null)
|
|
{
|
|
|
|
location guy = new location (469.3f, 12f, 5020.83f, "lok", null);
|
|
|
|
string questID = "koleQuest";
|
|
|
|
string target = "Target Officer";
|
|
string CONVO = "convoOfficer";
|
|
string entry = "entryOfficer";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", guy, 2, target, CONVO, entry);
|
|
setObjVar (self, "nym.kole.officerPoint", waypoint);
|
|
|
|
//obj_id theGuy = create.object ("commoner_human_male", guy);
|
|
//attachScript (theGuy, "theme_park.nym.imperial_bribe");
|
|
|
|
|
|
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/**** KOLE ****/
|
|
messageHandler goGetGas()
|
|
{
|
|
|
|
obj_id waypointToCave = getObjIdObjVar (self, "nym.kole.gasPoint");
|
|
|
|
if (waypointToCave == null)
|
|
{
|
|
location cave = new location (6467, 0, 3885, "lok", null);
|
|
|
|
string questID = "koleQuest";
|
|
|
|
string target = "Target Gas";
|
|
string CONVO = "convo Gas";
|
|
string entry = "entry Gas";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", cave, 2, target, CONVO, entry);
|
|
setObjVar (self, "nym.kole.gasPoint", waypoint);
|
|
|
|
//obj_id gasCave = createObject ("object/building/lok/mining_cave_01.iff", cave);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnWaypointDestroyed(obj_id waypoint)
|
|
{
|
|
obj_id kolecave = getObjIdObjVar (self, "nym.kole.cavepoint");
|
|
obj_id koleguy = getObjIdObjVar (self, "nym.kole.guypoint");
|
|
obj_id jinkinsgas = getObjIdObjVar (self, "nym.jinkins.gasPoint");
|
|
obj_id jinkinsguy = getObjIdObjVar (self, "nym.jinkins.officerPoint");
|
|
obj_id nymguy = getObjIdObjVar (self, "nym.nym.retiredGuy");
|
|
obj_id nymlab = getObjIdObjVar (self, "nym.nym.researchlab");
|
|
|
|
|
|
if (waypoint == kolecave)
|
|
{
|
|
removeObjVar (self, "nym.kole.cavepoint");
|
|
}
|
|
|
|
if (waypoint == koleguy)
|
|
{
|
|
removeObjVar (self, "nym.kole.guypoint");
|
|
}
|
|
|
|
if (waypoint == jinkinsgas)
|
|
{
|
|
removeObjVar (self, "nym.jinkins.gasPoint");
|
|
}
|
|
|
|
if (waypoint == jinkinsguy)
|
|
{
|
|
removeObjVar (self, "nym.jinkins.officerPoint");
|
|
}
|
|
|
|
if (waypoint == nymlab)
|
|
{
|
|
removeObjVar (self, "nym.nym.researchlab");
|
|
}
|
|
|
|
if (waypoint == nymguy)
|
|
{
|
|
removeObjVar (self, "nym.nym.retiredGuy");
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/**** NYM ****/
|
|
messageHandler goSeeRetired()
|
|
{
|
|
obj_id waypointToGuy = getObjIdObjVar (self, "nym.nym.retiredGuy");
|
|
|
|
if (waypointToGuy == null)
|
|
{
|
|
location guy = new location (540.4f, 12f, 5091.18f, "lok", null);
|
|
|
|
string questID = "nymQuest";
|
|
|
|
string target = "Retired Imperial Officer";
|
|
string CONVO = "convoOfficer";
|
|
string entry = "entryOfficer";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", guy, 2, target, CONVO, entry);
|
|
setObjVar (self, "nym.nym.retiredGuy", waypoint);
|
|
|
|
//obj_id theGuy = create.object ("commoner_human_male", guy);
|
|
//attachScript (theGuy, "theme_park.nym.nym_contact");
|
|
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/**** NYM ****/
|
|
messageHandler goResearchLab()
|
|
{
|
|
obj_id waypointToGuy = getObjIdObjVar (self, "nym.nym.researchlab");
|
|
|
|
if (waypointToGuy == null)
|
|
{
|
|
location bunker = new location (902, 0, -4193, "lok", null);
|
|
|
|
string questID = "nymQuest";
|
|
|
|
string target = "Research Lab";
|
|
string CONVO = "convoOfficer";
|
|
string entry = "entryOfficer";
|
|
|
|
obj_id waypoint = quests.addThemeParkWaypoint( self, questID, "quest", bunker, 2, target, CONVO, entry);
|
|
setObjVar (self, "nym.nym.researchlab", waypoint);
|
|
|
|
//obj_id researchLab = createObject ("object/building/general/lok_nymstheme_mercenary_bunker.iff", guy);
|
|
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
} |