Page 1 of 1

Runescape Highscores [solved]

Posted: Wed Aug 15, 2007 8:08 am
by king spengo
Hi I'm desiging a website for a clan I am in for a game called Runescape. I would like to design a hiscore list for clan members which grabs their highscores from the website.

The address for the highscores is http://hiscore.runescape.com/index_lite ... ing_Spengo and displays the following information:

157621,1408,12135730 298095,74,1119993 370244,70,751998 363536,75,1259782 324898,75,1222751 607237,60,274534 260546,53,139503 155988,77,1505495 190778,75,1244258 447372,71,850148 670352,52,123747 188539,73,1041277 532415,52,123962 86960,66,506357 380536,55,168966 561390,62,367608 118932,53,137059 57124,64,407680 107646,59,258856 294756,43,55525 120255,46,68075 183307,48,91476 176855,43,54521 30472,62,362159

I need to be able to search the above information for the values that are embolded. I am using the following code to grab this information from the webpage:

Code: Select all

<?php
$array = file('http://hiscore.runescape.com/index_lite.ws?player=King_Spengo');
$content  =  implode("",  $array);
?>
Of course the information will be different for each player so can anyone point me in the right direction on how to select the values I want.

Posted: Wed Aug 15, 2007 8:27 am
by CoderGoblin
Where do you get the requirement list from (the bold items) ?

array-intersect may be of use if you have them both as an array.

Posted: Wed Aug 15, 2007 8:37 am
by king spengo
The values in bold are the player's skills in the game which range from 1 to 99, it is those values I wish to display in my own hiscore list.

Posted: Wed Aug 15, 2007 9:40 am
by superdezign
king spengo wrote:The values in bold are the player's skills in the game which range from 1 to 99, it is those values I wish to display in my own hiscore list.
Well if you know that the skills are limited to 2-3 digits, it should be easy to extra them.