Finaltwist

Member
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!
 
oooh let me have a looksy. I googled "lottery"
Post automatically merged:

Just looking at the script now... gonna butcher it and remove all that "token ledger" nonsense. thanks!!
 
Last edited:

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back