So i have a question, and i was hoping anyone could help me out over here, i have been struggling with my bot, regarding a function i seen at some streams.

like for 2 different streams i run a different, well sort of system but the intentions with both are the same.

and its pretty much a rank system for 1 and coins for the other.

now i would love some help on how i could make this.

whenever some1 does !rank or !coins, it does $nick u have <amount> coins or ranks depending which command, but when multiple users do it, ofc it will only say it the person who first typed it.

when 2 or more do it i would like to make the message be like, using the coins as an example now.

Bot: User1 <amount>, User2 <Amount>, User3 <Amount, Etc.

I hope that is a clear example.

and i got completly clueless on how to do this, im including the !top 5 section of the scripts i use, since i thought i could do it with those functions, but i cant seem to figure that out.

so heres the little piece of script i used, and thanks for any help.
Click to reveal..
;##############################
; Points System
;##############################

on *:JOIN:#dehbeeflyy:{
timerDebbieRanks $+ $nick 0 600 add.pts $nick
}

on *:TEXT:!joinpoints:#dehbeeflyy:{
timerDebbieRanks $+ $nick 0 600 add.pts $nick
}

on *:PART:#dehbeeflyy:{
.timerDebbieRanks $+ $nick off
}

alias add.pts {
if (!$check_twitch(%twitch_username)) { | return }
set %topic $1
var %DehbeePoints $calc($readini(DehbeeRanks.ini,%topic,points) + 1)
writeini -n DehbeeRanks.ini %topic points %DehbeePoints
echo -a %topic now has %DehbeePoints
}


on *:TEXT:!top5:#dehbeeflyy:{
if (%floodDebRanks) { return }
set -u120 %floodDebRanks On
top5 #
}
alias top5 {
window -h @. | var %i 1
while $ini(DehbeeRanks.ini,%i) {
aline @. $v1 $readini(DehbeeRanks.ini,$v1,points)
inc %i
}
filter -cetuww 2 32 @. @.
var %i 1 | while %i <= 5 {
var %list $addtok(%list,$line(@.,%i),44)
inc %i
}
msg # The top 5 viewers are: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
window -c @.
}

Last edited by RatkaStream; 13/02/15 04:12 AM.