Stun alch calculator

Automatic

User is banned.
Reputation
0
inb4thisishit

It's not meant to be good, just something to use when I'm to lazy to use a calculator.

I couldn't find one of google so (pretty sure my maths is right, didn't double check):

http://automaticcoding.site90.net/StunAlch_Calculator.php

source:
PHP:
<?php
	if(!isset($_GET["xp"]) || !isset($_GET["target"])) {
		getLevels();
	} else {
		printOutput();
	}
	
	
	function getLevels() {
		echo(
		"<form method=\"get\">".
		"Current XP:".
		"<br>".
		"<input type=\"text\" name=\"xp\">".
		"<br><br>".
		"Target level:".
		"<br>".
		"<input type=\"text\" name=\"target\">".
		"<br>".
		"<input type=\"submit\">".
		"</form>");
	}
	
	function printOutput() {
		for($L=1;$L<100;$L++) {
			if(!isset($targetXP)) {
				if(experiance($L+1) > experiance($_GET["target"])) {
					$targetXP = experiance($L);
					$casts = round(($targetXP - $_GET["xp"])/150);
					echo($casts);
					echo("<br>That's <b>".$casts."</b> soul runes, <b>".$casts."</b> Nature runes and <b>".($casts * 5)."</b> Fire runes!");
				}
			}
		}
	}
	
	function experiance($L) {
		$a=0;
		for($x=1; $x<$L; $x++) {
			$a += floor($x+300*pow(2, ($x/7)));
		}
		return floor($a/4);
	}
?>
 
Fatal error: Maximum execution time of 10 seconds exceeded in /home/a1305329/public_html/StunAlch_Calculator.php on line 40

D:
 
Will said:
Fatal error: Maximum execution time of 10 seconds exceeded in /home/a1305329/public_html/StunAlch_Calculator.php on line 40

D:

lol'd. What kind of high-ass target level did you put? Took longer than 10 seconds to do:

$a += floor($x+300*pow(2, ($x/7)));
 
I put current xp 1m, target xp 12m.
 
Oh shit, muhhhh badd
 
Idk if this works 100% correct =/
It said 83k natures for 200exp till 99

I stun alched ALLOT more then that I think at least=/
 
Unspoken said:
Idk if this works 100% correct =/
It said 83k natures for 200exp till 99

I stun alched ALLOT more then that I think at least=/

83k stuns AND alchs. Not one or the other.

83,000 * 150 (60 + 90) = around 12.5M.
 
Yea but when I was stun alching Zombies under the mage place
I was alching allot more then stunning Since the zombies were already stunned
So idk I used more alchs =/
 
Unspoken said:
Yea but when I was stun alching Zombies under the mage place
I was alching allot more then stunning Since the zombies were already stunned
So idk I used more alchs =/

Why you need -68 magic bonus, you fail every time.
 
Back
Top