beginscript; label Wait: if (GetGlobalVar(3) >= 1 && PlayerInRange(1000)) { SetVar(0, GetTime()+50); SetVar(4, GetTime()+50); EndFrame(); goto Check; } EndFrame(); goto Wait; label Check: if (((OtherUnitInRange(Jkl_Gr6_01_Scr,400) && OtherUnitDead(Jkl_Gr6_01_Scr) != 1) || (OtherUnitInRange(Jkl_Gr6_02_Scr,400) && OtherUnitDead(Jkl_Gr6_02_Scr) != 1) || (OtherUnitInRange(Jkl_Gr6_03_Scr,400) && OtherUnitDead(Jkl_Gr6_03_Scr) != 1) || (OtherUnitInRange(Jkl_Gr6_04_Scr,400) && OtherUnitDead(Jkl_Gr6_04_Scr) != 1)) && GetVar(0) < GetTime() && GetVar(1) <= 4) { TriggerMessage(48,h48,0x783b); SetVar(0, GetTime()+150); IncVar(1); } if ((OtherUnitInArea(Drg_Gr5_01_Scr, -1743, -563, 600) || OtherUnitInArea(Drg_Gr5_02_Scr, -1743, -563, 600)) && GetVar(4) < GetTime() && GetVar(3) <= 4) { TriggerMessage(36,h36,0x783b); SetVar(4, GetTime()+300); IncVar(3); } EndFrame(); goto Check; label End: EndFrame(); goto End; endscript; $