![]() |
MMLotto System
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 |
Nice!
|
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!! |
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:
|
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.
|
Quote:
|
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) |
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?? |
Ok installed on a large community forum, gonna see if this runs better then the vbplaza lottery.
|
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. |
Quote:
again....thanks. michael, this hack is a cracker mate...much better than the vbplaza standard lottery |
can the author give us any ideas as to what further additions he`s got in the pipeline for this?
id have this as hack of the month if we could vote for it!! |
Btw it doesnt confirm with vbbux to ensure the user HAS enough points. It makes them go into the negative.
|
Quote:
|
Quote:
|
Quote:
|
id be happy just to have the 3.5 version follow the development of the 3.6 version.....
noticed an update in the 3.6 for admin cp options, percentages etc?? nice work man, this is a seriously good hack |
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.:confused: if anyone can help, thank you very much in advance Cheers Foxsake ;) |
Hi in navbar template
Find: Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> Code:
<td class="vbmenu_control"><a As for vCash it doesnt seem to work so you will have to install another cash system eg: qccash,vbbux,or ucash |
Thanks for trying to help Rickie, i have sussed it though and its all working with vbookie - the cash system is vbookie_cash not vcash
Thanks for all your help ;) |
michael, any hopes of this version being updated in line with the 3.6 version?
|
i agree that would be cool, if possible ;)
|
Quote:
Got to earn some money for all the work i do with these scripts. |
Is there a way to make this work without using any of the other mods like VBplaza? Our members would love to have a lottery system configured onto the board, and I want every member to enter regardless of points, so the plaza stuff isn't necessary.
|
Quote:
If this is what you want then i will find the code you need to take out so your members dont need to use any cash systems. |
Quote:
|
Quote:
There is a few places you need to edit to remove the csh system from the lotto. Please remove the code as you want for your own needs but remember you need to edit the main php file and the cron php file to remove the cash system. |
Quote:
|
Quote:
|
can this use repuation point?
|
Quote:
yes i can do this without any problems. I have been buzy at work so have not had much time on PC but when i have made the changes i will post it here for you. |
Thanks, looking forward to it, Michael!
|
Quote:
|
Quote:
The problem is when you make some thing like this you are testing it with just my self. So you cannot see if its going to work the way its ment to do till more people use it. Ill sort it and have a fix soon. |
Any word on this? Been waiting 2 weeks now...
|
Quote:
i will sort it out and post it here |
Serious vulnerabilities have been found in this modification. Files have been removed according to Official Policy: When Security Vulnerabilities in Hacks are Found
Author will be contacted to address these vulnerabilities. Thread closed until update provided by author. |
All times are GMT. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|