mIRC Home    About    Download    Register    News    Help

Print Thread
againhelp #167384 23/12/06 04:51 AM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
can i get a script so that when any one joins a chan thay get kicked except for me? urgent help XD

Last edited by mitchell10I; 23/12/06 04:53 AM.
Re: againhelp [Re: mitchell10I] #167385 23/12/06 04:57 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Why not just set the channel to invite only?

Anyhow, it's as simple as:
Code:
on !@*:join:#channel: {
  kick $chan $nick Go away.
}


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: Riamus2] #167386 23/12/06 04:58 AM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
im useing on *:join:#:/kick #opwars $nick
it kicks me will yours kick me
its auto op chan and +i is not an option

Last edited by mitchell10I; 23/12/06 04:58 AM.
Re: againhelp [Re: mitchell10I] #167388 23/12/06 04:59 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
! prevents it from kicking you and @ makes it only work if you are an op.


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: Riamus2] #167390 23/12/06 05:02 AM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
O.o cool

Re: againhelp [Re: Riamus2] #167392 23/12/06 05:03 AM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
meh also got this
on *:kick:*#*:/join #opwars it works good :P tired
on *:kick:*#*:/join #
would make it join any chan ? or what

Last edited by mitchell10I; 23/12/06 05:05 AM.
Re: againhelp [Re: mitchell10I] #167393 23/12/06 05:07 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
First of all, you have *#*, which is unnecessary. Just use #.

Second, if someone else is kicked, you shouldn't try to join the channel... that line will do a /join even if you're already on the channel.

Third, if you or someone else is kicked in any other channel, you'll try to join opwars even if you're already in it or if you're on another network.

Code:
on *:kick:#opwars: {
  if ($nick == $me) {
    join $chan
  }
}


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: Riamus2] #167394 23/12/06 05:10 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Originally Posted By: Riamus2
! prevents it from kicking you and @ makes it only work if you are an op.


Just to clarify this statement for those who might wonder about it... ! doesn't really prevent it from kicking you. What it does is prevent that event from being triggered by you (so it won't trigger if you're the one joining the channel).

Actually, you don't even need the ! now that I think of it... you wouldn't have @ status if you're the one joining the channel. So you can remove the ! and it will still work.


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: Riamus2] #167395 23/12/06 05:12 AM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
ok that works laugh i also had a conflict >_> i was joined in with 2 drif mirc's same script and well O.o u say hello then all hell breaks out one i say hello the other mesez hello and it repeats any way to fix this? thanskfot all the help u give me laugh

Re: againhelp [Re: mitchell10I] #167405 23/12/06 03:55 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
A responder wasn't mentioned here, so I don't know how you have it done. You can always set it to not respond to a specific nick (or to your host).


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: Riamus2] #167413 23/12/06 06:40 PM
Joined: Oct 2006
Posts: 22
M
mitchell10I Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2006
Posts: 22
how for both ways >_> i know much abut scripting XD i just havent done in a year whistle "not respod to host and nick "
-thanks on *:TEXT:*hello*:#:/msg $chan hello

so i have that on my bot and on me >_> then all hell breaks out when someone say's hello >_>


ant i got a pm >_> is it spam ?


hey i'm aro from sri-lanka i love to know more about you
send me a mail if you r interested.
mail.freedomfantom@yahoo.com

Last edited by mitchell10I; 23/12/06 06:41 PM.
Re: againhelp [Re: mitchell10I] #167471 25/12/06 04:07 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:TEXT:*hello*:#:{
  INSERT CHECK HERE
  msg $chan hello
}


Replace INSERT CHECK HERE with any of these:

if ($nick == somenick) { return }
if (something isin $nick) { return }
if ($wildsite == *!*@host.com) { return }
if (something isin $wildsite) { return }

Note that you can avoid using return with all of those by doing != instead. I'll show one example and you should be able to convert the rest yourself.
Code:
if ($nick != somenick) {
  msg $chan hello
}


Note that this required putting {}'s around your message instead of just inserting the line above your message.


Invision Support
#Invision on irc.irchighway.net
Re: againhelp [Re: mitchell10I] #167494 25/12/06 08:37 AM
Joined: Mar 2006
Posts: 29
T
tyler2435 Offline
Ameglian cow
Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 29
I know this is an extremely old topic. And i doubt you're even going to see this, but you could use:

on *:text:hello:#:{
if ( $address($nick,2) !iswm $address($me,2) ) {
msg $chan hello.
}
}


-tyler-