/* * 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)); }