mIRC Home    About    Download    Register    News    Help

Print Thread
#104675 07/12/04 07:22 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
Code:
alias mame {
  var %i = 0
  if ($scon(%i) > 1) {
    while ($scon(%i)) {
      inc %i
      scid $scon(%i)
      var %i. = 0
      while ($chan(%i.)) {
        inc %i.
        if (($server) && ($chan(0) > 0)) describe $chan(%i.) $1-
      }
    }
  }
  else _error You are only on 1 network.
}


i keep getting this error..

* /describe: insufficient parameters (line 181, alias2.mrc)

#104676 07/12/04 07:30 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
try scid $scon(%i) describe $chan(%i.) $1-

#104677 07/12/04 07:39 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
now it works... but after the msg i get this error..

*** #BABI Unknown command.
*** TESTING Unknown command.

#104678 07/12/04 07:47 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
  • alias mame set -u %mame $1- | scon -at1 mame_
    alias -l mame_ ame %mame

#104679 07/12/04 08:24 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Disregard that. laugh

Last edited by Iori; 07/12/04 08:54 AM.
#104680 07/12/04 08:41 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
Code:
mame {
  var %i = 0
  if ($scon(%i) > 1) {
    while ($scon(%i)) {
      inc %i
      scid $scon(%i)
      var %i. = 0
      while ($chan(%i.)) {
        inc %i.
        if (($server) && ($chan(0) > 0)) scid $scon(%i) describe $chan(%i.) $1-
      }
    }
  }
  else _error You are only on 1 network.
}


so what do i change? :P

#104681 07/12/04 09:02 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, the solution I posted earlier is smaller & quicker. however
Code:
alias mame {
  var %i = 1
  if $scon(0) == 1 { _error You are only on 1 network. | return }
  while $scon(%i) {
    scon %i
    if $server {
      var %i. = 1
      while $chan(%i.) {
        describe $v1 $1-
        inc %i.
      }
    }
    inc %i
  }
}

#104682 07/12/04 12:13 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You can actually pass local variables to /scon or /scid:

Code:
alias mame set -ln %tmp $1- | scon -at1 ame $(%tmp,)


I use /set -l instead of /var in case $1- is a mathematical operation


Link Copied to Clipboard