mIRC Home    About    Download    Register    News    Help

Print Thread
#177925 03/06/07 07:31 AM
Joined: Jun 2007
Posts: 5
U
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jun 2007
Posts: 5
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


UberGamer #177957 03/06/07 02:48 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
/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
Joined: Jun 2007
Posts: 5
U
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jun 2007
Posts: 5
yeah i know that but like i want it to Echo Server Offline ! if $sockerr

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



Link Copied to Clipboard