[PHP] Runescape Calculator Source [PHP]

Discussion in 'Web Programming' started by Rdogg999, Aug 31, 2008.

[PHP] Runescape Calculator Source [PHP]
  1. Unread #1 - Aug 31, 2008 at 10:55 AM
  2. Rdogg999
    Joined:
    Jan 16, 2008
    Posts:
    215
    Referrals:
    0
    Sythe Gold:
    0

    Rdogg999 Active Member

    [PHP] Runescape Calculator Source [PHP]

    anyone here got a runescape Calculator Source coded in PHP?

    plz post dl link or something:laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh:
     
  3. Unread #2 - Aug 31, 2008 at 12:23 PM
  4. Deacon Frost
    Joined:
    Jan 30, 2007
    Posts:
    2,905
    Referrals:
    3
    Sythe Gold:
    57

    Deacon Frost Grand Master
    Banned

    [PHP] Runescape Calculator Source [PHP]

    Why not write one yourself?


    What exactly do you need it to do?
     
  5. Unread #3 - Sep 1, 2008 at 12:12 PM
  6. Puzzle
    Joined:
    May 6, 2005
    Posts:
    846
    Referrals:
    0
    Sythe Gold:
    0

    Puzzle Apprentice

    [PHP] Runescape Calculator Source [PHP]

    i could give you my javascript calculation function.
     
  7. Unread #4 - Sep 8, 2008 at 12:13 AM
  8. AADude
    Joined:
    Apr 3, 2008
    Posts:
    43
    Referrals:
    0
    Sythe Gold:
    0

    AADude Member

    [PHP] Runescape Calculator Source [PHP]

    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.
     
< [PHP] Runescape goal signatures | Need someone good with CSS >

Users viewing this thread
1 guest


 
 
Adblock breaks this site