Ir para conteúdo

Posts Recomendados

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:

Spoiler

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(exists) ~= 4 then
            doCreateMonster(configuration.name, configuration.position)
            setGlobalStorageValue(exists, 4)
        end
    end
    return true
end

 

 

XML:

Spoiler

<globalevent name="ZenoSpawnQuarta" time="07:47" event="script" value="zenospawn.lua"/>

 

 

Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/
Compartilhar em outros sites

@matheus1234567

Spoiler

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

 

Editado por Marshmello
Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/#findComment-1745063
Compartilhar em outros sites

2 horas atrás, BananaFight disse:

Acredito que o problema seja com o monstro, ja tentou sumonar o monstro com o /m para ver se funciona ?

funciona normalmente

Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/#findComment-1745069
Compartilhar em outros sites

3 horas atrás, Marshmello disse:

@matheus1234567

  Ocultar conteúdo

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 

 

o mesmo erro

Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/#findComment-1745071
Compartilhar em outros sites

Em 26/10/2018 em 13:35, Marshmello disse:

Tenta colocar um monster diferente pra ver se spawn

ja tentei da o mesmo erro e no server o /m zeno funciona normalmente

Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/#findComment-1745165
Compartilhar em outros sites

  • 4 weeks later...
A questão neste suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
https://xtibia.com/forum/topic/248452-encerrado-error-docreatemonster/#findComment-1745772
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...