Postado Abril 4, 2019 6 anos Up PokeWorks-Pokemon Rpg Online venha Fazer parte dessa Incrivel Aventura Criar Conta ____________##___________ Object Builder 0.5.441
Postado Abril 4, 2019 6 anos <?xml version="1.0" encoding="UTF-8"?> <mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="tibiaking.com" enabled="yes"> <config name="raids_func"> -- Mini-tutorial de configuração -- Não esqueça de configurar os horários que o evento vai iniciar (OBS: O script sempre pega o horário da maquina caso a sua maquina ou vps -- usar horário de outros lugares vai ter atraso dependendo do fuso-horário -- nome = Nome do evento que vai mostrar em mensagem vermelha para o servidor todo -- pos = fromPosition = Canto Superior Direito -- pos = toPosition = Canto Inferior Esquerdo -- Configurando a pos corretamente pode formar um quadrado ou retangulo para os monstro não nascerem um em cima do outro -- m = Quantidade e tipos de monstro a serem criados, pode seguir a lógica do nome do evento podendo colocar Orc porém na invasão vai ter orc, orc shaman, orc spear etc... -- Time = Tempo que a invasão vai durar caso colocar time = 10 a invasão vai durar 10 minutos depois de 10 minutos os monstros restantes serão removidos <![CDATA[ days = { -- Segunda ["Monday"] = { ["17:00"] = {nome = "Mulheres", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}},m = {"60 Demon", "50 Demon", "2 Lumenia"}, Time = 5}, ["21:58"] = {nome = "Homens", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}},m = {"70 Demon", "Hellhound", "3 Lazarus"}, Time = 10} }, -- Terça ["Tuesday"] = { ["17:00"] = {nome = "Xinocas", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"90 Demon", "40 Hellhound", "1 Exp Bug"}, Time = 10}, ["22:00"] = {nome = "Xinocos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"90 Hydra", "40 Cyclops", "2 Halloween Pumpkin"}, Time = 10} }, -- Quarta ["Wednesday"] = { ["17:00"] = {nome = "Servegonhas", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Demon", "40 Grim Reaper", "10 Demora"}, Time = 10}, ["23:32"] = {nome = "Lazarentos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hydra", "40 Juggernaut", "2 Lazarus"}, Time = 10} }, -- Quinta ["Tursday"] = { ["17:00"] = {nome = "Vizinhos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Demon", "70 Grim Reaper", "1 Exp Bug"}, Time = 10}, ["23:15"] = {nome = "Fogosos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "3 The Incendier"}, Time = 10} }, -- Sexta ["Friday"] = { ["17:00"] = {nome = "Diabolicos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "3 Demora"}, Time = 10}, ["22:00"] = {nome = "Sarninhas", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "1 Exp Bug"}, Time = 10} }, -- Sábado ["Saturday"] = { ["17:00"] = {nome = "Diabedo", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "1 Lumenia"}, Time = 10}, ["22:00"] = {nome = "Lazarentos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "3 Lazarus"}, Time = 10} }, -- Domingo ["Sunday"] = { ["20:33"] = {nome = "Malditos", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Hellhound", "70 Grim Reaper", "1 Exp Bug"}, Time = 10}, ["22:00"] = {nome = "Safados", pos = {fromPosition = {x=55, y=18, z=7},toPosition = {x=217, y=78, z=7}}, m = {"70 Demon", "Hellhound", "3 Halloween Pumpkin"}, Time = 10} } } ]]></config> <globalevent name="AutomaticRaids" interval="60000" event="script"><![CDATA[ domodlib('raids_func') function onThink(interval, lastExecution) function isWalkable(pos) -- by Nord / editado por Omega if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false elseif isCreature(getTopCreature(pos).uid) then return false elseif getTileInfo(pos).protection then return false elseif hasProperty(getThingFromPos(pos).uid, 3) or hasProperty(getThingFromPos(pos).uid, 7) then return false end return true end if days[os.date("%A")] then hours = tostring(os.date("%X")):sub(1, 5) tb = days[os.date("%A")][hours] if tb then function removeCreature(tb) for x = ((tb.pos.fromPosition.x)-20), ((tb.pos.toPosition.x)+20) do for y = ((tb.pos.fromPosition.y)-20), ((tb.pos.toPosition.y)+20) do local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid if m ~= 0 and isMonster(m) then doSendMagicEffect(getCreaturePosition(m), CONST_ME_MORTAREA) doRemoveCreature(m) end end end end doBroadcastMessage("Uma orda de " .. tb.nome .. " esta invadindo a cidade ajude a defende-la") -- Mensagem que vai aparecer para todos do servidor quando a invasão iniciar for _ , x in pairs(tb.m) do local c = tonumber(x:match("%d+")) if c > 0 then repeat local pos = {x = math.random(tb.pos.fromPosition.x, tb.pos.toPosition.x), y = math.random(tb.pos.fromPosition.y, tb.pos.toPosition.y), z = tb.pos.fromPosition.z} if isWalkable(pos) then doCreateMonster(x:match("%s(.+)"), pos) doSendDistanceShoot({x = pos.x - math.random(4, 6), y = pos.y - 5, z = pos.z}, pos, CONST_ANI_FIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_HITBYFIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_FIREAREA) doSendMagicEffect(pos, CONST_ME_MORTAREA) c = c-1 end until c == 0 end end addEvent(removeCreature, tb.Time*60*1000, tb) addEvent(doBroadcastMessage, tb.Time*60*1000, "A invasão de " .. tb.nome .. " acabou, os sobreviventes fugiram") -- Mensagem que vai aparecer para todos do servidor quando a invasão iniciar end end return true end ]]></globalevent> </mod> Meu também não start... Porem quando testo em Windows vai embora.... Agora o que pode ser isso?
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.