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.
I need this too. Do anyone know the postbit for this? Lesane, anyone?
I asked like 2 or 3 times, if I'm not mistaken, inside the Store Hack thread and no answer from you. I'll post it again in the Store thread. I don't know if I'll get an answer or not.
Wait i am lost. Does this lotto thing pick a random member that bought a ticket or just a random member even if they didn't buy a ticket? which one does this addon do? I was reading through the threads and i saw post 46 and was wondering. Thanks.
Ok never mind about the question up above i figured it out but there is one problem with my Lotto. The winner wins the amount that everyone chipped in to buy a ticket but he does not win the actual jackpot. I put the jackpot to 100000 and i win 20 bucks because only one person bought a ticket. Now is there a fix for this?
Originally posted by BigJohnson Ok never mind about the question up above i figured it out but there is one problem with my Lotto. The winner wins the amount that everyone chipped in to buy a ticket but he does not win the actual jackpot. I put the jackpot to 100000 and i win 20 bucks because only one person bought a ticket. Now is there a fix for this?
BigJ: See post #22
It worked like a charm after that