local spawn_creat = {} --- Пандора spawn_creat[1] = {x = 714, y = 2944, z = 479} spawn_creat[2] = {x = 1136, y = 4427, z = 947} spawn_creat[3] = {x = 1200, y = 2824, z = 522} spawn_creat[4] = {x = 281, y = 2917, z = 753} --- Лес spawn_creat[5] = {x = 1171, y = 4442, z = 568} spawn_creat[6] = {x = 1708, y = 3950, z = 1428} spawn_creat[7] = {x = 2491, y = 4199, z = 1884} spawn_creat[8] = {x = 2640, y = 4859, z = 1541} --- Сноу spawn_creat[9] = {x = 1998, y = 10030, z = 988} spawn_creat[10] = {x = 1180, y = 9202, z = 3069} spawn_creat[11] = {x = 2121, y = 8976, z = 1008} spawn_creat[12] = {x = 1521, y = 12703, z = 3225} --- Южка spawn_creat[13] = {x = 914, y = 13019, z = 1342} spawn_creat[14] = {x = 2398, y = 3841, z = 1664} spawn_creat[15] = {x = 2051, y = 5632, z = 2290} spawn_creat[16] = {x = 2415, y = 3658, z = 1660} --- Долина грома spawn_creat[17] = {x = 1088, y = 16778, z = 264} spawn_creat[18] = {x = 423, y = 13928, z = 486} spawn_creat[19] = {x = 479, y = 14495, z = 944} spawn_creat[20] = {x = 846, y = 20573, z = 1131} --- Гора смерти spawn_creat[21] = {x = 799, y = 9480, z = 542} spawn_creat[22] = {x = 2693, y = 9988, z = 2207} spawn_creat[23] = {x = 2029, y = 10964, z = 2612} spawn_creat[24] = {x = 1110, y = 4411, z = 1220} function cEvent_OnStart(ActID) local posit1 = math.random(1,24) local monsters = {} monsters[1] = {3041154} monsters[2] = {3041155} monsters[3] = {3041156} monsters[4] = {3041157} monsters[5] = {3041158} monsters[6] = {3041159} monsters[7] = {3041160} local r = math.random(1,7) if posit1 >= 1 and posit1 <= 4 then ---Пандора map.MapCreateColCreature(3424073256, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 5 and posit1 <= 8 then ---Лес map.MapCreateColCreature(3424072488, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 9 and posit1 <= 12 then ---Сноу map.MapCreateColCreature(3424071720, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 13 and posit1 <= 16 then ---Южка map.MapCreateColCreature(3424072232, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 17 and posit1 <= 20 then ---Долина грома map.MapCreateColCreature(3424071976, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 21 and posit1 <= 24 then ---Гора смерти map.MapCreateColCreature(3424075048, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") end local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 300099) msg.DispatchBroadcast(MsgID,-1,-1,-1) end aux.RegisterActEvent(1123, 2, "cEvent_OnStart") aux.RegisterActEvent(1124, 2, "cEvent_OnStart") function cEvent_Timer(actID) local Min = tonumber(os.date("%M")) if Min == 00 then local posit1 = math.random(1,24) local monsters = {} monsters[1] = {3041154} monsters[2] = {3041155} monsters[3] = {3041156} monsters[4] = {3041157} monsters[5] = {3041158} monsters[6] = {3041159} monsters[7] = {3041160} local r = math.random(1,6) if posit1 >= 1 and posit1 <= 4 then ---Пандора map.MapCreateColCreature(3424073256, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 5 and posit1 <= 8 then ---Лес map.MapCreateColCreature(3424072488, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 9 and posit1 <= 12 then ---Сноу map.MapCreateColCreature(3424071720, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 13 and posit1 <= 16 then ---Южка map.MapCreateColCreature(3424072232, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 17 and posit1 <= 20 then ---Долина грома map.MapCreateColCreature(3424071976, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") elseif posit1 >= 21 and posit1 <= 24 then ---Гора смерти map.MapCreateColCreature(3424075048, -1, monsters[r][1], spawn_creat[posit1].x, spawn_creat[posit1].y, spawn_creat[posit1].z, 1, "") end local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 300099) msg.DispatchBroadcast(MsgID,-1,-1,-1) end end aux.RegisterActEvent(1123, 4, "cEvent_Timer") aux.RegisterActEvent(1124, 4, "cEvent_Timer")