#include "nw_i0_tool" void main() { // Give those who destroy the altar some XP object oTarget; oTarget = GetObjectByTag("BlackZombie"); //Visual effects can't be applied to waypoints, so if it is a WP //apply to the WP's location instead int nInt; nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES), GetLocation(oTarget)); RewardPartyXP(500, GetLastDamager()); DestroyObject(oTarget, 2.5); }