mIRC Home    About    Download    Register    News    Help

Print Thread
some mode things #137196
09/12/05 03:00 AM
09/12/05 03:00 AM
Joined: Apr 2005
Posts: 1,009
Green Hill Zone
raZOR Offline OP
Hoopy frood
raZOR  Offline OP
Hoopy frood

Joined: Apr 2005
Posts: 1,009
Green Hill Zone
i have like this:
Code:
  

ON *:JOIN:#channel: {
if ($me isop #channel) && ((nick1 isin $nick) || nick2 isin $nick) || (nick3 isin $nick)) { .op #channel $nick }
}
[/code]

but what if i want to voice certan nicknames, and do another than voice mode on nicknames

how to make it into this?

i cant do

if ($me isop #channel) do op
elseif ($me isop #channel) do voices
elseif ($me isop #channel) do another modes..

it will confuse mirc... or wont?

Last edited by raZOR; 09/12/05 03:01 AM.

IceCapped
Re: some mode things #137197
09/12/05 03:40 AM
09/12/05 03:40 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
schaefer31  Offline
Fjord artisan
S

Joined: Aug 2005
Posts: 525
You can do something like this. I replaced the $me isop check with the @ prefix, which does the same thing.

Code:
on @*:JOIN:#Channel:{
  if (nick1 isin $nick || nick2 isin $nick) {
    mode # +o $nick
  }
  else if (nick3 isin $nick || nick4 isin $nick) {
    mode # +v $nick
  }
  else if (nick5 isin $nick || nick6 isin $nick) {
    mode # +h $nick
  }
}

Re: some mode things #137198
09/12/05 03:44 AM
09/12/05 03:44 AM
Joined: Apr 2005
Posts: 1,009
Green Hill Zone
raZOR Offline OP
Hoopy frood
raZOR  Offline OP
Hoopy frood

Joined: Apr 2005
Posts: 1,009
Green Hill Zone
thanks, will try and see.


IceCapped
Re: some mode things #137199
09/12/05 04:21 AM
09/12/05 04:21 AM
Joined: Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB Offline
Planetary brain
RusselB  Offline
Planetary brain
R

Joined: Aug 2004
Posts: 7,252
Ontario, Canada
Also don't forget about mIRC's /aop & /avoice commands

Not sure how much help they'll be, if any, but .....

Re: some mode things #137200
09/12/05 04:26 AM
09/12/05 04:26 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
schaefer31  Offline
Fjord artisan
S

Joined: Aug 2005
Posts: 525
I know about those, but I just prefer to use simple scripts like above to keep things together. Then I don't have to deal with another list.

Re: some mode things #137201
09/12/05 05:29 AM
09/12/05 05:29 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
NeUtRoN_StaR  Offline
Fjord artisan
N

Joined: Mar 2005
Posts: 212
you might consider your userlist
if you would like an event to handle more than one incidence you can use $ulevel in comparisons