mIRC Homepage
Posted By: UberGamer RE: Sock Open - 03/06/07 07:31 AM
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

Posted By: deegee Re: RE: Sock Open - 03/06/07 02:48 PM
/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

Posted By: UberGamer Re: RE: Sock Open - 04/06/07 06:36 AM
yeah i know that but like i want it to Echo Server Offline ! if $sockerr
Posted By: RusselB Re: RE: Sock Open - 04/06/07 06:57 AM
Code:
on *:sockopen:socktest: if $sockerr {
  echo -a Server Offline
  sockclose $sockname
}

© mIRC Discussion Forums