LoD_PRC8/_module/nss/tb_srrunaway.nss

39 lines
760 B
Plaintext
Raw Normal View History

2023-09-21 21:20:34 -04:00
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));
}