mIRC Home    About    Download    Register    News    Help

Print Thread
#141127 05/02/06 07:36 AM
Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
hello

I have these 2 remote scripts:

Code:
 on 1:join:#:{ if ($nick !isop $chan) { .timermsg1 1 3 /msg $nick welcome to our channel! } }  


and

Code:
 alias m { var %a $nopnick($chan,0) | while %a { .timer 1 $calc(%a * 9) .msg $nopnick($chan,%a) $1- | dec %a } }  


can you tell me what do I have to do in order to exclude from these scripts all operators and voices in the channels I am in

thank you!

#141128 05/02/06 07:43 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on 1:join:#:{ if ($me !ison $chan) &&  ($nick !isop $chan) { .timermsg1 1 3 /msg $nick welcome to our channel! } } 


Please note that when a person joins a channel they never have ops so the second condition will always be true

The second code shouldn't work at all, since $chan returns $null in an alias.

#141129 05/02/06 10:09 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
Code:
alias onjoin {
  if (($$1 !isop $$2) && ($$1 !isvoice $$2)) {
    msg $$1 welcome to our channel! 
  }
}
on *:join:#:{
  timermsg1 1 5 onjoin $nick $chan
}


i think that should work
its 4 am
so im gonna refrain from working with your second one because it looks like it has a custom identifier in it
and i dont know what $nopnick does

Last edited by NeUtRoN_StaR; 05/02/06 10:10 AM.
#141130 05/02/06 08:02 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Quote:
$nopnick(#,N/nick)
Returns Nth non-operator in the channels nickname listbox on channel #.

Properties: color, pnick, idle

$nopnick(#mIRC,0) returns the total number of non-operators on #mIRC
$nopnick(#mIRC,1) returns the 1st non-operator on #mIRC
$nopnick(#mIRC,1).color returns the color of the 1st non-operator on #mIRC

$nopnick(#mIRC,1).pnick returns the status of the 1st non-operator on #mIRC
$nopnick(#mIRC,1).idle returns the idletime of the 1st non-operator on #mIRC



From Tye's edited version of the mIRC help file

#141131 05/02/06 10:10 PM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
i didnt see that when i looked
must be undocumented

#141132 06/02/06 12:08 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you're using the official help file, it is undocumented. That's why I specified the source.

#141133 06/02/06 06:01 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
yep thats what i use
i just wanted to get the point across that i checked before i posted so i dont look like a jack ass

although im not sure how avoidable that is


Link Copied to Clipboard