Scripts

[runescape] combat formula van tip.it

In dit script word je combat level opgehaald door tip.it's combat formule. tip.it beweer dat hun formule 100% correct is. hoe je de functie moet gebruiken staat boven aan beschreven! owja om je runescape levels op te halen, kan je dit script gebruiken: http://www.phphulp.nl/php/scripts/2/532/ Niet door mij gemaakt maar ik vertrouw hem wel ;-)

runescape-combat-formula-van-tipit
<?php

# - ////////////////////
# by: CheiChei
# how to use: like: echo rscombat(ATTACK LVL, STRENGTH LVL, DEFENSE LVL, HIT POINTS LVL, MAGIC LVL, PRAY LVL, RANGE LVL);
#			  like: echo rscombat(82, 81, 81, 83, 76, 59, 77); < my stats now ^^
# comments:   if you use this for your site please add a link to http://www.tip.it, they made the formula used in this script!!!
# - \\\\\\\\\\\\\\\\\\\\

function rscombat($att, $str, $def, $hp, $mag, $pray, $ran)
{
	# tip.it's uitreken pagina
	$ch = curl_init("http://www.tip.it/runescape/combat_calc.php");
	
	# post instellen + post variables instellen
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, 'attack='.$att.'&strength='.$str.'&defense='.$def.'&hits='.$hp.'&magic='.$mag.'&prayer='.$pray.'&ranged='.$ran);
	
	# dataterug krijgen
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	
	# output
	$output = curl_exec($ch);
	
	# filter je combat level eruit
	$output = explode('<b>', $output);
	$output = explode('</b>', $output[1]);
	$output = $output[0];
	
	# geef het weer
	echo $output;
}
?>

Reacties

0
Nog geen reacties.