PoA_PRC8/module/nss/portguildhome.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

26 lines
536 B
Plaintext

//Created by Genisys 5/20/08
location lTarget;
object oTarget;
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
//If the PC is a member of the guild send them to the guild..
if (GetItemPossessedBy(oPC, "guildpass")!= OBJECT_INVALID)
{
oTarget = GetWaypointByTag("guildway");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}
}