mIRC Homepage
Posted By: CallMeRafiki Help with a timeout script - 30/07/15 01:10 AM
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.
Posted By: Sakana Re: Help with a timeout script - 31/07/15 09:42 PM
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
© mIRC Discussion Forums