Good day all!
There's something i wanted to add to my server, but haven't found yet. There's a powerball lottery system but i want something simpler:
an NPC that sells lottery tickets for z gold:
- lottery winnings is set randomly, between x gold and Y gold
- odds of winning is a function of the lottery winning gold amount ( (lottery winning * random value) / price of ticket for example)
- draw is once every 7 days
player will need tickets in his backpack and click "check lottery" on the npc to see if he won.
on winning, he gets a check
I'm okay at editting scripts, but would fail in creating one from scratch... could someone help create the skeleton for the above? Or point me to something similar i can butcher?
Thanks!
There's something i wanted to add to my server, but haven't found yet. There's a powerball lottery system but i want something simpler:
an NPC that sells lottery tickets for z gold:
- lottery winnings is set randomly, between x gold and Y gold
- odds of winning is a function of the lottery winning gold amount ( (lottery winning * random value) / price of ticket for example)
- draw is once every 7 days
player will need tickets in his backpack and click "check lottery" on the npc to see if he won.
on winning, he gets a check
I'm okay at editting scripts, but would fail in creating one from scratch... could someone help create the skeleton for the above? Or point me to something similar i can butcher?
Thanks!