LoD_PRC8/_module/nss/to_stormwind.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

29 lines
676 B
Plaintext

//:://////////////////////////////////////////////////
//:: to_stormwind
//:: Drake Portal to Stormwind
/*
Protal to stormwind
*/
//:://////////////////////////////////////////////////
//:: Created By: r3plica
//:: Created On: 21/10/2004
//:://////////////////////////////////////////////////
void main()
{
location lTarget;
object oTarget;
object oPC = GetLastUsedBy();
oTarget = GetWaypointByTag("WP_DEFAULT_SPAWN");
lTarget = GetLocation(oTarget);
if (!GetIsPC(oPC)) return;
AssignCommand(oPC, ClearAllActions());
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}