Ir para conteúdo
  • 0

Problema No Global Event...


1579091

Pergunta

Bom, n sei se to na area errada, mais de acordo com o que eu vi meu serve ta bugando por causa disso:

 

 

 

[25/08/2012 22:37:57] [Error - GlobalEvent Interface]

[25/08/2012 22:37:57] data/globalevents/scripts/start.lua:onStartup

[25/08/2012 22:37:57] Description:

[25/08/2012 22:37:57] data/globalevents/scripts/start.lua:2: attempt to call field 'executeQuery' (a nil value)

[25/08/2012 22:37:57] stack traceback:

[25/08/2012 22:37:57] data/globalevents/scripts/start.lua:2: in function <data/globalevents/scripts/start.lua:1>

 

 

 

Bom, o script start.lua é esse ake:

 

 

function onStartup()

db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")

db.executeQuery("DELETE FROM `guild_wars` WHERE `status` = 0 AND `begin` < " .. (os.time() - 2 * 86400) .. ";")

db.executeQuery("UPDATE `guild_wars` SET `status` = 5, `end` = " .. os.time() .. " WHERE `status` = 1 AND `end` > 0 AND `end` < " .. os.time() .. ";")

return true

end

 

 

 

e meu globalevents.xml:

 

 

 

 

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

<globalevents>

<!-- ChaitoSoft.com -->

<globalevent name="save" interval="1800000" event="script" value="save.lua"/>

<globalevent name="clean" interval="7200000" event="script" value="clean.lua"/>

<globalevent name="serverstart" type="start" event="script" value="start.lua"/>

<globalevent name="playersrecord" type="record" event="script" value="record.lua"/>

<globalevent name="raid" interval="10800" event="script" value="raid.lua"/>

<globalevent name="WoE" interval="1" event="script" value="woe.lua"/>

<globalevent name="start_woe" interval="5000" event="script" value="start_woe.lua"/>

<globalevent name="Guardias" interval="1000" event="script" value="guardias.lua"/>

<globalevent name="Teleports" interval="2" script="teleports.lua" />

<globalevent name="ZombieGlobalThink" interval="5" event="script" value="zombie/onthink.lua"/>

<globalevent name="ZombieGlobalStartup" type="start" event="script" value="zombie/onstartup.lua"/>

<globalevent name="ZombieGlobalThink" interval="5000" event="script" value="zombie/onthink.lua"/>

<globalevent name="ZombieGlobalStartup" type="start" event="script" value="zombie/onstartup.lua"/>

<globalevent name="lottery" interval="10800" event="script" value="lottery.lua"/>

 

</globalevents>

 

 

 

 

Oque acontece: Meu server dps de ums 30 segundos ele cai do nada... e da esse erro apos abri-lo.

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...