Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!top*:#fly: {
- var %i = 1, %n = $var(loliscore $+ *,0)
- var %top $calc($2 + 1)
- if (%top == $null) {
- notice $nick Please enter a value. Example: !top 5
- halt
- }
- if (%top > 11) {
- notice $nick Pleast enter a value or 10 or lower.
- halt
- }
- while (%i <= %n) {
- var %fullName = $var(loliscore $+ *,%i)
- var %name = $replace(%fullName, %, )
- var %msgname = $mid(%fullName, 11)
- var %value = % [ $+ [ %name ] ]
- hadd -m Scores %msgname %value
- inc %i
- }
- hsave -i Scores scores.ini
- filter -tffceu 2 61 scores.ini scores.ini
- var %c = 1, %t = $var(loliscore $+ *,0)
- while (%c <= %t) {
- var %output %output $+ $chr(32) 06 $+ %c $+ .13 $+ $gettok($read(scores.ini,%c),1,61)) $+ : 06 $+ $gettok($read(scores.ini,%c),2,61)) 13|
- inc %c
- if (%c == %top) {
- msg # %output
- hdel -w Scores *
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement