Granted that the code Jokke presented is broken, has errors and is overall god awful. But you really have no say in this matter with the level of scripting you bring.
From what I can see you haven't scripted a single one of the scripts you have in your signature, yet you still boast that you know mSL and enter various discussions that you have no clue about.

Now, to make this post not entirely off topic: @Jokke, your script has syntax errors all over, and no, not English syntax errors, just basic mSL errors. For instance:
Code:
on $*:text:/!points (add|remove)/Si:#husbotten:{
  if ($nick isop #) {
    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 moderators. }
}
I have no idea how this will translate considering you have an opening bracket without a statement in the middle of nowhere. Another example is this:
Code:
on !*:join:#gamerhuset:{
  $+(.timerpoints.,#,.,$nick) 0 3600 add.pts $+(#gamerhuset,.,$nick)
  add.pts $+(#,.,$nick)
  if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
  set -u10 %floodjoin On
  set -u30 %floodjoin. $+ $nick On
  echo $nick has joined and is now earning points.
}
on !*:part:#gamerhuset:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
  writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  if ((%floodpart) || ($($+(%,floodpart.,$nick),2))) { return }
  set -u10 %floodpart On
  set -u30 %floodpart. $+ $nick On
  echo $nick has left the channel and is no longer earning points.
}
When a user joins, you'll trigger the add.pts alias. The add.pts alias will 1 up the user's value in Points.ini #Gamerhuset.User Points=Value, then it will proceed to echo that the user has left the channel and is no longer earning points, and then echo once more that the user is there an earning points. This as the same time as triggering the "flood control" variables every bad twitch scripter has taken a liking to for no real reason. The reason people use that is to prevent their bot to spam channels, triggering a global ip ban on twitch.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net