LordJasz Posted October 21, 2018 Posted October 21, 2018 View File 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 Submitter LordJasz Submitted 08/17/2018 Category Games, Events, Quests Video Content Author LordJasz Quote
dezorzi Posted January 11, 2019 Posted January 11, 2019 Fala amigo ! Obrigado por compartilhar este script ! Grande abraço! Quote
JaranSwitch0101 Posted January 12, 2019 Posted January 12, 2019 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:// Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.