Sign in to follow this  
Followers 0
Faustvii

Help..

12 posts in this topic

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

This gives 13800.890885392 is there a way to do so its only 13800 ?

Share this post


Link to post
Share on other sites



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


[center]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.[/center]

Share this post


Link to post
Share on other sites

tyvm SmOke_N :lmao:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

** i dont know of this... (1-1,5^ 17)

so, 1-1 in my head is 0.... and 0 x anything is 0

** i DO know this

you said

metal and 15

you show

17000 15

shouldn't it be

17000 + 15

( + for the "and')

??

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Anyone??

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

i still dont think ill be able to calc this out.. but ty for your help..

Share this post


Link to post
Share on other sites

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

maybe i can look...


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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0