mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2012
Posts: 1
C
csx Offline OP
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Oct 2012
Posts: 1
hello can some 1 help to do a script witch is reading from main chat window and when is found that word ( any ) is saving full line to notepad ... and after if u use command !last is shows last person who used that word. and if u use command !last10 is shows last 10 who used ... can some one help me ? i trying to mix scripts and all unlucky ... many many bugs ... or even no working. plz help me

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
This is a basic approach.
Code:
on *:TEXT:*any*:#channel:write -il1 wordlog.txt $nick
on *:TEXT:!last:#channel:msg # Last nick: $read(wordlog.txt,n,1)
on *:TEXT:!last10:#channel:{
  var %n = 10
  while (%n) {
    var %m = %m $read(wordlog.txt,n,%n)
    dec %n
  }
  msg # Last 10 nicks: %m
}


Link Copied to Clipboard