mIRC Home    About    Download    Register    News    Help

Print Thread
#126126 25/07/05 06:49 PM
D
Dracoz
Dracoz
D
Hmm i need 3 scripts..

The first 1 when someone slaps me that i will kick him with a message DONT Kick me $nick (but only on the channels where i`m op)

And the second script if someone bans me i a channel where i`m op that i will automaticly unban myself and kick the 1 who whas banning me with a message : Dont ban me

And if someone deops me that i will /msg X op $chan
and kick the 1 who deopped me with a message : DONT Deop me $nick

#126127 25/07/05 07:02 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
1)

Code:
on @*:action:*slaps*:#:{
  if ($me isin $1-) {
    kick $chan $nick Don't slap me, $nick $+ !
  }
}


2) --- Replace the chanserv line with X's unban command
Code:
on @*:ban:#:{
  if ($bnick == $me) {
    chanserv unban $banmask $chan
    kick $chan $nick Don't ban me, $nick $+ !
  }
}


3) -- In this, I'm using what you said to use for X... I don't know if it's a valid command the way you wrote it since I don't use X.
Code:
on *:deop:#:{
  if ($opnick == $me) {
    .msg X op $chan
    kick $chan $nick Don't deop me, $nick $+ !
  }
}

#126128 25/07/05 07:16 PM
D
Dracoz
Dracoz
D
They dont work :S

#126129 25/07/05 07:27 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
What doesn't work? You need to be specific. I'm not a mind reader. smile

#126130 25/07/05 07:33 PM
D
Dracoz
Dracoz
D
Sorry :P
They all dont work all the scripots you just wrote :S?

#126131 25/07/05 07:36 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Are you putting the scripts on you or a bot? They are meant to be on your client and not a bot. They should work fine. If they don't, I need to know more than "they don't work" ... do you get any messages/errors (check status and channel). How are you testing them? Etc.

Don't forget that these should all be placed in a new Remotes section and not into some other script's Remotes section. (i.e. Alt-R > File > New)

#126132 27/07/05 12:27 AM
D
Dracoz
Dracoz
D
All did that and yes me (the client) is using them i`m testing them like this

someone else slaps me

someone else bans me

someone else deops me

#126133 27/07/05 12:37 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Just testing them, they work...

Example for the Action (slap) one...

I insert this into a new script file on Riamus, who is an OP.

I take a clone called Riamus2 and have that clone type /me slaps Riamus

Riamus kicks Riamus2 with the reason Don't slap me, Riamus!

Please look to make sure the scripts are in their own file and that you are an op and that you have them typed just like they are here (same formatting). Sometimes, people will copy/paste from here and it gets formatted differently, causing problems.

#126134 27/07/05 12:12 PM
D
Dracoz
Dracoz
D
Hmm yes they work except the antiban
it jsut doesnt work :S

-----
on @*:ban:#:{
if ($bnick == $me) {
.msg X unban $banmask $chan
kick $chan $nick Don't ban me, $nick $+ !
}
}

----------

#126135 27/07/05 12:43 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Is the X command formatted properly? I don't use it and just copied what you wrote for it, so I don't know if it's properly formatted.

Try removing the . in front of msg and see if you are at least sending the message out.

#126136 28/07/05 09:53 PM
D
Dracoz
Dracoz
D
Hmmm damn :x
does not work
Can it be something else instead of X that me myself unban me?


Link Copied to Clipboard