How much money earned Malivox?

A place for players to do role playing, discuss their guilds, etc.
Post Reply
Turmfalke
Manasource
Manasource
Posts: 350
Joined: 10 Aug 2008, 18:28
Location: Maligree's Wonderful Garden

How much money earned Malivox?

Post by Turmfalke »

Based on his script and his momentary prizes. I figured out that the first level got 124 times bought and the second 10 times. For the next step I wrote a small program in c++:

Code: Select all

#include <iostream>
using namespace std;

int main()
{
double x = 0;

for (int i =0; i<125;i++)
{
x = x + (10000000/(i+1));
cout << "Nach dem " << i << " Durchlauf hat er " << x << " eingenommen \n";
}
for (int i =0; i<11;i++)
{
x = x + (10000000*(i+1));
cout << "Nach dem " << i << " Durchlauf hat er " << x << " eingenommen \n";
}
return 0;
}
(it isn't final and the text is a kind of debug message wrote in written German)

At the end this program calculated Malivox capital to 714095000gp.

I think there must be at least one bug in the code but at the moment I can't found them.


[sorry for my bad english, i am still learning the language]
I stand beside the holy man
The monarchs fear my wrath
None may move the way I can
Ever the crooked path
a knight
User avatar
Shaggy
Novice
Novice
Posts: 132
Joined: 22 Apr 2008, 12:56
Location: Liverpool, England

Re: How much money earned Malivox?

Post by Shaggy »

If you want to do it accurately, use ints, not doubles - the server works in integers.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: How much money earned Malivox?

Post by Crush »

Your error is that you got the cost of the second reset wrong. The cost of the second reset is one million * number of uses, your program uses ten million * number of uses.

When you correct this error you get the correct result of 120.095.189 GP
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Platyna
Grand Knight
Grand Knight
Posts: 2215
Joined: 19 Nov 2005, 13:19
Location: Poland
Contact:

Re: How much money earned Malivox?

Post by Platyna »

Cool info messages in German.

Regards.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: How much money earned Malivox?

Post by kr0n05931 »

Atleast it's in the same language family as English. :lol:
Lazy bum.
User avatar
fate
Warrior
Warrior
Posts: 402
Joined: 20 Mar 2008, 14:34

Re: How much money earned Malivox?

Post by fate »

Hi,

note that Malivox, too, was reset at one point, so those numbers represent only partial information.

-- fate
Turmfalke
Manasource
Manasource
Posts: 350
Joined: 10 Aug 2008, 18:28
Location: Maligree's Wonderful Garden

Re: How much money earned Malivox?

Post by Turmfalke »

@Crush: Ah thx that is it.

120mio is still a really impressive amount of money for me it looks like Malivox is set for life.

@Fate: that's bad but I don't think there is anything I could do.
I stand beside the holy man
The monarchs fear my wrath
None may move the way I can
Ever the crooked path
a knight
Post Reply