local JOKER_EVENT = { [01] = { -- DRAGONS [BONEBROOK] [00] = { POS_X = {x=3499, y=1100, z=7}, POS_Y = {x=3583, y=1162, z=7}, TITLE = "Solo Negro de Bonebrook", }, [01] = {POS = {x=3518, y=1126, z=7}}, [02] = {POS = {x=3522, y=1138, z=7}}, [03] = {POS = {x=3516, y=1147, z=7}}, [04] = {POS = {x=3528, y=1120, z=7}}, [05] = {POS = {x=3527, y=1126, z=7}}, [06] = {POS = {x=3529, y=1133, z=7}}, [07] = {POS = {x=3530, y=1139, z=7}}, [08] = {POS = {x=3528, y=1146, z=7}}, [09] = {POS = {x=3533, y=1125, z=7}}, [10] = {POS = {x=3536, y=1131, z=7}}, [11] = {POS = {x=3537, y=1142, z=7}}, [12] = {POS = {x=3541, y=1118, z=7}}, [13] = {POS = {x=3543, y=1127, z=7}}, [14] = {POS = {x=3544, y=1134, z=7}}, [15] = {POS = {x=3544, y=1146, z=7}}, [16] = {POS = {x=3546, y=1143, z=7}}, [17] = {POS = {x=3552, y=1138, z=7}}, [18] = {POS = {x=3550, y=1132, z=7}}, [19] = {POS = {x=3549, y=1125, z=7}}, [20] = {POS = {x=3550, y=1119, z=7}}, [21] = {POS = {x=3555, y=1129, z=7}}, [22] = {POS = {x=3561, y=1121, z=7}}, [23] = {POS = {x=3560, y=1125, z=7}}, [24] = {POS = {x=3559, y=1133, z=7}}, [25] = {POS = {x=3565, y=1134, z=7}}, }, [02] = { -- DESERTO [RIVERMINE] [00] = { POS_X = {x=3691, y=1183, z=7}, POS_Y = {x=3790, y=1253, z=7}, TITLE = "Deserto Escaldante de Rivermine", }, [01] = {POS = {x=3706, y=1208, z=7}}, [02] = {POS = {x=3707, y=1222, z=7}}, [03] = {POS = {x=3718, y=1202, z=7}}, [04] = {POS = {x=3717, y=1208, z=7}}, [05] = {POS = {x=3714, y=1215, z=7}}, [06] = {POS = {x=3718, y=1226, z=7}}, [07] = {POS = {x=3718, y=1231, z=7}}, [08] = {POS = {x=3724, y=1196, z=7}}, [09] = {POS = {x=3723, y=1216, z=7}}, [10] = {POS = {x=3727, y=1230, z=7}}, [11] = {POS = {x=3730, y=1223, z=7}}, [12] = {POS = {x=3729, y=1206, z=7}}, [13] = {POS = {x=3729, y=1195, z=7}}, [14] = {POS = {x=3734, y=1200, z=7}}, [15] = {POS = {x=3737, y=1193, z=7}}, [16] = {POS = {x=3738, y=1204, z=7}}, [17] = {POS = {x=3739, y=1212, z=7}}, [18] = {POS = {x=3738, y=1225, z=7}}, [19] = {POS = {x=3738, y=1232, z=7}}, [20] = {POS = {x=3744, y=1205, z=7}}, [21] = {POS = {x=3746, y=1219, z=7}}, [22] = {POS = {x=3749, y=1200, z=7}}, [23] = {POS = {x=3749, y=1211, z=7}}, [24] = {POS = {x=3751, y=1230, z=7}}, [25] = {POS = {x=3753, y=1221, z=7}}, }, [03] = { -- CAMPOS VERDES [BASE PREMIUM] [00] = { POS_X = {x=3682, y=1572, z=7}, POS_Y = {x=3762, y=1630, z=7}, TITLE = "Campos Verdejantes da Base Premium", }, [01] = {POS = {x=3697, y=1595, z=7}}, [02] = {POS = {x=3699, y=1601, z=7}}, [03] = {POS = {x=3700, y=1613, z=7}}, [04] = {POS = {x=3703, y=1588, z=7}}, [05] = {POS = {x=3704, y=1609, z=7}}, [06] = {POS = {x=3705, y=1582, z=7}}, [07] = {POS = {x=3707, y=1599, z=7}}, [08] = {POS = {x=3709, y=1591, z=7}}, [09] = {POS = {x=3709, y=1615, z=7}}, [10] = {POS = {x=3713, y=1584, z=7}}, [11] = {POS = {x=3714, y=1592, z=7}}, [12] = {POS = {x=3714, y=1606, z=7}}, [13] = {POS = {x=3717, y=1583, z=7}}, [14] = {POS = {x=3717, y=1596, z=7}}, [15] = {POS = {x=3720, y=1587, z=7}}, [16] = {POS = {x=3720, y=1610, z=7}}, [17] = {POS = {x=3721, y=1605, z=7}}, [18] = {POS = {x=3724, y=1592, z=7}}, [19] = {POS = {x=3727, y=1586, z=7}}, [20] = {POS = {x=3727, y=1606, z=7}}, [21] = {POS = {x=3729, y=1613, z=7}}, [22] = {POS = {x=3731, y=1596, z=7}}, [23] = {POS = {x=3732, y=1591, z=7}}, [24] = {POS = {x=3734, y=1601, z=7}}, [25] = {POS = {x=3734, y=1609, z=7}}, }, } local function onRemoveMonsterEvent() for X = 01, #JOKER_EVENT do local from = JOKER_EVENT[X][00].POS_X local to = JOKER_EVENT[X][00].POS_Y for A = from.x, to.x do for B = from.y, to.y do for C = from.z, to.z do local tile = Tile(A, B, C) local creature = tile:getTopCreature() if creature and creature:isMonster() and creature:getName() == "Joker" then doRemoveCreature(creature:getId()) end end end end end end function onThink(interval) if Game.getStorageValue(_GLOBAL_RANDOM.DAILY_EVENTS.STORAGE) == 01 then -- JOKER local onPlaceRaids = math.random(01, #JOKER_EVENT) onRemoveMonsterEvent() for X = 01, #JOKER_EVENT[onPlaceRaids] do Game.createMonster("Joker", JOKER_EVENT[onPlaceRaids][X].POS) end Game.broadcastMessage("Invasões de Joker em [ " ..JOKER_EVENT[onPlaceRaids][00].TITLE.. " ].") end if Game.getStorageValue(_GLOBAL_RANDOM.DAILY_EVENTS.STORAGE) == 03 then -- BUFFS DE DEVOVORGA local from = {x=3545, y=1530, z=7} local to = {x=3627, y=1601, z=7} for A = from.x, to.x do for B = from.y, to.y do for C = from.z, to.z do local tile = Tile(A, B, C) local creature = tile:getTopCreature() if creature and creature:isMonster() and creature:getName() == "Devovorga" then doRemoveCreature(creature:getId()) break end end end end Game.createMonster("Devovorga", {x=3585, y=1572, z=7}) Game.broadcastMessage("Devovorga surgiu no mapa.") end return true end