Thanks
I know I'm annoying, and I am trying to figure out on my own as much as I can. But I just started meddling with irc scripts 2 weeks ago, so my knowledge is quite limited.

Code:
on *:TEXT:!rpg:#: {
  if ((%floodrpg) || ($($+(%,floodrpg.,$nick),2))) { return }
  set -u30 %floodrpg On
  set -u30 %floodrpg. $+ $nick On
  var %switch = $rand(0, 1)
  if (%switch == 0) {
    var %adventuremessage = $read(RPGEventsMinus.txt, n)
    var %eventcookies = $rand(1,20)
    msg $chan $nick loses %eventcookies cookies: %adventuremessage
    var %topic = $+(#,.,$nick)
    var %cookies = $readini(Points.ini,%topic,Points)
    var %remove = %cookies - %eventcookies
    writeini -n Points.ini %topic Points %remove
  }
  else {
    var %adventuremessage = $read(RPGEventsPlus.txt, n)
    var %eventcookies = $rand(1,20)
    msg $chan $nick gains %eventcookies cookies: %adventuremessage
    var %topic = $+(#,.,$nick)
    var %cookies = $readini(Points.ini,%topic,Points)
    var %remove = %cookies + %eventcookies
    writeini -n Points.ini %topic Points %remove
  }
}


Any ideas why the flood control would make this script not work at all? the flood is practically copied from the one given here by you, only replacing the command name and the timers. Thank you for your patience smile

Last edited by UnDeadPuff; 02/03/15 02:38 PM.