Jump to content

Recommended Posts

Posted

Daily Raffle / Sorteio Diário


How does it work?
It gives a random ticket to a player (between 1 ~ 10000).

Como Funciona?
Ele dá um ticket para o jogador (entre 1 ~ 10000)

14. set #evento, rand(1,10000);

At 20:00 o'clock it triggers the biggest value and sets as the winner ticket.

Às 20:00h ele configura o maior valor como valor do vencedor.

45. OnClock2000:
46. query_sql("select `value` from acc_reg_num where `key` = '#evento' order by `value` desc",.@winner);
// IF YOU WANT TO TRIGGER RANDOMLY, NOT THE BIGGEST VALUE, USE THIS
// SE VOCÊ QUER QUE ELE SELECIONE ALEATÓRIAMENTE, NÃO O MAIOR VALOR, USE ISTO
query_sql("select `value` from acc_reg_num where `key` = '#evento' and `value` != 0 order by rand()",.@winner);

And it will give 5~10 Yggdrasil Berry

E ele vai dar entre 5~ 10 Frutos de Yggdrasil

33. getitem 607,rand(5,10);

Any Question?

Qualquer dúvida fale comigo

 

fb.com/JoaoMarcoA
discord: LordJasz#2310


 

  • 2 months later...
Posted

Can add functions like type ...
When it is time to publish the results, it will notify the entire server of the result and the winner's name. Rewards will automatically transfer directly to the winner's mailbox.
You can do it? And when the player wants to meet npc confirm the result, it will report the result and the lucky winner 

If you have these extra features, than the NPC Raffle will be awesome !!

http://tumblr-inline-otx0gp3-Ch-E1tuiijv-540.gi

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...