Citarlocal config = {
teleportId = 1949,
days = {
["tuesday"] = {Position(1000, 996, 7), Position(1585, 1563, 7)}, -- Morshabaal - monday-Segunda, tuesday-Terça, wednesday-Quarta, thursday-Quinta, friday-Sexta, saturday-Sabado and sunday-Domingo
},
bossPosition = Position(1588, 1534, 4),
bossName = 'Ferumbras',
spawnTime = '18:50:00'
}local MorshabaalRespawn = GlobalEvent("MorshabaalRespawn")
function MorshabaalRespawn.onTime(interval)
local day = config.days[os.date("%A")]
if day then
local item = Game.createItem(config.teleportId, 1, day[1])
if item then
if not item:isTeleport() then
item:remove()
return false
end
item:setDestination(day[2])
end
addEvent(function()
Game.createMonster(config.bossName, config.bossPosition, false, true)
Game.broadcastMessage(config.bossName .. ' In revenge for my brother death, I will devastate this continent!', MESSAGE_GAME_HIGHLIGHT)
end, 5000)
end
return true
endMorshabaalRespawn:time(config.spawnTime)
MorshabaalRespawn:register()
Tenho esse Script Mais ele não inicia, não da erro. não acontece nada. alguem pode me ajudar uso o RkDiazGlobal - TFS 1.6 client 12.98