Rune_PRC8/_module/nss/kaj_matuse.nss

16 lines
399 B
Plaintext
Raw Permalink Normal View History

2024-09-13 09:10:39 -04:00
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "Res11key")== OBJECT_INVALID)
return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("fromKajMat");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}