void main() { if (GetLocalInt(OBJECT_SELF,"nDis")!=2) { int nIdx=0; object oDis=GetObjectByTag("jw_und3dis",nIdx); while (GetIsObjectValid(oDis)) { ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,EffectAreaOfEffect(AOE_MOB_TYRANT_FOG,"jw_dunsmoke_hb","jw_dunsmoke_hb","jw_empty_script"),GetLocation(oDis)); nIdx++; oDis=GetObjectByTag("jw_und3dis",nIdx); } SetLocalInt(OBJECT_SELF,"nDis",2); } }