Code:
alias -l add.pts {
  if %point.off return {
    writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  }
}
alias -l lookUpPoints {
  var %topic $+($chan,.,$nick)
  var %points $readini(Points.ini,%topic,Points)
  return %points
}
alias doaddpoints {
  if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt }
  var %topic $+($1,.,$2)
  var %points $calc($readini(Points.ini,%topic,Points) + $3)
  writeini -n Points.ini %topic Points %points
  echo -a Added points for %topic
}

alias dorempoints {
  var %topic $+($1,.,$2)
  remini -n Points.ini %topic Points
  echo -a Removed points for %topic
}

on $*:text:/^!points (on|off)/:#:{
  if $nick !== YOURNICKHERE { return }
  if $2 == off { 
    set -e %point.off 1 
    msg # The ability to earn points is no longer available! 
  }
  else { 
    unset %point.off 
    msg # Points are now available to earn! 
  }
}

on *:text:!points:#:{
  if ((%floodcoins) || ($($+(%,floodcoins.,$nick),2))) { return }
  set -u10 %floodcoins On
  set -u300 %floodcoins. $+ $nick On
  msg # $nick - ( $+ $readini(Points.ini,$+(#,.,$nick),Points) $+ )
}

on $*:text:/!points (add|remove)/Si:#:{
  if ($nick == YOURNICKHERE) {
    if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return }
    writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
    { msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) total points. }
  }
  else { msg $chan This command is only available to the owner of this channel. }
}
on !*:join:#:{
  $+(.timerpoints.,#,.,$nick) 0 600 add.pts $+(#,.,$nick) 
} 

on !*:part:#:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
  writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
}



Remove all that old code.
Copy this entire code.
Place it in your remote file.
Change "YOURNICKHERE" with what ever your username on twitch is (all lowercase) to make sure only YOU can turn on/off points or add/remove points... That way you don't have mods giving points away or turning on the system without you knowing it.

Under the " on !*:join:#: " portion, you'll see there is a timer. It has " 0 600 "

Change that to however long you want it to be before people get their point.

under this part...

Code:
alias -l add.pts {
  if %point.off return {
    writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  }
}


you'll notice a +1 at the end. That's the amount of points they're gaining.

Focus on making sure the script works, before you worry about adding to it. As long as you don't change anything but the message and pointgain (ie amount/time) parts of the code you should be okay. Just make sure you're careful when doing so and do a bracket check before you hit ok :P


EDIT:
Please note that I copy pasted this from my remote file. And I don't have points on for when they join the chat (that makes it easy to "farm" points by simply leaving and rejoining)

Last edited by Bramzee; 23/05/14 12:28 PM.