beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcludeGTarget (2); SetFollowUnit (trig3, 1, 500); SetFollowRange (900); SetVar(0,1); SetVar(1, GetTime()+100); SetVar(3,0); EndFrame(); goto TargetAI; } EndFrame(); goto Wait; label TargetAI: if (GetVar(0) == 1 && GetVar(3) == 0) { IncludeUTarget (Tgt_A_1); SetVar(3,1); } if (GetVar(0) == 2 && GetVar(3) == 0) { IncludeUTarget (Tgt_A_2); SetVar(3,1); } if (GetVar(0) == 3 && GetVar(3) == 0) { IncludeUTarget (Tgt_A_3); SetVar(3,1); } if (GetVar(0) == 4 && GetVar(3) == 0) { IncludeUTarget (Tgt_A_4); SetVar(3,1); } if (GetVar(1) < GetTime()) { IncVar(0); SetVar (1, GetTime()+200); SetVar(3,0); if (GetVar(0) >= 5) SetVar(0,1); } EndFrame(); goto TargetAI; //IncTargetType (0x1001); label End: EndFrame(); goto End; endscript; $