mIRC Home    About    Download    Register    News    Help

Print Thread
help on private msg #207511 20/12/08 06:27 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
on 1:open:?: { set %ign $addtok($nick,%ign,32) | ven }

alias ven {
set
%ip $address($nick,4)
set %i 1
:da
.echo -a 0,4Privado $nick %ip $chr(91) Canales $chr(93) $comchan($me,%i)
inc %i
if %i > 10 { halt }
goto da
}
}


i may this but doesnt work, any help?

Re: help on private msg [Re: TheWarlock] #207514 20/12/08 02:27 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
replace
on 1:open:?: { set %ign $addtok($nick,%ign,32) | ven }
with
on 1:open:?:*: { set %ign $addtok($nick,%ign,32) | ven }

and you should delete last "}"

Last edited by SCNDRL; 20/12/08 02:30 PM.

i like that
Re: help on private msg [Re: TheWarlock] #207517 20/12/08 03:20 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Additionally, the format of your $addtok is slightly incorrect, and the goto format for looping is generally considered to be one of the worst. I don't even know why Khaled has it.

Here's a suggested re-write.

Code:
on *:open:?:*:{ ven $nick }

alias ven {
  set %ign $addtok(%ign,$1,32)
  var %i = 1
  while %i <= $iif($comchan($1,0) < 10,$v1,$v2) {
    .echo -a 0,4Privado $1 $address($1,4) $chr(91) Canales $chr(93) $comchan($1,%i)
    inc %i
  }
}


P.S.: Please use the Code Tags button (looks like the # character) when posting code.

Re: help on private msg [Re: RusselB] #207522 20/12/08 06:54 PM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
thnx for the fast responding