|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
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
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
What's a p2p? You mean a whipser or a query?
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
|
|
|
|
Joined: Feb 2009
Posts: 133
Vogon poet
|
Vogon poet
Joined: Feb 2009
Posts: 133 |
something like 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
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
there is error
* /if: 'ban' unknown operator
|
|
|
|
Joined: Feb 2009
Posts: 133
Vogon poet
|
Vogon poet
Joined: Feb 2009
Posts: 133 |
was messing "()" 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
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
it work but not kicked n banned when not answer in query
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
chacha
|
|
|
|
Joined: Feb 2009
Posts: 133
Vogon poet
|
Vogon poet
Joined: Feb 2009
Posts: 133 |
sorry i didnt test the code before 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
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
chacha
how to made ban level 4
ban -ku600 $2 $1 2 no answer
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
2 is the type, just use 4
ban -ku600 $2 $1 4 no answer
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
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.
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
actually i'm server admin i need this code work when i'm not opped
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Remove the @ on the event line.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
help me this code not working on *:RAWMODE:#:{ if (+b iswm $1) { .timer 1 300 /mode # -b $2 } } Try this: on *:rawmode:#: {
var %b = 1
while ($mode(%b).ban) {
.timer 1 300 mode # -b $ifmatch
inc %b
}
}
|
|
|
|
Joined: Mar 2010
Posts: 17
Pikka bird
|
OP
Pikka bird
Joined: Mar 2010
Posts: 17 |
on *:text:*:?:{ <----can this code made 1 channel only if can u guys teach me or made for me
|
|
|
|
Joined: Apr 2010
Posts: 969
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
on *:text:*:?:{ <----can this code made 1 channel Since there's no $chan in the private event, you may need to do this: 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.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
|
|