What is wrong with this script? - 13/05/08 03:54 PM
Its for a game, there is a ranking of your stats on the game on www.runehead.com/clans/ml.php?clan=tbl_admin&skill=Attack&sort=lvl
I want a person to be able to check there rank on that site. Im pretty sure I went about it the wrong way, any help would be appreciated.
and could someone explain how the script identifies what line to use, because im using a socket creator at the moment as im still learning how to make a proper socket.
I want a person to be able to check there rank on that site. Im pretty sure I went about it the wrong way, any help would be appreciated.
and could someone explain how the script identifies what line to use, because im using a socket creator at the moment as im still learning how to make a proper socket.
Code:
on *:text:!tatt*:#: { if ($sock(Attack)) .sockclose Attack set %chan $chan set %nick $nick set %attackname $2 sockopen Attack www.runehead.com 80 } on *:SOCKOPEN:Attack: { sockwrite -nt $sockname GET /clans/ml.php?clan=tbl_admin&skill=Attack&sort=lvl HTTP/1.1 sockwrite -nt $sockname Host: www.runehead.com sockwrite -nt $sockname $crlf } on *:SOCKREAD:Attack: { if ($sockerr) { msg %chan Socket Error: $sockname $+ . Error code: $sockerr Please inform $me of this error message. halt } else { var %sockreader sockread %sockreader if (*%attackname* iswm %sockreader ) { set %Attacklvl $nohtml(%sockreader) msg %chan The att lvl of %attackname is: %Attacklvl unset %chan unset %nick sockclose Attack } } }