Jump to content


ibEconomy 1.4.6 has been installed here!


  • Please log in to reply
24 replies to this topic

#1 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 07 May 2011 - 01:50 PM

Finally! Coincidence that it's "finished" when classes are ending? :lol:

So yeah, the new features are listed below. I will not be releasing it until we do a week or so worth of lottos here. I have lottos set to run every day, and the task set to check every hour, so within an hour the first lottery will be automatically generated. I choose 5 numbers (1-5) and 3 balls, so there are 10 total choices when selecting your numbers. Hopefully that means that we will have a winner relatively quickly. I also have it set to 5 tickets per lottery as default, and have left all member groups here set to default chances. I'll be writing an FAQ of sorts about the lottery, since you know me, I always have to add crazy stuff, before actual release. I'll also try different settings throughout our testing, so don't be confused if the number of balls changes from lotto to lotto.

I figured $50 per ticket is good, and most everyone has enough to buy a bunch since everyone starts out with $500. If anyone needs more points, instead of being boring and requesting some points, you can visit ibEconomy and purchase/use the Steal Points shop item. I just changed it so it only costs $0.99 and it only works against users in the Administrator group (which is only me) and upped it to between $500 and $750. That way we can test out the new Max Purchase Per Day setting (which for that item I set to 1). :)

If the lottery doesn't get auto-generated by tonight, I'll look into it (that would be a bad start, lol).

New Version Installed: 1.4.6

New to this version:

  • Lottery Module!
  • Lottery sidebar block (inserted automatically, so you don't have to create the block, like normal)
  • Scratch-Off shop item (created/donated by jose.rob.jr of emoneyCodes.com)
  • Another negative points tweak (allowed admins to input negatives when editing a member's points in ACP)
  • Yet another (new Disallow Negative Points setting, for hooks, to keep members from going negative)
  • New Shopitem setting to restrict purchases per day
  • Updated pointsForPosts hook to peaderfi's code (library hook compatibility)
Bugfixes

  • Fixed 2 hard-coded lang bits (Savings and Checking)
  • Changed Trade Stock To Other Users to Sell Stocks and added proper checks so users can now be properly prohibited from selling stocks

DogPatch Was Here :D

#2 cdkey

cdkey

    Member

  • Members
  • PipPip
  • 27 posts

Posted 08 May 2011 - 09:08 AM

Awesome, I bought two tickets. :)

How does the scratch card work exactly? Does it scratch two random spots for you?

I thought someone made a raffle for this version. Guess not. T_T

Either way I'm excited!

#3 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 08 May 2011 - 09:45 AM

hmm, I might have accidentally used the word "raffle" instead of "scratch off" in an earlier post. Too many gambling for points ideas floating around, lol. I'm actually not sure what the difference is between a raffle and how I have the lottery system setup. Both you buy tickets to win a jackpot. What is the distinction I'm missing?

I didn't code the scratch off shop item, Jose Rob did, I only made added the lang bits and things. But after reading through the shop item code, I can say it first builds arrays of the allowed items, then goes though the rows and columns to hit each spot on the matrix (all of that setup in ACP, which you'll see when you install it) and randomly picks winning items/money amounts until the max is reached (again, via a shop item setting).
DogPatch Was Here :D

#4 cdkey

cdkey

    Member

  • Members
  • PipPip
  • 27 posts

Posted 08 May 2011 - 02:14 PM

Ah neato. I'll have to look at it.

In a lottery you have to pick the same number as the jackpot to win. In a raffle everyone who buys a ticket has an equal chance of winning, and a winner is selected from the people who entered the raffle at a fixed time. Right?

#5 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 08 May 2011 - 02:56 PM

ah, that makes sense. The lottery system actually has a setting to force a winner, so it can be used more like a raffle in that sense if the admin chooses.

Looks like tickets are no longer on sale for the current lottery, which makes sense because it is after the draw time. I kept one in my cart and then just now bought it and on the ticket is says "Will Be Refunded" so I'll check my points to make sure I get refunded.

I changed the task to run every 5 minutes, to narrow the gap between the end of ticket sales and the winning numbers chosen. That will take affect next round, it looks like the current lottery will be finalized in 15 minutes.

In case one of us wins, our current points:

emoney : 15878
SSZ : 714
cdkey : 1109
planetby : 400
nashslash : 1,896.31
DogPatch Was Here :D

#6 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 08 May 2011 - 03:06 PM

I was refunded the $50, but it looks like none of us won. :( You would think with 8 tickets and only 10 total possible winning combinations, one of us would've won, lol. We must be pretty unlucky. I checked the database and here are our ticket numbers:

1,2,3
1,4,5
2,3,5
1,2,4
1,3,4
1,2,5
1,2,3
2,3,5

and as you can see from the lottery row, the winning numbers were 1,3,5.

Since no one won, and I have it set to rollover, the next pot is $2,400 already.
DogPatch Was Here :D

#7 cdkey

cdkey

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 May 2011 - 07:23 AM

Can you only win money from the lottery? It'd be cool if you could win exclusive items.

Also, how do I check which tickets I've submitted without buying a new one?

#8 planetby

planetby

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 09 May 2011 - 11:05 AM

Luv it m8 and can't wait for the release :) nice work

#9 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 09 May 2011 - 02:23 PM

View Postcdkey, on 09 May 2011 - 07:23 AM, said:

Can you only win money from the lottery? It'd be cool if you could win exclusive items.

Also, how do I check which tickets I've submitted without buying a new one?
Yeah, for now only money. Scratch offs would be a good venue to distro exclusive items tho. :)

You can view your tickets on the live lotto buy visiting it's page. The page can be accessed by clicking the link in the sidebar block or by clicking the balloon popup link on the lotteries page and then following the link in the popup.

View Postplanetby, on 09 May 2011 - 11:05 AM, said:

Luv it m8 and can't wait for the release :) nice work
thanks!
DogPatch Was Here :D

#10 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 09 May 2011 - 05:08 PM

We found a bug, my query was missing some quotations when multiple winners occur. I fixed it and reran the task manually. It looks like it split it up between me and SSZ like its supposed to (it ran multiple times so we got multiple jackpots, because of the bug). I got the PM, did you SSZ?

I changed the number of balls to 1 and kept the numbers from 1-5. So everyone should buy 5 tickets and get 1-5, that way we can test multiple winners again (and I don't think I've tested one ball before....).
DogPatch Was Here :D

#11 SSZ

SSZ

    Member

  • Members
  • PipPip
  • 11 posts

Posted 10 May 2011 - 11:02 AM

Yep, I got the PM. Twice, another one when your reran the query.

#12 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 11 May 2011 - 05:47 PM

No one bought tix for today's lottery and it did as it should: no winners and it didn't rollover the jackpot (since no one bought tix).

For the current lottery I maxed out the setting with 6 balls from 1-99. So the odds of any one ticket winning is 1 over 1,120,529,256. Hopefully that is the lowest odds a board will ever want to go, lol. And since no one will win, I'll set it to force a winner. So after tomorrow I'll make sure all went well, and then after my finals on Friday I'll probably post 1.5 to IPS first and then to IM and others after.
DogPatch Was Here :D

#13 SSZ

SSZ

    Member

  • Members
  • PipPip
  • 11 posts

Posted 12 May 2011 - 02:12 AM

Hey, I've have a request for the lottery. Random number chooser. Filling in 6 numbers for say 10 lottery tickets can be tiresome!

#14 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 12 May 2011 - 11:31 AM

I'll think on it eh.
DogPatch Was Here :D

#15 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 14 May 2011 - 08:05 AM

Another bug found and fixed. :) I think I'm going to add that random function requested, so that gives us some more testing time.
DogPatch Was Here :D

#16 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 14 May 2011 - 04:47 PM

Upgraded to 1.4.7 which includes a button to make random lottery number tickets.
DogPatch Was Here :D

#17 SSZ

SSZ

    Member

  • Members
  • PipPip
  • 11 posts

Posted 15 May 2011 - 07:24 AM

View Postemoney, on 14 May 2011 - 04:47 PM, said:

Upgraded to 1.4.7 which includes a button to make random lottery number tickets.

Random ticket numbers worked perfectly. Thanks mate!

#18 cdkey

cdkey

    Member

  • Members
  • PipPip
  • 27 posts

Posted 15 May 2011 - 08:31 AM

Kind of a bug. I bought 4 tickets and set all of them to random. I bought a 5th ticket and random'd it too but on the redirect screen it said that it had set random numbers for all 5 of my tickets yet the first four remained unchanged. Just a minor bug.

#19 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 15 May 2011 - 08:43 AM

yeah, that redirect was meant to say that now all of your lottery tickets for the current lotto were set, not necessarily that they were all done just now. But yeah, you are right, it was confusing, so I just changed it so it shows only the number you just did and I edited the text a bit. thanks!
DogPatch Was Here :D

#20 emoney emoney

emoney

    Administrator

  • Administrators
  • 1,091 posts

Posted 15 May 2011 - 04:41 PM

Been tweaking a few things here and there today, added the ability to show a Lottery left-side button, added ability to make Lottery the landing page, removed the My Tickets query for all but the latest/current lottery on the Lotteries page, that way the queries for the page stays around 13-14 instead of potentially 20+, added the ability to show the names of the winners on a single-lottery page and a lottery popup by hovering over the "Multiple Winners" text. Again, that isn't done on the main Lotteries page because it would be too many queries.

I think one more lottery, tomorrow morning, then after work if all is well I'll bump it up to 1.5 and install here and release on IPS. :)
DogPatch Was Here :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users