local configuration = {
day = "Friday",
name = "Zeno",
position = {x= 172, y= 974, z= 12},
exists = 52141
}
function onTime()
if os.date("%A") == configuration.day then
if getGlobalStorageValue(configuration.exists) ~= 4 then
doSummonCreature(configuration.name, configuration.position)
setGlobalStorageValue(configuration.exists, 4)
end
end
return true
end



info
Grupo: Campones
Registrado: 07/08/17
Posts: 10
Reputação: 0
Gênero: Masculino
olá pessoal do XTIBIA, eu estava aqui desenvolvendo um script de spawn de monstro com dia e horário definido mas me ocorre o seguinte erro na função doCreateMonster...
[7:47:00:899] [Error - GlobalEvent Interface]
[7:47:00:909] data/globalevents/scripts/zenospawn.lua:onTime
[7:47:00:909] Description:
[7:47:00:909] (luaDoCreateMonster) Cannot create monster: Zeno
Script:
XML: