Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Code for Highscores retrieval?

Featured Replies

Hi, I was thinking about making a webpage for keeping track of players' goals by using somthing similar to tip.it calculators. How it will work is that the player enters their username, their target levels for their skills, and the methods they will use to level each and it will retrive their stats, and calculate how many of each they would need to do, and how close they are to reaching their goal via a percentage and somthing indicating the xp needed. The problem is, I don't know how to have it retrieve the players' xp from the highscores table. If it can't do that, and they have to do it manually, then it can't automatically update each time they visit that page.

 

 

 

 

 

 

 

So, could someone please explain to me how this is done?

i dont think this is the right place to post that kinda thing...

madeinpalestineborder8gs.png

 

In Khazakstan we say God, Man, Horse, Dog, then Woman, Rat and small cockroach..

M.A.D 4 Lyfe

  • Author

Thats funny, becuse someome posted somthing similar to this in General P2P and they said it should be posted here. Make up your mind, mods! :lol:

-Peronix-, Kryptic isn't a mod ;)

 

 

 

 

 

 

 

You could try asking the authors of RuneScript - Cruiser, Looce, Micksam7, spling, and Urza - about how they do it.

612d9da508.png

Mercifull.png

Mercifull <3 Suzi

"We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12

  • Author
-Peronix-, Kryptic isn't a mod ;)

 

 

 

 

 

 

 

You could try asking the authors of RuneScript - Cruiser, Looce, Micksam7, spling, and Urza - about how they do it.

 

 

 

 

 

 

 

I know he isn't a mod, but a mod obviously did move it.

The link Matt posted is good, but WAY overdo if you ask me... You need to be familiar with PHP to do this (or at least thats the most common way), and simply use file_get_contents & either explode or a preg function to split the site up... If you are familar with coding you should easily be able to find the url which you need to use file_get_contents on... My script (the one on Tip.It) is only about 10-12 lines, it's not hard at all, and there's no way to make it with classes :?

This is how I get my fishing exp off of RuneScape's highscore list, using PHP:

 

 

 

 

 

 

 

<?php



 //Get the source of highscores and replace newlines



 $str =  str_replace("\n", "", file_get_contents("http://hiscore-web.runescape.com/lang/en/aff/runescape/hiscorepersonal.cgi?username=Antony_7"));



 //String to match in $str - used with in preg_match



 $search = "/.{0,10}<\/td><\/tr>/i";



 //An array of strings of extra junk that is matched with preg_match



 $clear = array("", "");



 //Find that match - http://us2.php.net/preg_match



 preg_match($search, $str, $match);



 //replace a few extra junk(refer to $clear) that was matched



 $final_exp = str_replace($clear, "", $match[0]);







echo $final_exp;



?>

 

 

 

 

 

 

 

It's not the prettiest and probably not the most efficient code, but it works.

:::Antony 7:::

http://www.rscript.org/rsstats.mrc

 

 

 

on *:TEXT:!stats *:*:{



; ################## ;



; ### EDIT BELOW ### ;



; ################## ;



set %HCOLOR 04



;### CHANGE ^^ THOSE TWO NUMBERS TO CHANGE THE LEVEL COLOR.



set %SCOLOR 07



;### CHANGE ^^ THOSE TWO NUMBERS TO CHANGE THE SEPERATOR COLOR.



; ######################### ;



; ### DO NOT EDIT BELOW ### ;



; ######################### ;



inc %buildid 1



set $+(%,build.name,%buildid) $replace($2-,$chr(32),$chr(95))



set $+(%,statschan,%buildid) $iif($chan,$chan,$nick)



sockopen $+(build,%buildid) hiscore-web.runescape.com 80



}



on *:sockopen:build*:{



var %id = $right($sockname,-5)



sockwrite -nt $sockname GET /aff/runescape/hiscorepersonal.cgi?username= $+ $($+(%,build.name,%id),2) HTTP/1.0



sockwrite -nt $sockname Host: hiscore-web.runescape.com $+ $crlf $+ $crlf



}



on *:sockread:build*:{



if ($sockerr) { echo -s error $sockerr }



else {



var %read | sockread %read | var %id = $right($sockname,-5)



if (

Check out

RuneScript and RuneTracker!

 

sig37.gif

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.