Donate

If you find any of the plugins I write useful then please consider making a donation. These donations can be used to offset the cost of my web hosting allowing me to produce more plugins for the e107 community

Welcome

Username:

Password:


Remember me

Gluons Gluons

Login to view your stats

Online

Guests: 3, Members: 0 ...

most ever online: 377
(Members: 0, Guests: 377) on 07 Jun : 07:44

Members: 1222
Newest member: rsetser

Forums

e107 Gold :: Forums :: Gold Additional Plugins :: Gold Lottery
 
<< Previous thread | Next thread >>
Rollover problem
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, CrouchingPanther, 2dopey, schlrech, NFM, nlstart, gary231178, SimonP, Hobbz, fivestar, ^Shei^, DJColby
Author Post
Scope

Mon Jan 12 2009, 09:08pm
[ ]
Member: 281
Joined: 22-Jul-2008

Posts: 1
Gluons: gold 47,060
Spent: gold 4,800

Send a present to this user
View their 0 presents
View their 0 assets

I'm using Gold Lottery 1.1.9 on Gold System 4.1.11. I am trying to create a daily lottery that won't reset everyday if there is gold leftover in the jackpot. So I created a lottery for everyday, and enabled r ollover, however I noticed that everyday the jackpot r olled over, it doubled. So Monday the lottery was 250, and then Tuesday 500, Wednesday 1000, Thursday 2000, etc... This would make the jackpot too high too fast and my members winning too much gold. Is this a coding error or my error? I setup each daily lottery as follows:

Pot: 250
Winnings %: 1 ball - 10%, 2 balls - 20%, 3 balls - 30%, 4 balls - 40%, 5 balls - 50%, 6 balls - 100%

I'd like for the pot to be setup to simply add 250 to the remaining gold leftover from each lottery everyday, can this be done? If so, how? Thank you.

Ed

[ Edited Mon Jan 12 2009, 09:23pm ]

Back to top
orb

Sun Aug 02 2009, 10:46pm
[ ]
Member: 140
Joined: 5-Oct-2008

Posts: 29
Gluons: gold 50,970
Spent: gold 18,750

Send a present to this user
View their 0 presents
View their 0 assets

I too notice this problem, but I think it also adds in the amount of money that people put in to it as well, AND I think it adds the payouts to everybody.

So if somebody got 50% of the lotto that was $500.. they got $250

But the lover appears to take $500 + $500 + $250 so now the lotto would be at $1250, instead of $1000.

The last game that I played I spent 7,000 of my gold into it and won back 2500 of it. Somewhere along the way the lotto is doubling and adding and doing some fancy math..
Back to top
orb

Sun Aug 02 2009, 10:51pm
[ ]
Member: 140
Joined: 5-Oct-2008

Posts: 29
Gluons: gold 50,970
Spent: gold 18,750

Send a present to this user
View their 0 presents
View their 0 assets

Actually, looking at the code it DOES increment the lover amount by the winnings of each player!!!!!

Not sure what the Gold Father was thinking in this case....
Back to top
orb

Sun Aug 02 2009, 11:05pm
[ ]
Member: 140
Joined: 5-Oct-2008

Posts: 29
Gluons: gold 50,970
Spent: gold 18,750

Send a present to this user
View their 0 presents
View their 0 assets

I dont know PHP that well, but in the file " gold_lottery\includes\gol d_lottery_class.php" there is a line that specifies the glotto_rollover amount is incremented by the amount of winnings each time somebody triggers a winning amount.

Later it is updated in the database with a line that reads something to the effect of "glotto_prizefund = glotto_prizefund+glotto_r ollover

So that is exactly why it doubles, or even more so.

If the Gold Father would be so kind as to reply to this and show us the fix needed (or provide a quick update to the file) so that it does not lover everybody's winnings.

I'm sure it's just a quick PHP edit and fix, but like I said. I dont know PHP as well as I should. If the GF doesn't get back to us soon on this I will poke around and see what I can do to fix it (w3schools.com here I come!)
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 3 weeks, 1 hour, 5 mins, 19 secs ago ]
  • diehard gold 23,475
    [ 4 years, 3 months, 4 weeks, 1 day, 13 hours, 8 mins, 2 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 4 months, 1 week, 4 days, 3 hours, 12 mins, 12 secs ago ]
  • gefy gold 300,240
    [ 4 years, 4 months, 3 weeks, 2 days, 4 hours, 20 mins, 56 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 4 years, 6 months, 4 days, 18 hours, 38 mins, 38 secs ago ]
  • swedsnake gold 23,540
    [ 4 years, 6 months, 5 days, 15 hours, 39 mins, 59 secs ago ]
  • stedie gold 9,326
    [ 4 years, 7 months, 1 day, 45 mins, 19 secs ago ]
  • orb gold 332,720
    [ 4 years, 7 months, 3 days, 1 hour, 28 mins, 5 secs ago ]
  • rossv gold 49,150
    [ 4 years, 7 months, 1 week, 3 days, 21 hours, 22 mins, 52 secs ago ]
  • orb gold 52,358
    [ 4 years, 7 months, 2 weeks, 6 days, 22 hours, 43 mins, 42 secs ago ]

Online

Guests: 3 Members: 0

    On this page: 1
    Members: 1222, Newest: rsetser

    Online

    Guests: 3, Members: 0 ...

    most ever online: 377
    (Members: 0, Guests: 377) on 07 Jun : 07:44

    Members: 1222, Newest member: rsetser

    Unanswered Posts

    The following forum posts remain unanswered
    just testing 05 May : 22:21
    Dead Site 05 May : 01:41
    Paypal return a[...] 24 Oct : 17:02
    paypal fail 24 Oct : 16:39
    Auto Userclass 09 Mar : 20:53
    Wishing well Qu[...] 01 Sep : 17:51
    Banner Ads for [...] 30 May : 22:43
    Golf For Calend[...] 30 May : 22:40
    to set up to a [...] 17 Feb : 20:48
    content plugin [...] 11 Oct : 01:32

    View all unanswered posts
    Render time: 0.0802 sec, 0.0180 of that for queries. DB queries: 88. Memory Usage: 1,270kB