mIRC Homepage
Posted By: da_hype multiserver away - 15/12/04 03:41 AM
Code:
away {
  var %i = 1 
  while ($scon(%i)) { 
    if ($server) scon %i away
    inc %i 
  }
}


what am i doing wrong here?
Posted By: Armada Re: multiserver away - 15/12/04 04:04 AM
Use scid %i away
Posted By: da_hype Re: multiserver away - 15/12/04 04:32 AM
Code:
away { 
  var %i = 1
  while ($scon(%i)) { 
    if ($server) scid %i away $1-
    inc %i
  }
}


somehow it crashes my mirc frown
Posted By: Armada Re: multiserver away - 15/12/04 04:36 AM
/away {
%x = 1
%y = $scon(0)
while (%x <= %y) {
scid %x away
inc %x
}
}
Posted By: Relinsquish Re: multiserver away - 15/12/04 04:43 AM
Code:
away {
var %i = 1
While ($Scon(%i)) {
If ($Scon(%i).$Status == connected) { scon %i /!away $1- }
inc %i
}
}
Posted By: Coolkill Re: multiserver away - 15/12/04 07:18 AM
If your trying to 'set yourself back' on all servers.

/scid -at1 /away

or to set away; /scid -at1 /away [color:red]message[/color].

Eamonn.
Posted By: Iori Re: multiserver away - 15/12/04 08:33 AM
The crash is from recursion. echo iteration of the loop is calling the same alias which again loops - over and over ....... You should use !away from within the loop for cases like so.

This is easier and quicker though.
  • alias gaway { scon -at1 away $1- }

/gaway "away msg" sets you away on all connected CIDs
/gaway on its own sets you back on all connected CIDs
© mIRC Discussion Forums