//::////////////////////////////////////////////////// //:: fall_vampes_port //:: Portal stone and key /* For when you use the portal */ //::////////////////////////////////////////////////// //:: Created By: r3plica //:: Created On: 05/01/2005 //::////////////////////////////////////////////////// void main() { location lTarget; object oTarget; object oPC = GetPCSpeaker(); //Create the visual portion of the effect effect eVis = EffectVisualEffect(VFX_IMP_GLOBE_USE); //Create the visual portion of the effect effect eVis2 = EffectVisualEffect(VFX_IMP_SPELL_MANTLE_USE); oTarget = GetWaypointByTag("WP_FALLEN_PORT"); lTarget = GetLocation(oTarget); if (!GetIsPC(oPC)) return; AssignCommand(oPC, ClearAllActions()); if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return; //Apply the visual effect to the target ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC); //Apply the visual effect to the target ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis2, oPC); AssignCommand(oPC, ActionJumpToLocation(lTarget)); }