This lotto system will let your members choose 5 numbers for the lotto.
The cron job will randomly choose 5 numbers and find all the winners for matching 3, 4 and 5 numbers.
matching 5 numbers is the jackpot.
This lotto system uses ucash, vbplaza and any other points system.
ADMINCP
Lotto Settings
Lotto On/Off?
Site URL
Cash System To Use
Cost Per Game
How Many Lotto Tickets
users tickets Lotto Rules Add New Rule Lotto Menu Add New Menu Link Lotto Results
USERS
Buy Lotto Ticket
Lotto Ticket List
Lotto Jackpot Winners List
Lotto Match 4 Number Winners List
Lotto Match 3 Number Winners List
lotto Rules
When you have installed the product.xml file it will add the cron job this can be changed by going to your Scheduled Tasks
Scheduled Task Manager
and look for the MM Lotto Results and change it to the time and date you want the job to run the lotto resultes.
Will add more here very soon.
There is no read me files at this time but will be added.
To install this mod just goto your Plugins & Products
Manage Products
And select the product-mmlotto1.xml file
Allow Overwrite set to no
Fyi, If you wanna start "higher" for your lottery. Do this, Uninstall your mmlotto product.
Then edit the xml file.
Find in the code
Code:
$db->query_write("INSERT INTO ".TABLE_PREFIX."mmlotto_payouts VALUES
and change to
Code:
$db->query_write("INSERT INTO ".TABLE_PREFIX."mmlotto_payouts VALUES (X, Y, Z)");
X = 5 Match
Y = 4 Match
Z = 3 Match.
Then in your cron job php file, you need to edit those values to match the ones in the xl you set. Using the info from this post https://vborg.vbsupport.ru/showpost....40&postcount=4
Then install the product, when you get to the main mmlotto page now, your fields for payout will be setup correctly for the 1st time use, and if someone wins, it will reset to the values again.
I would like to add, that making a option in the AdminCP to "reset lottery" to reset the values should be added, shouldnt be too hard, same time make a field for "3 matches, 4 matches, 5 matches" to have in admincp a way to define the payouts, then when you did reset, it would change the SQL Table to match. Then all one had to do is figure out how to avoid the cron job dependancy to reset the values.
thanks for the info, did as you stated, and it worked fine....
again....thanks.
michael, this hack is a cracker mate...much better than the vbplaza standard lottery
im a bit new to all of this, and need a little guidance if you can please.
I have installed this, and
i cant get it to show in the nav bar? - i can only see it if i type www.mysite/forum/mmlotto.php
secondly i want it to work using vbookie cash - i have set the setting to use vcash but say i have none?
this may be a really simple fix and seem simple but to me its bang head really hard at the brick wall time.
if anyone can help, thank you very much in advance