Faustvii Posted February 10, 2006 Share Posted February 10, 2006 $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 ? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 10, 2006 Moderators Share Posted February 10, 2006 $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 More sharing options...
Faustvii Posted February 10, 2006 Author Share Posted February 10, 2006 tyvm SmOke_N Link to comment Share on other sites More sharing options...
Faustvii Posted February 10, 2006 Author Share Posted February 10, 2006 (edited) okay.. why wont this work..60*(1-1,5^ level)/(-0,5) metal and 15 * (1-1,5^ level)/(-0,5) krystallet 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) 7000i got this fromhere Edited February 10, 2006 by Liope Link to comment Share on other sites More sharing options...
Valuater Posted February 10, 2006 Share Posted February 10, 2006 (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 February 10, 2006 by Valuater Link to comment Share on other sites More sharing options...
Faustvii Posted February 10, 2006 Author Share Posted February 10, 2006 (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 February 10, 2006 by Liope Link to comment Share on other sites More sharing options...
Faustvii Posted February 10, 2006 Author Share Posted February 10, 2006 Anyone?? Link to comment Share on other sites More sharing options...
GrungeRocker Posted February 10, 2006 Share Posted February 10, 2006 okDie 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 Stufe1Kosteni hope that helps.... [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Faustvii Posted February 10, 2006 Author Share Posted February 10, 2006 i still dont think ill be able to calc this out.. but ty for your help.. Link to comment Share on other sites More sharing options...
GrungeRocker Posted February 10, 2006 Share Posted February 10, 2006 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] Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 10, 2006 Share Posted February 10, 2006 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. 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 More sharing options...
Fur Posted March 6, 2006 Share Posted March 6, 2006 Anyone working on Ogame scripts, feel free to PM me. I'm in Uni13! 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now