mIRC Home    About    Download    Register    News    Help

Print Thread
#24655 17/05/03 06:43 AM
Joined: Mar 2003
Posts: 49
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2003
Posts: 49
I want to do that if someone write in my channel
!infoline top
then the bot write the five users that wrote the most infolines
and when someone wrote a info line for some one the bot do
writeini InfoLine/infoline.ini InfoLiners $nick $calc($readini(InfoLine\infoline.ini,InfoLiners,$nick) + 1)

So how the bot can generate the five users that wrote the most infolines? crazy

#24656 17/05/03 08:18 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
//window -h @a | filter -fweut 2 32 file.txt @a | var %i = 1 | while (%i <= 5) { if ($line(@a,%i) != $null) { echo -a $gettok($ifmatch,1,32) } | inc %i } | window -c @a
that will /echo those 5 nicks, u can do whatever u want except echo like msg $nick or something


Last edited by ScatMan; 17/05/03 08:19 AM.

Link Copied to Clipboard