beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { SetNumLives(1); SetVar(1,0); SetVar(2,Rnd()/2); SetVar(3,Rnd()/2); SetVar(4,0); EndFrame(); goto Start; } EndFrame(); goto Wait; label Start: SetVar(0,Rnd()); ExcTargetType(0x2); IncTargetType(0x1); if (GetVar(0) > 125) { IncludeGTarget (12); } else { IncludeGTarget (12); //IncludeUTarget (0x7401); } if (UnitDead()) { if (GetKiller() == 0x7401 && GetGlobalVar(2) != 1 && GetGlobalVar(5) == 1) { TriggerMessage(47,h47,0x783b); SetGlobalVar(2,1); } SetVar (1, GetTime()+50); label TimeWait: if (GetVar(1) > GetTime() || (GetGlobalVar(4) == 3 && GetGlobalVar(3) == 0)) { EndFrame(); goto TimeWait; } SetVar(1,0); SpawnUnit(); EndFrame(); goto Wait; } if (GetFollowMode() == 3) { SetFollowRange(1000); BreakWptsOnAttack(); } if (GetGlobalVar(3) == 3 || GetGlobalVar(3) == 10) { SelectWeapons(0,0,0); SetFollowWaypoint(132,0,0); ExcTargetType(0xffffffff); } EndFrame(); goto Start; label End: EndFrame(); goto End; endscript; $