Initial commit
Initial commit [v9.7]
This commit is contained in:
87
_module/nss/cnv_tp_tfortrss.nss
Normal file
87
_module/nss/cnv_tp_tfortrss.nss
Normal file
@@ -0,0 +1,87 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
int nInt;
|
||||
int nHench;
|
||||
object oHench;
|
||||
object oSpawn;
|
||||
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
// Find the location to which to teleport.
|
||||
oTarget = GetWaypointByTag("WP_Stlth_Olnd");
|
||||
|
||||
// Teleport the PC.
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
AssignCommand(oPC, JumpToObject(oTarget));
|
||||
|
||||
// Also teleport associates.
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC);
|
||||
AssignCommand(oHench, ClearAllActions());
|
||||
AssignCommand(oHench, JumpToObject(oTarget));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC);
|
||||
AssignCommand(oHench, ClearAllActions());
|
||||
AssignCommand(oHench, JumpToObject(oTarget));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC);
|
||||
AssignCommand(oHench, ClearAllActions());
|
||||
AssignCommand(oHench, JumpToObject(oTarget));
|
||||
oHench = GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC);
|
||||
AssignCommand(oHench, ClearAllActions());
|
||||
AssignCommand(oHench, JumpToObject(oTarget));
|
||||
|
||||
// Support for multiple henchmen (includes horses).
|
||||
nHench = 1;
|
||||
oHench = GetHenchman(oPC, 1);
|
||||
while ( oHench != OBJECT_INVALID )
|
||||
{
|
||||
AssignCommand(oHench, ClearAllActions());
|
||||
AssignCommand(oHench, JumpToObject(oTarget));
|
||||
// Next henchman.
|
||||
oHench = GetHenchman(oPC, ++nHench);
|
||||
}
|
||||
|
||||
// Have the PC say something.
|
||||
DelayCommand(2.0, AssignCommand(oPC, SpeakString("Remember to level up the Twain!")));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel1");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel2");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel3");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel4");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel5");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_olsentinel6");
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "olsentinel", GetLocation(oTarget));
|
||||
|
||||
// Destroy an object (not fully effective until this script ends).
|
||||
DelayCommand(2.1, DestroyObject(GetObjectByTag("mousrp1")));
|
||||
|
||||
oTarget = GetObjectByTag("Ellard2");
|
||||
DestroyObject(oTarget, 4.0);
|
||||
}
|
||||
Reference in New Issue
Block a user