void main() { if (GetLocalInt(OBJECT_SELF,"NW_L_AMION")==1) { return; } int iSpell = GetLastSpell(); if (!GetLastSpellHarmful()) return; // Check if a fire-spell was used if (iSpell == SPELL_BURNING_HANDS || iSpell == SPELL_FIRE_STORM || iSpell == SPELL_FIREBALL || iSpell == SPELL_DELAYED_BLAST_FIREBALL || iSpell == SPELL_SHADES_FIREBALL || iSpell == SPELL_SHADES_WALL_OF_FIRE || iSpell == SPELL_WALL_OF_FIRE || iSpell == SPELL_FLAME_ARROW || iSpell == SPELL_FLAME_LASH || iSpell == SPELL_FLAME_STRIKE || iSpell == SPELL_FLARE || iSpell == SPELL_INCENDIARY_CLOUD || iSpell == SPELL_INFERNO | iSpell == SPELL_METEOR_SWARM) { effect eFire=EffectVisualEffect(VFX_FNF_FIREBALL); DelayCommand(0.4,ApplyEffectToObject(DURATION_TYPE_INSTANT,eFire,OBJECT_SELF)); PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE); SetLocalInt(OBJECT_SELF,"NW_L_AMION",1); object oOtherBrazier=GetNearestObjectByTag("jw_mos_braz",OBJECT_SELF,1); if (GetLocalInt(oOtherBrazier,"NW_L_AMION")==1) { object oDoor=GetObjectByTag("jw_moseley_door"); AssignCommand(oDoor,SetLocked(oDoor,FALSE)); AssignCommand(oDoor,ActionOpenDoor(oDoor)); PlaySound("as_cv_brickscrp1"); } DelayCommand(0.4,SetPlaceableIllumination(OBJECT_SELF, TRUE)); DelayCommand(0.5,RecomputeStaticLighting(GetArea(OBJECT_SELF))); } }