January 10, 200620 yr 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?
January 10, 200620 yr 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
January 10, 200620 yr 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:
January 10, 200620 yr -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?
January 10, 200620 yr 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
January 10, 200620 yr 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.
January 13, 200620 yr 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 :?
January 14, 200620 yr 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:::
January 14, 200620 yr 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!
Create an account or sign in to comment