39 lines
760 B
Plaintext
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));
|
||
|
}
|