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
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
}