• Log in or sign up for an account here: https://www.sythe.org/login

[PHP] Runescape Calculator Source [PHP]

Rdogg999

Active Member
Joined
Jan 16, 2008
Sythe Gold
0
Messages
215
Location
127.0.0.1
anyone here got a runescape Calculator Source coded in PHP?

plz post dl link or something:laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh:
 
i could give you my javascript calculation function.
 
http://forum.runescape.com/forums.ws?22,23,466,33330028

If you don't want to read through, this is the code:
Code:
<?php
// Formula version 4.0
// Created by MaxWaterman
// Formula by MaxWaterman, Fern1970, Helcaterian,
// Oblivion590, Hans980 and Benmarchant.
// Reproduction without this comment is prohibited.

function combatLevel($attack, $defence, $strength, $hp, $prayer, $ranged, $magic, $summoning) {
$base = ($defence + $hp + floor($prayer / 2) + floor($summoning / 2)) * 0.25;

$melee = ($attack + $strength) * 0.325;
$ranger = floor($ranged * 1.5) * 0.325;
$mage = floor($magic * 1.5) * 0.325;

return $base + max($melee, $ranger, $mage);
}
?>

EDIT: Sorry, looks like vbulletin screws up the code. Just go to that link I said and scroll down.
EDIT2: ;-; nevermind@last edit.
 
Runescape Gamblingrunescape gambling
Back
Top