The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
MMLotto System Details »» | |||||||||||||||||||||||||
Downloads for this modification have been removed according to Official Policy: When Security Vulnerabilities in Hacks are Found
MMlotto is a lotto system. 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 Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
||||
|
||||
Nice!
|
#3
|
||||
|
||||
ok...installed, and it works fine...AT LAST YEY!!!..lmaO
BUT...theres one prob ive found... i set it to buy 2 tickets, at 50 points each..(using vbbux)... i bough a ticket, all is working.....with correct calculation of points deducted as it should....nice.... HOWEVER.. if you refresh the page after you buy the first ticket, it buys a SECOND ticket with the same numbers..... i did this to see if the jackpot amount was working as it should..ie..increasing with the bought ticket...(as when u buy the first ticket, and it says the ticket is purchased, the "tickets sold" shows zero)......and i found this error... prolly a simple edit or fix i know, but i just thought id give u a heads up. also, it hasnt added the cron job.... Quote:
and one more thing, can u guide me to where i can change the number of points initially for the 3 numbers, 4 numbers and the jackpot?? presently, 3 numbers pays out 10 points, which is pretty useless, as its costing em 50 to buy a ticket?? so how could i set the start off prizes for the lotto to have say...... 3 numbers = 1000 points 4 numbers = 4500 points Jackpot = 25000 points apart from these teething probs, a cracking hack, seriously....nice work!! |
#4
|
|||
|
|||
Quote:
In 3.5.x you would have to add the cron job yourself something like this. Name mmlotto system results file .includes/cron/mmlotto.php Set the time as you want. To set the points when the cron job runs edit the includes/cron/mmlotto.php file and look for this line of code PHP Code:
for the jackpot look for this line of code PHP Code:
If you want to to have the match 3 changed find this. PHP Code:
PHP Code:
|
#5
|
|||
|
|||
do you realize it says to enter a new number for each of the 6 inputs...but yet I only see 5 in the screenshots.
|
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
süper! thank you very much..
but some other things like adjusting jackpot adn other rewards from admincp can be added. also, one other thing is "deductions", I want my members (and I, players, everybody) to put 100 (for example, to buy ticket, spending 100 for each ticket) but 10% of that 100, should not be added to anywhere. so in this way it could be a way to make people "spend" some money (points) |
#8
|
||||
|
||||
many thanks for your help in gettin it sorted mate....
did the file edits to the cron file...added the cron job manually...ran the cron manually to see if it all works....cron ran ok.. but after editing ther values with the points in your edits, the reset doesnt set it back to the points i added...(in my original request) ie....3 numbers is still 10 points.......4 numbers hasnt changed,or the jackpot..... any ideas why that should be?? |
#9
|
||||
|
||||
Ok installed on a large community forum, gonna see if this runs better then the vbplaza lottery.
|
#10
|
||||
|
||||
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 Code:
$db->query_write("INSERT INTO ".TABLE_PREFIX."mmlotto_payouts VALUES (X, Y, Z)"); 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. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|