mIRC Home    About    Download    Register    News    Help

Print Thread
Script problem #249568 05/12/14 05:43 AM
Joined: Sep 2014
Posts: 7
T
TitaniumG Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 7
I have this script and it worked fine like 2-3 weeks ago, the command brings up 10 users who have the most points of my points system. I tested it out in my friends stream to see if it is something with my computer or the code or something but it poped up in a flash. I then tried it on mine and it did the same as before it doesn't pop up I have to then click on the mIRC program and then it goes into a non responding mode and it takes over 10 minutes to come up in the chat.

If you can either help me with this or if anyone had/has this issue could you let me know, thanks.

on *:TEXT:!top10:#:{
if ($nick isop #) { top10 # }
else { msg # You are not allowed to use !top10. }
}

alias -l top10 {
window -h @. | var %i 1
while $gettok($remove($read(points.ini,w,$+(*,$1,*),%i),[,]),2,46) {
var %n $v1, %p $gettok($read(points.ini,$calc($readn + 1)),2,61)
aline @. %n %p
var %i $calc($readn + 1)
}
filter -cetuww 2 32 @. @.
var %i 1 | while %i <= 10 {
var %list $addtok(%list,$line(@.,%i),44)
inc %i
}
msg $1 Top 10 point are: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
window -c @.
}

Re: Script problem [Re: TitaniumG] #249576 05/12/14 02:56 PM
Joined: Jul 2006
Posts: 3,715
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,715
The script still work the same, it just takes a lot of time now because your database is much bigger than it was weeks ago, and because the script is very poorly written, it's very very very inneficient.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Script problem [Re: Wims] #249609 07/12/14 12:09 AM
Joined: Sep 2014
Posts: 7
T
TitaniumG Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 7
Okay I understand and is there anyway of making it better?