You only return here if these events are true.

if ((%floodrpg) || ($($+(%,floodrpg.,$nick),2))) { return }


If this is making your script return, then you have one of these variable set.