Alangara_PRC8/_module/nss/ke_jesandra_ente.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

39 lines
922 B
Plaintext

/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
*/
// Put this script OnEnter.
#include "x0_i0_partywide"
void main()
{
object oTarget;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Abort if the PC's party does not have the item "jesandrakey".
if ( !GetIsItemPossessedByParty(oPC, "jesandrakey") )
{
FloatingTextStringOnCreature("You lack the key to enter the house of Jesandra the Brass.", oPC);
return;
}
// Find the location to which to teleport.
oTarget = GetWaypointByTag("wp_jesandra");
// Teleport the PC.
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToObject(oTarget));
}