Jump to content

Help..


Faustvii
 Share

Recommended Posts

  • Moderators

$calc = 30 * 29 * 1.1^ 29
MsgBox ( 0, "calc", "you get " & Int($calc) & " each hour" )

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

okay.. why wont this work..

60*(1-1,5^ level)/(-0,5) metal and 15 * (1-1,5^ level)/(-0,5) krystal

let say level is 17 and metal is 17000 and krystal is 7000.. why wont this work then?

60*(1-1,5^ 17)/(-0,5) 17000 15 * (1-1,5^ 17)/(-0,5) 7000

i got this from

here

Edited by Liope
Link to comment
Share on other sites

i cant read germany very well but ill copy paste what it says..

Metallmine: 60 * (1 - 1,5 ^ Stufe) / (-0,5) Met und 15 * (1 - 1,5 ^ Stufe) / (-0,5) Kris

Die errechneten Werte weichen minimal von den tatsächlichen Gesamtkosten ab, weil eigentlich die Kosten jeder Stufe abgerundet werden müssten. Der Unterschied ist jedoch vernachlässigbar klein und beträgt in etwa die Hälfte der Stufenzahl. Bei Metallmine 33 gibt es z.B. eine Abweichung von 16 Metall. Bei 77,7 Millionen Gesamtkosten fällt das aber nicht wirklich ins Gewicht.

Bei allen anderen Gebäuden: (- Stufe1Kosten) * (1-2 ^ Stufe)

Wichtig: Das Minus vor „Stufe1Kosten“ nicht vergessen!

Hope anyone can help whit this..

Edited by Liope
Link to comment
Share on other sites

ok

Die errechneten Werte weichen minimal von den tatsächlichen Gesamtkosten ab, weil eigentlich die Kosten jeder Stufe abgerundet werden müssten. Der Unterschied ist jedoch vernachlässigbar klein und beträgt in etwa die Hälfte der Stufenzahl. Bei Metallmine 33 gibt es z.B. eine Abweichung von 16 Metall. Bei 77,7 Millionen Gesamtkosten fällt das aber nicht wirklich ins Gewicht.

Bei allen anderen Gebäuden: (- Stufe1Kosten) * (1-2 ^ Stufe)

Wichtig: Das Minus vor Stufe1Kosten nicht vergessen!

means:

the values you get may vary a little from the whole costs, 'cause the costs of every level should be rounded down. the difference is not that big, it is just about the half of the level. at the "Metallmine" lvl 33 there is a difference of 16.

it doesn't matter at a cost of 77.7 million.

at all the other buildings: (- Stufe1Kosten) * (1-2 ^ Stufe)

ATTENTION: don't forget the - in front of Stufe1Kosten

i hope that helps....

[font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]

Link to comment
Share on other sites

could you give me a link where you've taken this?

maybe i can look...

HI,

what is your problem, exactly?

I´m away for a week (snowbarding) :-) But maybe I can translate when I´m back. :o

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

  • 4 weeks later...

Anyone working on Ogame scripts, feel free to PM me. I'm in Uni13! :o

Local $lvl = 29
Local $calc = Round(30 * $lvl * 1.1 ^ $lvl)
Local $metal_cost = Round(60 * (1.5 ^ ($lvl - 1))), $crystal_cost = Round(15 * (1.5 ^ ($lvl - 1)))
MsgBox ( 0, "calc", "you get " & $calc & " each hour" )
MsgBox ( 0, "calc", "it cost metal: " & $metal_cost & " crystal: " & $crystal_cost)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...