Alright, i did some research and testing for the second problem, the turn on/off script. I used
this thread as the basic, so credit goes to blessing.
1) replace your whole "alias -l addPoints" with this one:
alias -l add.pts {
if %point.off { return }
writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
}
This should turn off the point-calculation, whenever the variable %point.off is not set.
2) I changed the other script in the thread a bit, to fit my own personal taste:
on $*:text:/^!points (on|off)/:#:{
if $nick isop # { return }
if $2 == off {
set -e %point.off 1
msg # Not collecting points anymore.
}
if $2 == on {
unset %point.off
msg # Collecting points now.
}
}
With that, any moderator should be able to use the turn on/off script. If you don't like that, change the isop line to your prefered method.
3) I had to remove the line that gives 1 point when somebody joins the channel, to make the script work even if it starts after somebody is already in. Same thread, a few posts before:
on !*:join:#:{
$+(.timerpoints.,#,.,$nick) 0 900 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick) <-- Erase that
}
So far, those modifications work for me. I am still new to scripting tho, so i wouldn't mind if somebody would look over my solution, to make sure that i don't have any errors.