mIRC Homepage
Posted By: learn3r kick counter (bot) - 12/10/06 04:46 AM
on ^*:kick:#: {
if ($nick == %nick1) && ($knick != %nick1) { inc %knick1
}
}

on ^*:kick:#: {
if ($nick == %nick2) && ($knick != %nick2) { inc %knick2
}
}



%nick1 == nick
%nick2 == nick

is this right guys?
Posted By: landonsandor Re: kick counter (bot) - 12/10/06 04:59 AM
try this:

Code:
on ^*:kick:#: {
  if (($nick == %nick1) && ($knick != %nick1)) { inc %knick1 }
  if (($nick == %nick2) && ($knick != %nick2)) { inc %knick2 }
}


If you use two of the same types of events, only ONE will work. Also, if you want it to trigger on more than two nicknames, you might want to use a variable, or a user level, or mirc's internal lists somehow or a hash table (some I know nothing about)
© mIRC Discussion Forums