Please help me.. Script isn't working - 31/01/15 11:56 PM
Code:
on !*:JOIN:#coolkid661:{ $+(.timerpoints.,#,.,$nick) 0 300 add.pts $+(#,.,$nick) add.pts $+(#,.,$nick) if coolkid661($mid(#,2-) !ison #coolkid661) return } on !*:PART:#coolkid661:$+(.timerpoints.,#,.,$nick) off alias -l add.pts { writeini -n Points5.ini $1 Points $calc($readini(Points5.ini,$1,Points) + 1)} if coolkid661($mid(#,2-) !ison #coolkid661) return } alias -l addPoints { if coolkid661($mid(#,2-) !ison #coolkid661) return if ($1 !isnum) { echo 2 -st $1 is not a number. It needs to be a number. | halt } var %topic $+($chan,.,$nick) var %Points5 $calc($readini(Points5.ini,%topic,Points) + $1) writeini -n Points5.ini %topic Points %Points5 return %Points5 } alias -l lookUpPoints { var %topic $+($chan,.,$nick) var %Points5 $readini(Points5.ini,%topic,Points) return %Points5 } alias doaddpoints { if coolkid661($mid(#,2-) !ison #coolkid661) return if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt } var %topic $+($1,.,$2) var %Points5 $calc($readini(Points5.ini,%topic,Points) + $3) writeini -n Points5.ini %topic Points %Points5 echo -a Added points for %topic } alias dorempoints { var %topic $+($1,.,$2) remini -n Points5.ini %topic Points echo -a Removed points for %topic } on *:text:!Points5:#:{ if ($readini(Points5.ini,$+(#,.,$nick),Points) > 0) { msg # $Nick you have $readini(Points5.ini,$+(#,.,$nick),Points) points! } else { msg # Sorry you do not have any points } } on $*:text:/!Points5 (add|remove)/Si:#:{ if ($nick isop #) { if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return } writeini -n Points5.ini $+(#,.,$3) Points $calc($readini(Points5.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1)) { msg $chan $3 now has $readini(Points5.ini,$+(#,.,$3),Points) total points. } } else { msg $chan This command is only available to moderators. }
I have tried everything I have even tried it without putting in a username... I am trying to count points up for multiple users for my bot and no matter what I do it counts the points regardless if they are in the stream or not.