SHARE
TWEET

OSRS Highscores

a guest Jul 21st, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $name = "yourusernamehere";
  3.         $rawdata = file_get_contents("https://secure.runescape.com/m=hiscore_oldschool/index_lite.ws?player=".$name);
  4.         $name = ucwords($name);
  5.         if (!$rawdata == "")
  6.         {
  7.             $data = str_replace("-1", "0", $rawdata);
  8.             $SplitSkill = explode("\n",$data);
  9.  
  10.             $Overall = explode(",",$SplitSkill[0]);
  11.             $Attack = explode(",",$SplitSkill[1]);
  12.             $Defence = explode(",",$SplitSkill[2]);
  13.             $Strength = explode(",",$SplitSkill[3]);
  14.             $Constitution = explode(",",$SplitSkill[4]);
  15.             $Ranged= explode(",",$SplitSkill[5]);
  16.             $Prayer = explode(",",$SplitSkill[6]);
  17.             $Magic= explode(",",$SplitSkill[7]);
  18.             $Cooking = explode(",",$SplitSkill[8]);
  19.             $Woodcutting = explode(",",$SplitSkill[9]);
  20.             $Fletching = explode(",",$SplitSkill[10]);
  21.             $Fishing = explode(",",$SplitSkill[11]);
  22.             $Firemaking = explode(",",$SplitSkill[12]);
  23.             $Crafting = explode(",",$SplitSkill[13]);
  24.             $Smithing = explode(",",$SplitSkill[14]);
  25.             $Mining = explode(",",$SplitSkill[15]);
  26.             $Herblore = explode(",",$SplitSkill[16]);
  27.             $Agility = explode(",",$SplitSkill[17]);
  28.             $Thieving = explode(",",$SplitSkill[18]);
  29.             $Slayer = explode(",",$SplitSkill[19]);
  30.             $Farming = explode(",",$SplitSkill[20]);
  31.             $Runecrafting = explode(",",$SplitSkill[21]);
  32.             $Hunter = explode(",",$SplitSkill[22]);
  33.             $Construction = explode(",",$SplitSkill[23]);
  34.            
  35.             for ($i=0; $i<=1; $i++)
  36.             {
  37.             $Overall[$i] = number_format($Overall[$i]);
  38.             $Attack[$i] = number_format($Attack[$i]);
  39.             $Defence[$i] = number_format($Defence[$i]);
  40.             $Strength[$i] = number_format($Strength[$i]);
  41.             $Constitution[$i] = number_format($Constitution[$i]);
  42.             $Ranged[$i] = number_format($Ranged[$i]);
  43.             $Prayer[$i] = number_format($Prayer[$i]);
  44.             $Magic[$i] = number_format($Magic[$i]);
  45.             $Cooking[$i] = number_format($Cooking[$i]);
  46.             $Woodcutting[$i] = number_format($Woodcutting[$i]);
  47.             $Fletching[$i] = number_format($Fletching[$i]);
  48.             $Fishing[$i] = number_format($Fishing[$i]);
  49.             $Firemaking[$i] = number_format($Firemaking[$i]);
  50.             $Crafting[$i] = number_format($Crafting[$i]);
  51.             $Smithing[$i] = number_format($Smithing[$i]);          
  52.             $Mining[$i] = number_format($Mining[$i]);          
  53.             $Herblore[$i] = number_format($Herblore[$i]);          
  54.             $Agility[$i] = number_format($Agility[$i]);        
  55.             $Thieving[$i] = number_format($Thieving[$i]);          
  56.             $Slayer[$i] = number_format($Slayer[$i]);          
  57.             $Farming[$i] = number_format($Farming[$i]);        
  58.             $Runecrafting[$i] = number_format($Runecrafting[$i]);          
  59.             $Hunter[$i] = number_format($Hunter[$i]);          
  60.             $Construction[$i] = number_format($Construction[$i]);
  61.             }
  62.         }
  63.             echo "Overall level: " . $Overall[1] . "<br>Overall XP: " . $Overall[2] . "<br>Overall Rank: " . $Overall[0] . "<br><br>";
  64.             echo "Attack level: " . $Attack[1] . "<br>Attack XP: " . $Attack[2] . "<br>Attack Rank: " . $Attack[0] . "<br><br>";
  65.             echo "Defence level: " . $Defence[1] . "<br>Defence XP: " . $Defence[2] . "<br>Defence Rank: " . $Defence[0] . "<br><br>";
  66.             echo "Strength level: " . $Strength[1] . "<br>Strength XP: " . $Strength[2] . "<br>Strength Rank: " . $Strength[0] . "<br><br>";
  67.             echo "HP level: " . $Constitution[1] . "<br>HP XP: " . $Constitution[2] . "<br>HP Rank: " . $Constitution[0] . "<br><br>";
  68.             echo "Ranged level: " . $Ranged[1] . "<br>Ranged XP: " . $Ranged[2] . "<br>Ranged Rank: " . $Ranged[0] . "<br><br>";
  69.             echo "Prayer level: " . $Prayer[1] . "<br>Prayer XP: " . $Prayer[2] . "<br>Prayer Rank: " . $Prayer[0] . "<br><br>";
  70.             echo "Magic level: " . $Magic[1] . "<br>Magic XP: " . $Magic[2] . "<br>Magic Rank: " . $Magic[0] . "<br><br>";
  71.             echo "Cooking level: " . $Cooking[1] . "<br>Cooking XP: " . $Cooking[2] . "<br>Cooking Rank: " . $Cooking[0] . "<br><br>";
  72.             echo "Woodcutting level: " . $Woodcutting[1] . "<br>Woodcutting XP: " . $Woodcutting[2] . "<br>Woodcutting Rank: " . $Woodcutting[0] . "<br><br>";
  73.             echo "Fletching level: " . $Fletching[1] . "<br>Fletching XP: " . $Fletching[2] . "<br>Fletching Rank: " . $Fletching[0] . "<br><br>";
  74.             echo "Fishing level: " . $Fishing[1] . "<br>Fishing XP: " . $Fishing[2] . "<br>Fishing Rank: " . $Fishing[0] . "<br><br>";
  75.             echo "Firemaking level: " . $Firemaking[1] . "<br>Firemaking XP: " . $Firemaking[2] . "<br>Firemaking Rank: " . $Firemaking[0] . "<br><br>";
  76.             echo "Crafting level: " . $Crafting[1] . "<br>Crafting XP: " . $Crafting[2] . "<br>Crafting Rank: " . $Crafting[0] . "<br><br>";
  77.             echo "Smithing level: " . $Smithing[1] . "<br>Smithing XP: " . $Smithing[2] . "<br>Smithing Rank: " . $Smithing[0] . "<br><br>";
  78.             echo "Mining level: " . $Mining[1] . "<br>Mining XP: " . $Mining[2] . "<br>Mining Rank: " . $Mining[0] . "<br><br>";
  79.             echo "Herblore level: " . $Herblore[1] . "<br>Herblore XP: " . $Herblore[2] . "<br>Herblore Rank: " . $Herblore[0] . "<br><br>";
  80.             echo "Agility level: " . $Agility[1] . "<br>Agility XP: " . $Agility[2] . "<br>Agility Rank: " . $Agility[0] . "<br><br>";
  81.             echo "Thieving level: " . $Thieving[1] . "<br>Thieving XP: " . $Thieving[2] . "<br>Thieving Rank: " . $Thieving[0] . "<br><br>";
  82.             echo "Slayer level: " . $Slayer[1] . "<br>Slayer XP: " . $Slayer[2] . "<br>Slayer Rank: " . $Slayer[0] . "<br><br>";
  83.             echo "Farming level: " . $Farming[1] . "<br>Farming XP: " . $Farming[2] . "<br>Farming Rank: " . $Farming[0] . "<br><br>";
  84.             echo "Runecrafting level: " . $Runecrafting[1] . "<br>Runecrafting XP: " . $Runecrafting[2] . "<br>Runecrafting Rank: " . $Runecrafting[0] . "<br><br>";
  85.             echo "Hunter level: " . $Hunter[1] . "<br>Hunter XP: " . $Hunter[2] . "<br>Hunter Rank: " . $Hunter[0] . "<br><br>";
  86.             echo "Construction level: " . $Construction[1] . "<br>Construction XP: " . $Construction[2] . "<br>Construction Rank: " . $Construction[0] . "<br><br>";
  87.             ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top