OK, i have now modified my script a little. It reads:
on *:text:!sabdetails*:*: {
set %un $2
sockopen bot 192.168.1.2 6080
}
alias bot sockopen bot 192.168.1.2 6080
on *:sockopen:bot: {
sockwrite -n bot GET /s3h/getdetails.php?name= $+ %un HTTP/1.1
sockwrite -n bot Host: 192.168.1.2
sockwrite -n bot User-Agent: Omg dont block this T_T I love you!!!! :P
sockwrite -n bot $str($crlf,2)
}
on 1:sockread:bot: {
if ($sockerr > 0) return
:nextread
sockread %bot
if ($sockbr == 0) return
if (%bot == $null) %bot = -
echo -a %bot
goto nextread
}
I typed !sabdetails rshield into one window with another account and the script executed, however it displayed the data in the topmost channel window in the mIRC window. It displayed this:
HTTP/1.1 200 OK
Date: Sun, 04 Sep 2005 08:44:00 GMT
Server: Apache/2.0.54 (Win32) PHP/5.0.4
X-Powered-By: PHP/5.0.4
Content-Length: 569
Content-Type: text/html
-
--- Sabotage Details of rshield ---
Blackpowder Missiles: 0, Invisibility Shields: 0
Excaliburs: 0, Battle Axes: 0, Dragons: 0, Flaming Arrows: 0, Dragonskins: 0
Steeds: 0, Hammers of Thor: 0, Wargs: 0
Mithrils: 0, Gauntlets: 0, Heavy Shields: 0, Elven Cloaks: 0
Broadswords: 0, Warhammers: 0, Warblades: 0, Steel Bows: 0, Plate Armors: 0
Lances: 0, Maces: 0, Spears: 0, Longbows: 0, Chainmails: 0
Long Sword: 0, Pikes: 1, Clubs: 0, Crossbows: 0, Shields: 0
Staves: 0, Hatchets: 0, Slings: 0, Short Bows: 0
Helmets: 0, Knives: 0, Sticks: 0
Now i'm wondering how do i get that data after the first bit which just has some info, so from --- Sabotage details of <<username>> --- to the end of the data, sent to the channel window, where it was requested from? Sorry, i'm a n00b to this IRC langauge! xD Oh and i put the host socket line back in because someone i konw suggested putting it in because his won't work withouth it! :P