Top

Comments

  (25)  RSS
RussellReal's
Mudkipz
Comments: 24
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Jan 11, 2008 12:03 pm
dude this wont work for me, is there any editing i neeed to do?
156321
Comments: 1
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Dec 19, 2007 5:36 am
ZZZZZZZZZ
spitfire3292
Comments: 36
 
Profile:  RussellReal
Posted on Nov 14, 2007 5:46 pm
I love you <_< Haha hey man. How've you been? You're a great PHP scripter and mIRC! Keep up the work man.
mountaindew
Comments: 1,640
 
mIRC Snippet:  Ping Pong
Posted on Sep 27, 2007 3:42 pm
do .timeroff so u dont flood the status window :P

but i think this is really cool
RussellReal
Comments: 40
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Sep 18, 2007 7:03 pm
// Same as what I described in the introduction to the snippet, but for the "slower" people, here it is all the way done.
function getStats($n) {
$d = file_get_contents("http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user1=".$n);
preg_match_all("/<td align=\\"left\\">(.*?)<\\/tr>/s",$d,$m);
$u = array("\\n","\\r");
$g = array('/^\\s+/','/\\s{2,}/');
$o = array('',' ');
$s = array();
foreach ($m[1] as $v) {
$ta = explode(" ",preg_replace($g,$o,str_replace($u,' ',strip_tags($v))));
$line .= $ta[2];
$s[$ta[0]] = array('Rank' => $ta[1],'Level' => $ta[2],'Exp' => $ta[3]);
}
return (($s['Overall']['Level'] == "does")? "false":$s);
}
$variable = getStats($_GET['rsn']);
foreach ($variable as $skill => $v) {
$line = $skill;
foreach ($variable[$skill] as $aspect => $data) {
$line .= " ".$aspect.": ".$data;
}
echo $line."\\n";
}
RussellReal
Comments: 40
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Sep 18, 2007 7:02 pm
This is a php snippet, first of all. As if it's that hard to tell by the title, aswell as the section of this site that the snippet resides.. second of all, I explained how to view the stats, it's meant for expansion. Not to do everything for you, it gets the skills into a readable, workable, usable array. Meaning working with and using the function is easy and simple. Next comment by me will be an example of a stat parser using my function.
kerstt
Comments: 64
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Sep 18, 2007 2:57 pm
sleek as usual m8, cause there are noobs who grade all scripts 1, ill give you a 10! :)
LucSatise
Comments: 122
 
PHP Snippet:  PHP RuneScape stat function.
Posted on Sep 18, 2007 12:23 pm
so what do i do to view stats? i dont get it
RussellReal
Comments: 40
 
mIRC Snippet:  Jumbled Text Alias
Posted on Jul 8, 2007 6:10 pm
on *:TEXT:!jumble *:#:{
var %a = 1
while (%a < $0) {
inc %a
var %word = $($+($chr(36),%a),2), %line = %line $randomize($spaceitout(%word))
}
msg $chan %line
}
alias -l spaceitout {
var %a = 0
while (%a < $len($1)) {
inc %a
var %word = %word $mid($1,%a,1)
}
return %word
}
alias -l randomize {
var %b = 0
var %fnl = $gettok($1,1,32) $gettok($1,$numtok($1,32),32), %mid = $deltok($deltok($1,$numtok($1,32),32),1,32), %lawl = $deltok($deltok($1,$numtok($1,32),32),1,32)
while (%b < $numtok(%lawl,32)) {
inc %b
var %rand = $r(1,$numtok(%mid,32)), %tok = $gettok(%mid,%rand,32), %line = %line $+ %tok, %mid = $deltok(%mid,%rand,32)
}
return $iif($len($1) < 3,$1,$gettok(%fnl,1,32) $+ %line $+ $gettok(%fnl,2,32))
}
RussellReal
Comments: 40
 
mIRC Snippet:  Ping Pong
Posted on Jul 4, 2007 1:16 pm
The reason it's all black is because you set your mIRC up to have black default background. change it to white and enjoy ;)
AHBARAR
Comments: 158
 
mIRC Snippet:  Ping Pong
Posted on Jun 17, 2007 5:15 pm
same as brainbryce all black just a white line and something black moving on it as i move mouse no thing else >:|
BackoffJackson
Comments: 56
 
mIRC Snippet:  Jumbled Text Alias
Posted on Apr 14, 2007 12:05 am
I'm trying to make this into a remote script. Tried a bunch of ways. None of which worked. So some help would be nice.
BrainBryce
Comments: 55
 
mIRC Snippet:  Ping Pong
Posted on Apr 13, 2007 2:27 pm
Its bad cause Mine it just comes up with blank screen :(
Sanjie
Comments: 4
 
mIRC Snippet:  Ping Pong
Posted on Apr 9, 2007 6:20 pm
awesome, pure awesome!
RussellReal
Comments: 40
 
mIRC Snippet:  Jumbled Text Alias
Posted on Feb 5, 2007 12:48 am
it doesn't scramble 2 and 3 letter words, because the concept of this script is to only scramble letters inside the first and last letter for example: omfg it will 'attempt' to scramble up "mf" however, "mf" doesn't have very many different combinations so sometimes the 4 letter word stays the same, however "street" it will attempt to scramble "tree" and there is 4 letters there so there 'should' be 16 combinations so its less likely to still be "street" after the script scrambles the word. for example: "street" would/might return "sretee" because the first letter: s and the last letter: e remain first and last letters, so a 3 letter word will not change because say "one" the "n" is the only letter inside the word so it doesn't attempt to scramble this word because even if it did it wouldn't change, and "it" is ONLY the first and last letters there arn't any in between so it skips 2 letter words also, it works the way it was intended to work, but thanks for the comments and the scores guys appreciate it :)
Aaron
Comments: 104
 
mIRC Snippet:  Jumbled Text Alias
Posted on Jan 15, 2007 2:02 am
idk if you could even change this but..

jeumbld text is pettry colo, wudnolt you say so too? <--- it didnt jumble up 2 and 3 letter words as much as it could

otherwise i luv this script :)
RussellReal
Comments: 40
 
mIRC Snippet:  Event Script
Posted on Jan 13, 2007 4:59 pm
;) Thanks buddy =)
Aaron
Comments: 104
 
mIRC Snippet:  Event Script
Posted on Jan 13, 2007 4:34 pm
wow, this script is really nice lol... way better than my event script :P
RussellReal
Comments: 40
 
mIRC Snippet:  Jumbled Text Alias
Posted on Jan 13, 2007 7:44 am
I know, I could have used $mid and this is more functional then a basic scrambled word, it keeps the same first and last character and scrambles all the inner letters, I know it could be shorter if I used $mid I would only have 2 aliases then ;)
xDaeMoN
Comments: 696
 
mIRC Snippet:  Jumbled Text Alias
Posted on Jan 13, 2007 2:17 am
You could still shorten this. Check Sigh_'s post in this thread (http://www.hawkee.com/phpBB2/viewtopic.php?t=4843) on how to scramble a word. :)
1 2 Next
Bottom