void main() { object oPC = GetLastUsedBy(); if(!GetIsPC(oPC)) { return; } object oTarget = oPC; int nInt = GetObjectType(oTarget); if(nInt != OBJECT_TYPE_WAYPOINT) { ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WORD), oTarget); } else { ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WORD), GetLocation(oTarget)); } AssignCommand(oPC, ClearAllActions()); oTarget = GetWaypointByTag("tb_GorgonPortals"); location lTarget = GetLocation(oTarget); if(GetAreaFromLocation(lTarget)==OBJECT_INVALID) { return; } AssignCommand(oPC, ActionJumpToLocation(lTarget)); }