mIRC Home    About    Download    Register    News    Help

Print Thread
#177925 03/06/07 07:31 AM
U
UberGamer
UberGamer
U
Hello im New To here but im sorta Amatuer at scripting so far i have alot of custom scripts but having trouble with Sock open

i an Wanting to open a socket to my page and if it $sockerror then to msg the chan saying That the SErver is Down and it if is up then msg the channel saying that it up its very simple in text but im still learning help would be much appreciated Thanks


#177957 03/06/07 02:48 PM
Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
/sockopen socktest <yoursite> <port>
e.g. /sockopen socktest www.UberGamer.com 80
Code:
on *:sockopen:socktest:echo -a The server is $iif($sockerr,down.,up.) | sockclose $sockname


deegee #178010 04/06/07 06:36 AM
U
UberGamer
UberGamer
U
yeah i know that but like i want it to Echo Server Offline ! if $sockerr

#178015 04/06/07 06:57 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Code:
on *:sockopen:socktest: if $sockerr {
  echo -a Server Offline
  sockclose $sockname
}



Link Copied to Clipboard