Ir para conteúdo

Posts Recomendados

Bom dia, gostaria de saber se alguem pode me informar como funciona o sistema de interval do forgotten server?

 

exemplo.: <globalevent name="Lotery" interval="7200" event="script" value="lotery.lua"/>

 

Erro no server:

 

05:22 [1ST PLACE] Winner: Hakeshou, Reward: 2 crystal coin, Congratulations!

05:22 [2ST PLACE] Winner: Batman, Reward: 1 stealth ring, Congratulations!

05:22 (Next Lottery in 3 hours.)

05:22 [1ST PLACE] Winner: [Vip] [Hoster] Alk, Reward: 1 stealth ring, Congratulations!

05:22 [2ST PLACE] Winner: Robinn, Reward: 2 crystal coin, Congratulations!

05:22 (Next Lottery in 3 hours.)

05:22 [1ST PLACE] Winner: Batman, Reward: 2 crystal coin, Congratulations!

05:22 [2ST PLACE] Winner: Hakeshou, Reward: 1 stealth ring, Congratulations!

05:22 (Next Lottery in 3 hours.)

05:22 [1ST PLACE] Winner: Hakeshou, Reward: 2 crystal coin, Congratulations!

05:22 [2ST PLACE] Winner: Batman, Reward: 2 crystal coin, Congratulations!

05:22 (Next Lottery in 3 hours.)

05:23 [1ST PLACE] Winner: Robinn, Reward: 2 crystal coin, Congratulations!

05:23 [2ST PLACE] Winner: Batman, Reward: 2 crystal coin, Congratulations!

05:23 (Next Lottery in 3 hours.)

 

 

 

Pelo que entendi nos foruns, inclusive no do sistema da lottery dizem que 7200 equivale a 2 horas, no meu server estou tendo que usar esse interval (

<globalevent name="Lotery" interval="8400000" event="script" value="lotery.lua"/>) para ficar aproximadamente 2 horas.

 

 

 

Se alguem puder me ajudar, agradeço com rep+ e mais a minha gratidão :D

Link para o comentário
https://xtibia.com/forum/topic/153084-duvida-interval-forgotten-server-04/
Compartilhar em outros sites

Isso era pra ser em segundos mesmo: 7200 = 60 * 60 * 2

8400000 talvez seja 2 horas + 20 min certo? se for, está em milissegundos: 8400000 = 1000 * 60 * 60 * 2 + 1000 * 60 * 20

Link para o comentário
https://xtibia.com/forum/topic/153084-duvida-interval-forgotten-server-04/#findComment-1011502
Compartilhar em outros sites

×
×
  • Criar Novo...