mIRC Home    About    Download    Register    News    Help

Print Thread
a very simple script problem #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.
Re: a very simple script problem #31163 20/06/03 03:42 PM
Joined: Dec 2002
Posts: 60
C
coder Offline
Babel fish
Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
try change on +1:deop:#: to on 1:deop:#:

Re: a very simple script problem #31164 20/06/03 04:15 PM
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

Re: a very simple script problem #31165 20/06/03 04:25 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
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.
Re: a very simple script problem #31166 20/06/03 04:26 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
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
Re: a very simple script problem #31167 20/06/03 04:28 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
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

Re: a very simple script problem #31168 20/06/03 04:51 PM
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

Re: a very simple script problem #31169 20/06/03 05:05 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
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.
Re: a very simple script problem #31170 20/06/03 05:25 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

Re: a very simple script problem #31171 20/06/03 11:18 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline
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)

Re: a very simple script problem #31172 21/06/03 04:49 AM
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 ?

Re: a very simple script problem #31173 21/06/03 05:02 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
well, u added ABC to level 2, not 1

Re: a very simple script problem #31174 21/06/03 05:33 AM
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

Re: a very simple script problem #31175 21/06/03 05:56 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
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

Re: a very simple script problem #31176 21/06/03 06:01 AM
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?

Re: a very simple script problem #31177 21/06/03 06:32 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
wtf

Re: a very simple script problem #31178 21/06/03 06:54 AM
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?

Re: a very simple script problem #31179 21/06/03 11:04 AM
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