Initial Upload
Initial Upload
This commit is contained in:
38
_module/nss/tb_srrunaway.nss
Normal file
38
_module/nss/tb_srrunaway.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user