mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#220869 01/05/10 04:40 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
I need help from you all the code to kick someone if p2p would not answer. Because I have a bot set to capture the pedo. bot will kick the person does not answer the p2p. I really need help. "bot will ask the age

sorry my english is really bad

Venus78 #220873 01/05/10 07:12 PM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
What's a p2p? You mean a whipser or a query?

DJ_Sol #220876 01/05/10 07:34 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
yea query

Venus78 #220886 02/05/10 12:05 AM
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
something like
Code:
on !*:join:#chan:{
  msg $nick hi $nick $+ , to avoid kick answer by: test ok
  set %test_ok $+ $nick 1
  timertestok 1 6 if $($+(%,test_ok,$nick),2) ban -ku600 # $nick 2 no answer
}
on *:text:*:?:if (($strip($1-2) == test ok) && ($($+(%,test_ok,$nick),2))) unset %test_ok $+ $nick


change #chan by yours


WorldDMT
chacha #220900 02/05/10 06:18 AM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
there is error

* /if: 'ban' unknown operator

Venus78 #220906 02/05/10 01:19 PM
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
was messing "()"
Code:
on @!*:join:#chan:{
  msg $nick hi $nick $+ , to avoid kick answer by: test ok
  set %test_ok $+ $nick 1
  timertestok 1 6 if ($($+(%,test_ok,$nick),2)) ban -ku600 # $nick 2 no answer
}
on *:text:*:?:if (($strip($1-2) == test ok) && ($($+(%,test_ok,$nick),2))) unset %test_ok $+ $nick

Last edited by chacha; 02/05/10 01:28 PM.

WorldDMT
chacha #220912 02/05/10 05:10 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
it work but not kicked n banned when not answer in query frown

Venus78 #220947 03/05/10 05:02 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
chacha
frown

Venus78 #220950 03/05/10 08:14 PM
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
sorry i didnt test the code before

Code:
on @!*:join:#:{
  msg $nick hi $nick $+ , you have 10 sec. to avoid kick answer by: test ok
  set %test_ok $+ $nick 1
  timertestok 1 10 kbanned $nick #
}
on *:text:*:?:{
  if ($($+(%,test_ok,$nick),2)) && ($strip($1-2) == test ok) {
    unset %test_ok $+ $nick
    msg $nick welcome $nick :) you can stay
    close -m $nick
  }
}
alias kbanned if ($($+(%,test_ok,$1),2)) ban -ku600 $2 $1 2 no answer


WorldDMT
chacha #221022 05/05/10 01:58 PM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
chacha

how to made ban level 4

ban -ku600 $2 $1 2 no answer

Venus78 #221023 05/05/10 02:13 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
2 is the type, just use 4

ban -ku600 $2 $1 4 no answer


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #221086 07/05/10 09:01 AM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
help me this code not working

on *:RAWMODE:#:{
if (+b iswm $1) {
.timer 1 300 /mode # -b $2
}
}
[code][/code]

Last edited by Venus78; 07/05/10 09:06 AM.
Venus78 #221087 07/05/10 09:10 AM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
actually i'm server admin i need this code work when i'm not opped

Venus78 #221097 07/05/10 04:28 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Remove the @ on the event line.


Invision Support
#Invision on irc.irchighway.net
Venus78 #221134 08/05/10 07:20 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Originally Posted By: Venus78
help me this code not working
on *:RAWMODE:#:{
if (+b iswm $1) {
.timer 1 300 /mode # -b $2
}
}

Try this:
Code:
on *:rawmode:#: {
  var %b = 1
  while ($mode(%b).ban) {
    .timer 1 300 mode # -b $ifmatch
    inc %b
  }
}

Tomao #221138 08/05/10 11:09 AM
Joined: Mar 2010
Posts: 17
V
Venus78 Offline OP
Pikka bird
OP Offline
Pikka bird
V
Joined: Mar 2010
Posts: 17
on *:text:*:?:{ <----can this code made 1 channel only if can u guys teach me or made for me frown


Venus78 #221144 08/05/10 04:33 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
it can but can't. You would have to check to see if ($nick isin #channelname) {

Last edited by FroggieDaFrog; 08/05/10 08:50 PM.

I am SReject
My Stuff
Venus78 #221145 08/05/10 05:31 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just put your channel name in: on @!*:join:#:{

e.g. on @!*:join:#mychan:{

It doesn't need to be in the on text event with what you're doing.


Invision Support
#Invision on irc.irchighway.net
Venus78 #221152 08/05/10 10:17 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Originally Posted By: Venus78
on *:text:*:?:{ <----can this code made 1 channel
Since there's no $chan in the private event, you may need to do this:
Code:
on *:text:*:?: {
  if ($nick ison #YOURCHANNEL) { 
  ;rest of code here
Replace #YOURCHANNEL with the one you want this script to work on. I would assume this is for PM conversation. The $nick being the person who talks to your in your query window.

Tomao #221156 08/05/10 11:24 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Check out the script being used. Only the on join needs a channel.


Invision Support
#Invision on irc.irchighway.net
Page 1 of 2 1 2

Link Copied to Clipboard