I've implemented this on the emu today. You'll find 3 variables to set in the `variables` table of your database.
Code: Select all
gambling_current_jackpot
gambling_token_item_id
gambling_winning_numbers
The gambling_current_jackpot and gambling_winning_numbers will set themselves if they are not set but without gambling_token_item_id set, the lotto will not proceed. Also, you want to give your spawn who runs the lottery an entity command that runs the 'lotto' command.
Lastly, does anyone know what actually happens when a player wins the lottery? As of right now I just have the server sending a global announcement to the server praising the winner.
EDIT
Forgot this. You'll want the merchant type in the spawns table to inlclude 32.