#Lahepoiss Alex 'easter ' Steadman
if (ereg("^!world (.*)",$text,$a)) {
$runescape_serverlist = str_replace("\n","",trim(file_get_contents("http://www.runescape.com/sl.ws")));
if (preg_match("/World $a[1]<\/td>
FULL<\/td> | (.*?)<\/td> | (.*?)<\/td>/is",$runescape_serverlist,$tulemus2)) {
echo("Server $a[1] on täis [ $tulemus2[1] + $tulemus2[2] ]");
} else if (!preg_match("/World $a[1]<\/a>/is",$runescape_serverlist)) {
raw("PRIVMSG $opt:Selline server puudub..$a[1] -_-");
} else {
$otsime_seda = "/World $a[1]<\/a><\/td> | (.*?) Players<\/td> | (.*?)<\/td> | (.*?)<\/td>/is";
preg_match($otsime_seda,$runescape_serverlist,$tulemus);
raw("PRIVMSG $opt:Info # $a[1] : ".$tulemus[1]." mängijat, asub: ".$tulemus[2]." tüüp: ".$tulemus[3]);
}
}
|