Jump to content
Sign in to follow this  
KyleMassacre

Weekly Lottery [NWE]

Recommended Posts

Hello everyone,

I have this weekly Lotto mod that I made a while back but pulled it off the market because it was buggy. I made some updates to it and it "seems" to be working fine but I want to see if some of you would mind testing it out for me before I submit it.

As the title says its a weekly lottery where players can buy either up to a set amount of tickets that you decide or an unlimited amount of tickets and is configurable with a config key, 0 for infinite, # for the max. So some of the features include which is all done with config keys are

  • The date it runs: Sunday through Saturday
  • % of each ticket that goes into the weekly jackpot
  • The default start jackpot for each week
  • How many tickets a user can buy unless set to 0 then its unlimited
  • The ticket price

Also when a user is picked as the winner it sends a chat line (if enabled) of the winner and the amount and also a message letting them know they one.

So if you can please try it out and let me know if it works and ill upload it to the market. Thanks a million

weekly_lottery.nwp

Share this post


Link to post
Share on other sites
Thanks for sharing Kyle!

Thank you Alain. This was my first mod I created but before submission originally I guess I changed somethings around and ruined the cron and for the life of me couldn't figure out how or why it stopped working. But a special shout out to illusions for helping me on this for the second time to fix the cron. The only difference between this and the one I uploaded originally is that for one, as far as my testing goes it works so I'm looking for a couple extra people to see for themselves, and second, I cleaned up the config keys and made them more appealing on the eyes

Share this post


Link to post
Share on other sites

I will put it up on my site in the morning and I will get back to you when I have tested it

Thanks for sharing

Share this post


Link to post
Share on other sites

This is actually a very nice mod well executed and does what it says on the tin.. Weldone Kyle and don't be giving me any shoutouts you did all the work :)

Share this post


Link to post
Share on other sites

I just submitted this module for an update.

What I did was basically make it work ;)

 

  1. Minor Bug fixes

    1. A problem with purchasing the exact limit of tickets, it was off by 1 purchase. i.e: Max tickets was 20 you were only able to buy 19.
    2. Fixed a couple of variables

 

[*]Upgraded the config to the newest standard

[*]Optimized the cron and removed the "ORDER BY rand()"

 

Share this post


Link to post
Share on other sites

I like this mod and felt more could be done so heres a preview of what can be achieved....

Screenshot available

tickets.thumb.jpg.1a32fe243cb5a2eaa508efa6299586ef.jpg

Share this post


Link to post
Share on other sites

I submitted an update (Not with illusions updates :p) maybe we can get together and make it look like that.

This update just fixed the bug with the cron throwing an error out on login or when the cron actually ran

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...