mIRC Home    About    Download    Register    News    Help

Print Thread
P
Psyqological
Psyqological
P
Hey guys,

I would like to know - since I can't find it anywhere else in the internet - if it's possible to create a script in mIRC that is getting executed if a certain number of people type the same message in a chat. I just cannot figure out how to do it.

I appreciate any help!

K
keyeslol
keyeslol
K
Sure. Just initialize a variable, call it count.

Just do:

Code:
on *:text:hello world:# {
  if (%count = 6) {
    msg # hello to you too!
  }
  else (inc %count) 


Something like that. on the 6th time someone says hello world, the bot will answer back with "hello to you too!"

P
Psyqological
Psyqological
P
Thank your for your fast reply! smile
really helps


Link Copied to Clipboard