void main() { object a = GetEnteringObject(); if (GetIsPC(a) || (GetIsDM(a))){ if (GetLocalInt(GetModule(), "hellfog") != 2){ location hellfog1 = GetLocation(GetWaypointByTag("hellfog1")); location hellfog2 = GetLocation(GetWaypointByTag("hellfog2")); ApplyEffectAtLocation( DURATION_TYPE_PERMANENT, EffectAreaOfEffect(AOE_PER_FOGFIRE, "hellfog"),hellfog1); ApplyEffectAtLocation( DURATION_TYPE_PERMANENT, EffectAreaOfEffect(AOE_PER_FOGFIRE, "hellfog"),hellfog2); DelayCommand(1.0, SetLocalInt(GetModule(), "hellfog", 2)); } } }