Sign in to follow this  
LordJasz

Quests, Games: Daily Raffle / Sorteio Diário

Recommended Posts

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",[email protected]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()",[email protected]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


 

Share this post


Link to post
Share on other sites

Fala amigo ! Obrigado por compartilhar este script !

Grande abraço!

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this