void main() { object oPC = GetPCSpeaker(); object oCaster; oCaster = OBJECT_SELF; object oTarget; oTarget = oPC; AssignCommand(oCaster, ActionCastFakeSpellAtObject(SPELL_RAISE_DEAD, oTarget, PROJECTILE_PATH_TYPE_DEFAULT)); location lTarget; oTarget = GetWaypointByTag("trin_home_01"); lTarget = GetLocation(oTarget); if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return; AssignCommand(oPC, ClearAllActions()); DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget))); oTarget = oPC; int nInt; nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1), GetLocation(oTarget)); }