Ir para conteúdo

[Mod] Automatic Raids [Dia E Hora Marcada]


Vodkart

Posts Recomendados

eu botei ele em mobs, porem da esse error na distro >

 

 

[28/11/2013 21:17:36] [Error - GlobalEvent Interface]

[28/11/2013 21:17:36] buffer
[28/11/2013 21:17:36] Description:
[28/11/2013 21:17:36] [string "days = {..."]:4: '}' expected (to close '{' at line 2) near '['
[28/11/2013 21:17:36] done.
Link para o comentário
Compartilhar em outros sites

Sim, fiz tudo certinho

<?xml version="1.0" encoding="UTF-8"?>
<mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes">
<config name="raids_func"><![CDATA[
days = {
["Monday] = {
["13:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["15:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["17:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["19:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["21:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["23:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Tuesday"] = {
["12:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["14:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["16:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["18:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["20:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["22:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Wednesday"] = {
["12:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["14:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["16:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["18:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["20:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["22:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Thursday"] = {
["12:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["14:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["16:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["18:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["20:45"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
["22:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Friday"] = {
["11:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["13:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["15:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["17:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["19:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["21:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["23:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Saturday"] = {
["5:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["7:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["9:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["11:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["13:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["15:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["17:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["19:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["21:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["23:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Sunday"] = {
["9:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["11:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["13:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["15:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["17:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["19:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
["21:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
}
]]></config>
<globalevent name="AutomaticRaids" interval="60000" event="script"><![CDATA[
domodlib('raids_func')
function onThink(interval, lastExecution)
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)-10), ((tb.pos.toPosition.x)+10) do
for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do
local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid
if m ~= 0 and isMonster(m) then
doRemoveCreature(m)
end
end
end
end
doBroadcastMessage("The invasion of " .. tb.nome .. " started")
for _,x in pairs(tb.m) do
for s = 1, tonumber(x:match("%d+")) do
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}
doSummonCreature(x:match("%s(.+)"), pos)
end
end
addEvent(removeCreature, tb.Time*60*1000, tb)
end
end
return true
end
]]></globalevent>
</mod>

Link para o comentário
Compartilhar em outros sites

Tenta assim:


<?xml version="1.0" encoding="UTF-8"?>

<mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes">

<config name="raids_func"><![CDATA[

days = {

["Monday"] = {

["13:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["15:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["17:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["19:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["21:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["23:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

},

["Tuesday"] = {

["12:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["14:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["16:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["18:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["20:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["22:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

},

["Wednesday"] = {

["12:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["14:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["16:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["18:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["20:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["22:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

},

["Thursday"] = {

["12:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["14:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["16:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["18:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["20:45"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

["22:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}

},

["Friday"] = {

["11:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["13:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["15:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["17:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["19:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["21:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["23:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

},

["Saturday"] = {

["5:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["7:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["9:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["11:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["13:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["15:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["17:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["19:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["21:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["23:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

},

["Sunday"] = {

["9:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["11:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["13:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["15:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["17:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["19:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

["21:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}

}

}

]]></config>

<globalevent name="AutomaticRaids" interval="60000" event="script"><![CDATA[

domodlib('raids_func')

function onThink(interval, lastExecution)

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)-10), ((tb.pos.toPosition.x)+10) do

for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do

local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid

if m ~= 0 and isMonster(m) then

doRemoveCreature(m)

end

end

end

end

doBroadcastMessage("The invasion of " .. tb.nome .. " started")

for _,x in pairs(tb.m) do

for s = 1, tonumber(x:match("%d+")) do

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}

doSummonCreature(x:match("%s(.+)"), pos)

end

end

addEvent(removeCreature, tb.Time*60*1000, tb)

end

end

return true

end

]]></globalevent>

</mod>


Editado por BorgesRicardo
Link para o comentário
Compartilhar em outros sites

continua dando erro confused.gif

 

[28/11/2013 23:16:30] > Loading automatic_invasion.xml...

[28/11/2013 23:16:30] [Error - GlobalEvent Interface]
[28/11/2013 23:16:30] buffer
[28/11/2013 23:16:30] Description:
[28/11/2013 23:16:30] [string "days = {..."]:4: '}' expected (to close '{' at line 2) near '['
[28/11/2013 23:16:30] done.
Link para o comentário
Compartilhar em outros sites

Foi mal, tenta assim:

 

<?xml version="1.0" encoding="UTF-8"?>
<mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes">
<config name="raids_func"><![CDATA[
days = {
["Monday"] = {
["13:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["15:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["17:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["19:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["21:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["23:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Tuesday"] = {
["12:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Wednesday"] = {
["12:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Thursday"] = {
["12:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:45"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Friday"] = {
["11:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["23:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Saturday"] = {
["5:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["7:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["9:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["11:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["23:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Sunday"] = {
["9:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["11:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
}
}
]]></config>
<globalevent name="AutomaticRaids" interval="60000" event="script"><![CDATA[
domodlib('raids_func')
function onThink(interval, lastExecution)
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)-10), ((tb.pos.toPosition.x)+10) do
for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do
local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid
if m ~= 0 and isMonster(m) then
doRemoveCreature(m)
end
end
end
end
doBroadcastMessage("The invasion of " .. tb.nome .. " started")
for _,x in pairs(tb.m) do
for s = 1, tonumber(x:match("%d+")) do
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}
doSummonCreature(x:match("%s(.+)"), pos)
end
end
addEvent(removeCreature, tb.Time*60*1000, tb)
end
end
return true
end
]]></globalevent>
</mod>

Link para o comentário
Compartilhar em outros sites

era isso mesmo, vc n colocou as virgulas dps de cara index da tabela

 

 

 

<?xml version="1.0" encoding="UTF-8"?>  
<mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes">  
<config name="raids_func"><![CDATA[
days = {
["Monday"] = {
["13:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["15:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["17:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["19:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["21:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["23:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Tuesday"] = {
["12:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Wednesday"] = {
["12:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:01"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Thursday"] = {
["12:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["14:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["16:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["18:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["20:45"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30},
["22:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"20 Magnus"}, Time = 30}
},
["Friday"] = {
["11:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["23:31"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Saturday"] = {
["5:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["7:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["9:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["11:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["23:00"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60}
},
["Sunday"] = {
["9:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["11:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["13:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["15:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["17:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["19:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
["21:30"] = {nome = "Auto Magnus Invasion", pos = {fromPosition = {x=985, y=1014,z=7},toPosition = {x=1012, y=1015, z=7}}, m = {"30 Magnus"}, Time = 60},
},
}
]]></config>
<globalevent name="AutomaticRaids" interval="60000" event="script"><![CDATA[
domodlib('raids_func')
function onThink(interval, lastExecution)  
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)-10), ((tb.pos.toPosition.x)+10) do
for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do
local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid
if m ~= 0 and isMonster(m) then
doRemoveCreature(m)
end
end
end
end
doBroadcastMessage("The invasion of " .. tb.nome .. " started")
for _,x in pairs(tb.m) do
for s = 1, tonumber(x:match("%d+")) do
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}
doSummonCreature(x:match("%s(.+)"), pos)
end
end
addEvent(removeCreature, tb.Time*60*1000, tb)
end
end
return true
end
]]></globalevent>
</mod>

Link para o comentário
Compartilhar em outros sites

Como eu faço para ser em um horário aleatório, por exemplo, a raid deve acontecer todos os dias, porém em qualquer horário e apenas uma vez ao dia e mais, as raids seguintes, vir no mesmo horário, por exemplo, uma raid de orc que caiu aleatoriamente no horário 18:27, as raids seguintes devem vir em 18:28, 18:29, etc. e não uma em cada horário diferente.

 

Quanto ao

<globalevent name="AutomaticRaids" interval="60000" event="script">

60 segundos a partir do quê?

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...