PoA_PRC8/_module/nss/guild_door.nss

25 lines
458 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//Put this script OnClick or OnFailToOpen
void main()
{
object oPC = GetClickingObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "guildstone")== OBJECT_INVALID)
return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("guildentrance");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}