Version: 1.00, by Lesane
Developer Last Online: Oct 2004
Version: 2.2.x
Rating:
Released: 06-18-2002
Last Update: Never
Installs: 119
No support by the author.
Info:
This addon for the store hack gives you the ability to add a Lottery on your store. A lottery with the same principles as a normal lottery. Users buy a lottery ticket in the store and after the specified enddate you or any other admin execute the lottery script in the admincp wich search for a random user from the database and checks if the user bought a ticket and if so then he will receive the jackpot if not then the lottery stays online.
The jackpot will be increased with the amount of the lottery ticket everytime when a new member buy's a ticket.
What to do:
2 Query's: 1 new table, 1 new row.
3 File Edit's: Admin/Index.php, Store.php & Storeadmin.php
1 Template Edit: Store_bit
2 New Templates: store_lottery_error & store_lottery_updated
Some Features:
- A new action on the store: Lottery
- Winner will be picked randomly
- Winner will be pm'ed with a winner's message
- Losers will be pm'ed with a loser's message
- Define Start Date of the lottery
- Define End Date of the lottery
- Define title of the lottery
- Define the amount of a ticket
- Maximum of 1 Ticket Per User
- And more....
This lottery addon will only work with the latest version of the store hack and is compatible with any Vbulletin 2.*.* version.
Have fun with the addon,
Lesane.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Yesterday at 11:31 PM Nur1 said this in Post #219 getting problem.. well dunno if its a problem or not, but the lotto insert is appearing twice in admin
check attached gif
Nur1, ignore all of the instructions it tells you to do in storeadmin.php, because the code is already in it. This should fix your problem.
05-03-03 at 03:51 PM Darnell 0216 said this in Post #217 There's a fix mentioned earlier in the thread regarding award issues... You might wanna doublecheck that problem if you haven't already corrected it. I've got my lottery to award over $10,000,000...
Actually that WAS the problem. I'd ignored that post assuming I was exempt to that problem due to having installed the hack only recently. Lesane had said the problem is fixed.
i dont know if anyone has this problem or if its the same but when someone wins a lottery, they only get the amount that people bought tickets with, they dont recieve the amount added by an admin
05-04-03 at 11:31 PM Nur1 said this in Post #219 getting problem.. well dunno if its a problem or not, but the lotto insert is appearing twice in admin
check attached gif
You must've added that one edit twice, go over it again. I did that too, but I had clicked copy twice on accident.
I have not seen a post on here in awhile. Is anybody still supporting this hack?
Lesane, I know it is a pain in the butt, but is there a way you can make a modification so that this hack works with Zajako's RPG Hack? I do not have the store hack installed on my system. Actually, it is a bit too complicated for me.
It might require a couple of changes (like DB field name changed to have maybe an "RPG" in front of it), bank.php changed to rpgbank.php. This is so people could have this hack running on the Store hack as well as Zajako's RPG hack.
For money, Zajako uses a variable called "$rpgmoney". If you could do this, I would greatly appreciate it.
I would like to have the Lottery winners information such as a copy of the pm or something of such. Post inside of a Lotto Winners Thread in my contest winners forum.
How is this possible.
Awesome work you do, I would still kill or pay well to get my forumhome columns to look like yours though