Peronix Posted January 10, 2006 Share Posted January 10, 2006 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? Link to comment Share on other sites More sharing options...
Kryptic Posted January 10, 2006 Share Posted January 10, 2006 i dont think this is the right place to post that kinda thing... In Khazakstan we say God, Man, Horse, Dog, then Woman, Rat and small cockroach..M.A.D 4 Lyfe Link to comment Share on other sites More sharing options...
Peronix Posted January 10, 2006 Author Share Posted January 10, 2006 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: Link to comment Share on other sites More sharing options...
Vape Posted January 10, 2006 Share Posted January 10, 2006 -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. Where the bloody hell are you? Link to comment Share on other sites More sharing options...
Mercifull Posted January 10, 2006 Share Posted January 10, 2006 This should help you http://www.anthd.com/rithiur/php/rshilib_info.php 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 Link to comment Share on other sites More sharing options...
Peronix Posted January 10, 2006 Author Share Posted January 10, 2006 -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. Link to comment Share on other sites More sharing options...
Ks_Jeppe Posted January 13, 2006 Share Posted January 13, 2006 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 :? Link to comment Share on other sites More sharing options...
Antony Posted January 14, 2006 Share Posted January 14, 2006 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::: Link to comment Share on other sites More sharing options...
spling Posted January 14, 2006 Share Posted January 14, 2006 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now