mIRC Home    About    Download    Register    News    Help

Print Thread
#31162 20/06/03 01:43 PM
Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
hey people

on +1:deop:#:{
if ($opnick == $me) {
chanserv op $chan $me
mode $chan -o $nick
}
}

and I've added this to USER>> 2:ABC!*@* (and I've also tried =2:ABC!*@*)

but when ABC deop me, the script above is still triggered, why??

however, on text event works fine.

on +1:TEXT:hi:#:msg $chan hi $nick

when ABC says 'hi', it won't be triggered, it's only triggered when other people without USER LEVELS say 'hi'.

how to solve it ?

Last edited by desmond; 20/06/03 01:50 PM.
Joined: Dec 2002
Posts: 60
C
Babel fish
Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
try change on +1:deop:#: to on 1:deop:#:

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
yeah i've tried
yet still the same

Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
what about using On *1:deop:

Last edited by The_Game; 20/06/03 04:26 PM.
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
he wants a deop scripts not on *:TEXT =o\


new username: tidy_trax
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
I know I caught that and changed it....it wouldnt hurt to try it

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
still can't..so weird

Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
just had a thought try

On @1:Deop: or reading your helpfile on the "On Deop" event....

Last edited by The_Game; 20/06/03 05:08 PM.
Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
i don't know mirc script very much, yet i'm just not an newbie
on @1: will only be triggered if $me is an op ..
on @1:deop would never be triggered.....
even though, i've tried, it just doesn't work

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
+ in front of the UserLevel means that it will be triggered only for that level and not higher, if u want it for level and higher use:
on 1:deop:#:{
if ($opnick == $me) {
chanserv op $chan $me
mode $chan -o $nick
}
}
btw, u can replace 1 with * so it will be for everybody(even for users that their level is a WORD)

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
I want it only triggered for level 1 user, so I use the + prefix
And I want it not triggered for ABC, so I add ABC a level 2 user by =2:ABC!*@* (I've also tried 2:ABC!*@*)

But the on +1:deop: script would still be triggered by ABC,
while the on +1:text script wouldn't be

Does it work the same in your mIRC ?

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
well, u added ABC to level 2, not 1

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
right, I added ABC to level 2,
'cause I want ABC not to trigger the on +1:DEOP script,
but ABC still triggers on +1:DEOP,
while ABC doesn't trigger on +1:TEXT

perhaps you can have a try

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
that's why i told u remvoe the +, remove it from the on text

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
hey..I want ABC not to trigger on +1:text
it doesn't
I want ABC not to trigger on +1:deop
yet ABC triggers

but why i just use the same prefix (on +1:)
ABC triggers one but not another?

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
wtf

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
so did you get the same result?

Joined: Jun 2003
Posts: 11
D
desmond Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
i've finally figured that out....

on 2:deop: doesn't detect the $nick but the $opnick.. that's why

so I have to add a level check on $nick into the script

Thanks all


Link Copied to Clipboard