![]() |
how is the lottery system is working
Dear sir
If you please i found some difficulty to get how is the lottery system is working, rather than i've some questions regarding this advantage I would like to know how the lottery system is choosing the daily and weekly winner What are the steps which are used to choose that winner and if there are basics for that or it's done randomly ,,,,,, why the lottery system doesn't send a private message to the member to inform him that he win and if that option is existing in the new version you are kindly requested to answer the above inquiries Thanks and best regards |
1) It counts the number of tickets for the currently expiring lottery (if any tickets are purchased and if the lottery is expired)
2) It randomly chooses a number between 0 and the number of tickets. 3) It pulls that entry from the MySQL database of the tickets, and thats the winner. Code:
// send a private message to the user that they have won the lottery -CMX |
Doesn't send PM for lottery winners for my board either, I was actually here looking for the answer to that. Was suprised it didn't since you did awesome with sending PMs for gifts & donate.
While here, I do have another question, the auto PMs sent don't include the sig for that user, is it possible to make it use the sig? Other then those 2 things I am in love with this, so much better then the old store/cash hack I used on 3.0.x ;) :D |
I'll double check this out on vbplaza.com when I get time.
-CMX |
Hello ,
there is no PM send if there is user have won , i'm sure , from where can i see that , regards |
I set up a test lottery, bought a ticket and then ran it. Of course I won because I was the only ticket holder,lol. Anyway, I did get a pm notifying me of winning. BUT no pms are being sent out on the weekly and daily lottery at all. So I can't figure out what's wrong.:confused:
|
It's not logged into the users history when they have won, but I have received the PM when I won the lottery. To test it, I made sure I was the only one who purchased a ticket, and then set the lottery end time to yesterday and ran the cron job to process the lottery and I won the lottery and received a PM for it. So if its not working on ur end, its something different u have in ur setup that is causing an issue and I'd need admin access with can administer plugins, settings & scheduled tasks to take a look at it further.
-CMX |
Quote:
I setup a test lottery, it completed and a PM was sent. But the Daily and Weekly lotteries are not sending PM's to the winners. |
They used to send those PM's a couple of versions ago for me, but I'm not exactly sure in wich version this feature was lost.
Concerning the inner workings of the lottery, is there a way we could have a lotto-like system, meaning, the user chooses the numbers he wants to play with and if there is no winner the points get accumulated for the next draw? |
yup, no PMs sent to me either.
by the way, shouldn't this be titled RAFFLE? |
I've downloaded it but haven't installed yet... besides time duration does the lottery module have an option to draw a winner after a specific number of tickets have been purchased.
|
I've found some issues with the send_pm function I've built, this should hopefully fix the problems for u guys in the next release.
-CMX |
I haven't had any problems with mine sending pm's to the members...
|
Its a very obscure problem that is inside send_pm, it took me 2 hours to debug in when I was making vbSupport 2.0.0 Beta 1 the other day.
It wont happen in all cases, but it would happen in some. -CMX |
thank you :)
Quote:
|
CMX - Thanks for digging into this and figuring it out.
|
All times are GMT. The time now is 05:49 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:
|