mIRC Home    About    Download    Register    News    Help

Print Thread
#254248 30/07/15 01:10 AM
Joined: Jul 2015
Posts: 1
C
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Jul 2015
Posts: 1
Hi all, was wondering if someone could help me with a script I'm trying to write. What I want is for my bot to timeout nick after 4-5 messages (not w/in a certain time period). What I have for the script so far is thus:

Code:
on $:text:*:#: {
    if ($nick == NICK) {
    .msg $chan .timeout $nick 1
    }
}


this just simply gives a timeout to someone after every message they send. I can't find a good way to make it wait for 4-5 messages. I tried using variables and increasing the number and then send msg after it hit 5, but I couldn't get it to work. Any help would be greatly appreciated.

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Why do you want to ban people after they said 5 things? : ))

Anyways you can use dynamic variables or make a hash table to keep track of people. http://en.wikichip.org/wiki/mirc/variables


Link Copied to Clipboard