25 lines
454 B
Plaintext
25 lines
454 B
Plaintext
|
//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("guildway5");
|
||
|
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
|
||
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||
|
|
||
|
}
|