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

39 lines
760 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
if(!GetIsPC(oPC))
{
return;
}
object oItem = GetItemPossessedBy(oPC, "EuryalesDestiny");
if(GetIsObjectValid(oItem))
{
DestroyObject(oItem);
}
oItem = GetItemPossessedBy(oPC, "SthennosHeart");
if(GetIsObjectValid(oItem))
{
DestroyObject(oItem);
}
oItem = GetItemPossessedBy(oPC, "GorganasBlade");
if(GetIsObjectValid(oItem))
{
DestroyObject(oItem);
}
object oTarget = GetWaypointByTag("tb_GorgonPortals");
location lTarget = GetLocation(oTarget);
if(GetAreaFromLocation(lTarget)==OBJECT_INVALID)
{
return;
}
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}