mIRC Home    About    Download    Register    News    Help

Print Thread
#31162 20/06/03 01:43 PM
D
desmond
desmond
D
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.
C
coder
coder
C
try change on +1:deop:#: to on 1:deop:#:

D
desmond
desmond
D
yeah i've tried
yet still the same

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

Last edited by The_Game; 20/06/03 04:26 PM.
P
pheonix
pheonix
P
he wants a deop scripts not on *:TEXT =o\

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

D
desmond
desmond
D
still can't..so weird

Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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.
D
desmond
desmond
D
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

S
ScatMan
ScatMan
S
+ 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)

D
desmond
desmond
D
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 ?

S
ScatMan
ScatMan
S
well, u added ABC to level 2, not 1

D
desmond
desmond
D
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

S
ScatMan
ScatMan
S
that's why i told u remvoe the +, remove it from the on text

D
desmond
desmond
D
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?

S
ScatMan
ScatMan
S
wtf

D
desmond
desmond
D
so did you get the same result?

D
desmond
desmond
D
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