Ok, vamos testar summonando outro monstro, talvez seja o Exp bug que esteja bugado, mude essa linha:
doSummonMonster("Exp Bug", position)
Para:
doSummonMonster("Dragon", position)
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Ok, vamos testar summonando outro monstro, talvez seja o Exp bug que esteja bugado, mude essa linha:
doSummonMonster("Exp Bug", position)
Para:
doSummonMonster("Dragon", position)
seguinte mano tenho um aki só que nao posso colocar no mesmo horario tipo segunda feira -> 20:00 terça feira 20:00,,, (dai so pega na segunda)
ai tentei colocar assim segunda 20:00 terça 20:01... so que nao fuciona tb nao =x
ta ai o script
<?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 = {
["Sunday"] = {
["11:00"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:00"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:00"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:00"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:00"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Monday"] = {
["11:01"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:01"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:01"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:01"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:01"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Tuesday"] = {
["11:02"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:02"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:02"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:02"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:02"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Wednesday"] = {
["11:03"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:03"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:03"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:03"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:03"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Thursday"] = {
["11:04"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:04"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:04"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:04"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:04"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Friday"] = {
["11:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
},
["Saturday"] = {
["11:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["14:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["16:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["18:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10},
["20:05"] = {nome = "EXP BUG", pos = {fromPosition = {x=1091, y=1087, z=6},toPosition = {x=1096, y=1092, z=6}},m = {"1 Exp bug"}, Time = 10}
}
}
]]></config>
<globalevent name="AutomaticRaids" interval="60" 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("Evento " .. tb.nome .. " comecou, CORRA exp bug localizado no centro de carlin.")
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>
eu mudeu pra dragon e continua aparecendo isso
[06/04/2013 16:05:00] [Error - GlobalEvent Interface]
[06/04/2013 16:05:00] data/globalevents/scripts/expbug.lua:onTimer
[06/04/2013 16:05:00] Description:
[06/04/2013 16:05:00] (luaDoSummonMonster) Creature not found
[06/04/2013 16:05:00] > Broadcasted message: "The ExpBug has been summoned! Run.".
[06/04/2013 16:05:01] [Error - GlobalEvents::timer] Couldn't execute event: ExpBug
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Põe:
doSummonCreature("Dragon", position)
info
Grupo: Cavaleiro
Registrado: 25/02/13
Posts: 169
Reputação: +42
Gênero: Masculino
Char no Tibia: Fodinha

Tente Assim;
local position = {x = 500, y = 300, z = 7} -- Position for summon
function onTimer ()
if os.date("%X") == "11:00:00" or os.date("%X") == "14:00:00" or os.date("%X") == "16:00:00" or os.date("%X") == "18:00:00" or os.date("%X") == "20:00:00" then
doBroadcastMessage("The ExpBug gonna summoned in 2 minutes, run to kill the boss!", MESSAGE_EVENT_ADVANCE)
doSummonMonster("Exp Bug", position)
doBroadcastMessage("The ExpBug has been summoned! Run.", MESSAGE_EVENT_ADVANCE)
end
return true
end
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

kaiotp, Assim vai aparecer a msg de aviso na hora do summon!
Aeeee conseguir fazer nesse script, ele remove as paredes que no caso seria o id 9485 e sumona o exp bug aeee
local position = {x = 1095, y = 1090, z = 6} -- Position for summon
local timeToCreate = 1 -- minutes
local walls = {
{ x = 1093, y = 1057, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE },
{ x = 1094, y = 1057, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE }
}
function removeWalls(item, position)
doBroadcastMessage("Evento Exp Bug ABERTO! ,Esperem entre 1 a 6 minutos no evento que ele sera sumonado.")
addEvent(createWalls, timeToCreate * 300000)
for i = 1, table.maxn(walls) do
doRemoveItem(getThingfromPos(walls).uid)
doSendMagicEffect(walls, CONST_ME_MAGIC_RED)
end
return TRUE
end
function createWalls(item, position)
for i = 1,table.maxn(walls) do
doCreateItem(9485, 1, walls)
doSendMagicEffect(walls, CONST_ME_MAGIC_GREEN)
end
return TRUE
end
function onTimer ()
doBroadcastMessage("Evento Exp Bug comecara em 2 minutos CORRAM!!")
doSummonCreature("Experience Bug", position)
addEvent(removeWalls, 120000)
return TRUE
end
Editado Abril 6 por poko360
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

local timeToCreate = 1 -- minutes
local walls = {
{ x = 1093, y = 1057, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE },
{ x = 1094, y = 1057, z = 7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE }
}
local timer = 2 -- Minutos pra summonar
local position = {x = 1095, y = 1090, z = 7} -- Position for summon
function removeWalls(item, position)
doBroadcastMessage("Evento Exp Bug ABERTO! ,Esperem entre 1 a 6 minutos no evento que ele sera sumonado.")
addEvent(doSummonCreature, timer*60*1000, "Exp Bug", position, true)
addEvent(createWalls, timeToCreate * 300000)
for i = 1, table.maxn(walls) do
doRemoveItem(getThingfromPos(walls).uid)
doSendMagicEffect(walls, CONST_ME_MAGIC_RED)
end
return TRUE
end
function createWalls(item, position)
for i = 1,table.maxn(walls) do
doCreateItem(9485, 1, walls)
doSendMagicEffect(walls, CONST_ME_MAGIC_GREEN)
end
return TRUE
end
function onTimer()
doBroadcastMessage("Evento Exp Bug comecara em 2 minutos CORRAM!!")
addEvent(removeWalls, 120000)
return TRUE
end
Em vermelho: quantos minutos vai demorar pra sumnonar
unico problema de sumonar era esse
vc colocou assim
doSummonMonster("Experience Bug", position)
ai eu mudei pra isso
doSummonCreature("Experience Bug", position)
msm assim vlw por me ajudar REP+ pra ti
Editado Abril 6 por poko360
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Olha uns posts acima, acho que na outra página até. Eu tinha postando um código com "creature" em vez de "monster", rsrs.
Dúvida sanada, tópico movido ![]()
info
Grupo: Campones
Registrado: 31/01/13
Posts: 26
Reputação: +1
o broadcast dos 2 minutos antes nao apareceu, só apareceu o broadcast no momento que iria sumonar o exp bug
Broadcast 2 minutos antes : Não pegou
Broadcast no momento : Ok
Sumonar o monstro: Não pegou
Editado Abril 6 por poko360