Author Topic: Gold bug..  (Read 11148 times)

0 Members and 1 Guest are viewing this topic.

Offline erwin

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
Gold bug..
« on: May 15, 2008, 05:04:13 am »
..is a nice story by Edgar Allan Poe.

But seriously..there's a small bug with split.

'gold'

        _                   4 DIMENSIONS FINANCIAL SERVICES
  _    |-|  _   -------------------------------------------
 |-|_  |-|_|-|  Gold in Bank:         [        176,698,033]
 |_|-| |_|-|_|  ------------------------------------------- 
 |_|-| |_|-|_|  Gold Carried:         [         25,730,089]
   |_|   |_|    -------------------------------------------
                Total Balance:        [        202,428,122]
                -------------------------------------------
                Tokens on file:     0 brass,      1 bronze.
                                    0 silver,     0 gold.
                -------------------------------------------
                Tradepoints   :     0 

'split 1'

You split 1 coins among 2 members -- 0 coins each.
1 coin was not splitable, so you keep the money.

*Edit: Need to be grouped to do this.

'gold'

        _                   4 DIMENSIONS FINANCIAL SERVICES
  _    |-|  _   -------------------------------------------
 |-|_  |-|_|-|  Gold in Bank:         [        176,698,033]
 |_|-| |_|-|_|  ------------------------------------------- 
 |_|-| |_|-|_|  Gold Carried:         [         25,730,090]
   |_|   |_|    -------------------------------------------
                Total Balance:        [        202,428,122]
                -------------------------------------------
                Tokens on file:     0 brass,      1 bronze.
                                    0 silver,     0 gold.
                -------------------------------------------
                Tradepoints   :     0 

So, you can earn about..86400 gold coins per day with this..
« Last Edit: May 15, 2008, 06:20:39 am by erwin »

Offline Prometheus

  • the bang your head against the wall coder.
  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
    • View Profile
Re: Gold bug..
« Reply #1 on: May 15, 2008, 06:20:47 am »
Okay this was in a group with 2 people. Split 1 by itself doesn't do anything. But for some reason in a group it does a split of 1 but it is probably trying to round up 1 for some reason.

Prometheus.

Offline erwin

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
Re: Gold bug..
« Reply #2 on: May 15, 2008, 06:56:53 am »
Something interesting.

If you are in a group with n number of people, and split (2n-1) coins, there's a potential gain of (n-1) coins.

Eg, I group with Lionheart and Amaimon, and I type split 5.

The number of coins on me don't increase / decrease, Amaimon gains 1 coin, Lionheart gains 1 coin.

Net gain of 2 coins.

Not very serious (can't really be exploited on a wide scale), but quite interesting.

Offline Prometheus

  • the bang your head against the wall coder.
  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
    • View Profile
Re: Gold bug..
« Reply #3 on: May 15, 2008, 07:01:37 am »
Something else to take a look at. Make sure to bug it as well in case I can't figure this out.

Prometheus.

Offline Mordecai

  • Administrator
  • Full Member
  • *****
  • Posts: 107
  • Has delusions of adequacy
    • View Profile
    • Multiplayer Online Game Anyone?
    • Email
Re: Gold bug..
« Reply #4 on: May 18, 2008, 03:38:41 am »
Is this fixed?

Offline Prometheus

  • the bang your head against the wall coder.
  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
    • View Profile
Re: Gold bug..
« Reply #5 on: May 18, 2008, 05:06:19 am »
I fixed the 1 gold issues. I'm still trying to get my head wrapped around the code of the group split. It looks like it divides it by group_members and then also takes the remainder and that is where I get a little lost on it.Trying to figure this out.

Prometheus.