Quote:
Originally Posted by Gizmo5h1t3
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....
nope, nothing there mate..................
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!!
|
Yes if you refresh the page it will do it again but i will be changing this so it dose not happen.
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:
$vbulletin->db->query("UPDATE " . TABLE_PREFIX . "mmlotto_payouts SET fournums = 250");
change the 250 to what you want.
for the jackpot look for this line of code
PHP Code:
$vbulletin->db->query("UPDATE " . TABLE_PREFIX . "mmlotto_payouts SET fivenums = 2500");
and change the 2500 to what you want.
If you want to to have the match 3 changed find this.
PHP Code:
$vbulletin->db->query("UPDATE " . TABLE_PREFIX . "user SET $userscashtable = $userscashtable+$matchthreepayouts WHERE userid= '$match3[userid]' ");
and after add this line of code
PHP Code:
$vbulletin->db->query("UPDATE " . TABLE_PREFIX . "mmlotto_payouts SET threenums = 250");
and change the 250 to what you want it to be.