beginscript; SetVar(0,7255); // x SetVar(1,6486); // y SetVar(2,100); // Rad SetVar(3,0); // counter label WaitForJaks: if (OtherUnitInArea (Jkl_G01_01_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_02_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_03_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_04_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_05_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_06_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_07_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_08_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_09_Scr,GetVar(0),GetVar(1),GetVar(2)) || OtherUnitInArea (Jkl_G01_10_Scr,GetVar(0),GetVar(1),GetVar(2))) { SetGlobalVar(0,4); EndFrame(); goto DespawnUnits; } EndFrame(); goto WaitForJaks; label DespawnUnits: if (OtherUnitDead(Jkl_G01_01_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_01_Scr); //TeleportOtherUnit(Jkl_G02_01_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_02_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_02_Scr); //TeleportOtherUnit(Jkl_G02_02_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_03_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_03_Scr); //TeleportOtherUnit(Jkl_G02_03_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_04_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_04_Scr); //TeleportOtherUnit(Jkl_G02_04_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_05_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_05_Scr); //TeleportOtherUnit(Jkl_G02_05_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_06_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_06_Scr); //TeleportOtherUnit(Jkl_G02_06_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_07_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_07_Scr); //TeleportOtherUnit(Jkl_G02_07_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_08_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_08_Scr); //TeleportOtherUnit(Jkl_G02_08_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_09_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_09_Scr); //TeleportOtherUnit(Jkl_G02_09_Scr, TPort_01_Scr, 0, 0); IncVar(3); } if (OtherUnitDead(Jkl_G01_10_Scr) != 1) { //DespawnOtherUnit(Jkl_G01_10_Scr); //TeleportOtherUnit(Jkl_G02_10_Scr, TPort_01_Scr, 0, 0); IncVar(3); } SetVar (4, GetTime()+600); SetVar (5, GetTime()+300); label TimeWait: if (GetVar(4) < GetTime() || ( OtherUnitDead(BFG_G01_05_Scr) && OtherUnitDead(BFG_G01_06_Scr) && OtherUnitDead(Jep_G02_01_Scr) && GetVar(5) < GetTime() )) { EndFrame(); goto Respawn; } EndFrame(); goto TimeWait; label Respawn: SetGlobalVar(1,1); //ChangeCamera(0x801,50,70); EndFrame(); goto End; label End: EndFrame(); goto End; endscript; $