mIRC Home    About    Download    Register    News    Help

Print Thread
Script edit/change and one other small thing #243138 19/10/13 08:50 PM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
Ok, so I can hack through some codes and edit things, but generally I don't have a clue what I'm doing LOL

1) This anti-flood script is good,but I need it to IP ban, not ban by nick. Also I need it to ban from 3 different channels that must be specified. Lastly, it has to ignore channel operators/admins/half ops.

Code:
on *:TEXT:*:#:{
  inc -u3 %spam. [ $+ [ $nick ] ]
  if (%spam. [ $+ [ $nick ] ] == 7) {
    ban -ku45 $chan $nick Typing vertically is a form of flooding.  I think you should review the rules
    halt
  }
}


2) Does anyone have a link to a script that will kick and ban for a set amount of time if a URL of any kind is posted in any of 3 channels within the first 3 lines of the user entering?

I appreciate any and all help smile

Re: Script edit/change and one other small thing [Re: SonicOrbStudios] #243139 20/10/13 01:12 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Instead of ban $nick, try use: $address($nick,X) . change the X to the banmask type you want. I think 3 is good so i using it. If you dont know what that number does, try this litle script, place it in your remote and type /show_banmasks
Code:
alias show_banmasks {
  var %x = 10
  while (%x) {
    echo -ta $address($me,%x) -> Mask type %x
    dec %x
  }
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Script edit/change and one other small thing [Re: sparta] #243142 21/10/13 02:35 AM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
I tried to replace a few things with your guided suggestion but could not get it to work. It would be helpful to get a changed script re-posted. I use a mask type 2 btw.


Re: Script edit/change and one other small thing [Re: SonicOrbStudios] #243143 21/10/13 05:22 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
mode $chan +b $address($nick,2)

look at the ban section in the helpfile.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Script edit/change and one other small thing [Re: SonicOrbStudios] #243144 21/10/13 08:59 AM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
1)
Code:
on *:TEXT:*:#:{
  if (!$nick(#,$nick,oh)) {
    inc -u3 %spam. [ $+ [ $nick ] ]
    if (%spam. [ $+ [ $nick ] ] == 7) {
      ban -ku45 $chan $nick 2 Typing vertically is a form of flooding. I think you should review the rules
    }
  }
}


/help /ban
/help $nick (2 in the list)
/help /halt


Quote:
Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
Example: on 1:TEXT:*help*:#mirc,#irchelp:/msg $nick what is the problem?


/help on text

Code:
on *:TEXT:*:#Channel1,#Channel2,#Channel3:{
  if (!$nick(#,$nick,oh)) {
    inc -u3 %spam. [ $+ [ $nick ] ]
    if (%spam. [ $+ [ $nick ] ] == 7) {
      ban -ku45 $chan $nick 2 Typing vertically is a form of flooding. I think you should review the rules
    }
  }
}


2)

Search this forum.
Search mIRC scripting sites.

Re: Script edit/change and one other small thing [Re: Crinul] #243156 23/10/13 01:54 AM
Joined: Sep 2012
Posts: 7
S
SonicOrbStudios Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2012
Posts: 7
Thanks Crinul, that last anti-flood script worked like a charm. It's properly banning and filtering out the ops in any channel...however...

I'm managing 3 rooms, #youtube, #partner, and #twitch. Is there a way to set this up to temporary ban the user but at the same time, kick them out of all 3 channels if they trigger the script in any one of the channels?
Been trying to do this myself today, just about gave up. I got my /ka and /ba scripts down to kick and ban from all channels with one command, but I'm stuck on automating it with it tied into the above script.

Re: Script edit/change and one other small thing [Re: SonicOrbStudios] #243157 23/10/13 05:07 AM
Joined: Jan 2004
Posts: 1,287
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,287
This is one way to do it: use tokenize to fill $1- (this will overwrite the text the user said in the event), then use $* in the ban command so that this line is called for every token you had specified. Alternatively you could use a while loop so that you don't need to tokenize.

Code:
on *:TEXT:*:#Channel1,#Channel2,#Channel3:{
  if (!$nick(#,$nick,oh)) {
    inc -u3 %spam. [ $+ [ $nick ] ]
    if (%spam. [ $+ [ $nick ] ] == 7) {
      tokenize 32 #Channel1 #Channel2 #Channel3
      ban -ku45 $* $nick 2 Typing vertically is a form of flooding. I think you should review the rules
    }
  }
}