mIRC Homepage
Posted By: desmond a very simple script problem - 20/06/03 01:43 PM
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 ?
Posted By: coder Re: a very simple script problem - 20/06/03 03:42 PM
try change on +1:deop:#: to on 1:deop:#:
Posted By: desmond Re: a very simple script problem - 20/06/03 04:15 PM
yeah i've tried
yet still the same
Posted By: The_Game Re: a very simple script problem - 20/06/03 04:25 PM
what about using On *1:deop:
Posted By: pheonix Re: a very simple script problem - 20/06/03 04:26 PM
he wants a deop scripts not on *:TEXT =o\
Posted By: The_Game Re: a very simple script problem - 20/06/03 04:28 PM
I know I caught that and changed it....it wouldnt hurt to try it
Posted By: desmond Re: a very simple script problem - 20/06/03 04:51 PM
still can't..so weird
Posted By: The_Game Re: a very simple script problem - 20/06/03 05:05 PM
just had a thought try

On @1:Deop: or reading your helpfile on the "On Deop" event....
Posted By: desmond Re: a very simple script problem - 20/06/03 05:25 PM
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
Posted By: ScatMan Re: a very simple script problem - 20/06/03 11:18 PM
+ 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)
Posted By: desmond Re: a very simple script problem - 21/06/03 04:49 AM
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 ?
Posted By: ScatMan Re: a very simple script problem - 21/06/03 05:02 AM
well, u added ABC to level 2, not 1
Posted By: desmond Re: a very simple script problem - 21/06/03 05:33 AM
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
Posted By: ScatMan Re: a very simple script problem - 21/06/03 05:56 AM
that's why i told u remvoe the +, remove it from the on text
Posted By: desmond Re: a very simple script problem - 21/06/03 06:01 AM
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?
Posted By: ScatMan Re: a very simple script problem - 21/06/03 06:32 AM
wtf
Posted By: desmond Re: a very simple script problem - 21/06/03 06:54 AM
so did you get the same result?
Posted By: desmond Re: a very simple script problem - 21/06/03 11:04 AM
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
© mIRC Discussion Forums