blackvenomm666 commented on a Page, 2 addicting scripts  -  Feb 15, 2014

just put .timerawesome in front of msg on the awesome one and .timerpowerlevel before msg on the powerlevel

Laxus  -  Feb 16, 2014

That puts a timer before the message, I want a timer that /notices $nick and says "You have to wait xAmounOfTime to use this command" And counts down. I have a timer but don't know how to fit it in, so I would just like a new timer for both of the scripts.

xKarpfen  -  Feb 17, 2014
just add a variable that prevents the usage
if(%floodawesome) { return }
set -u60 %floodawesome On

if you want to prevent single users from spamming it aswell you can add variables for each user
in this case every user that uses it has 60 second to wait while someone else can use the command after 30 seconds

if ($($+(%, floodawesome.,$nick),2) || (%floodawesome)) { return } 
set -u60 %floodawesome. $+ $nick On
set -u30 %floodawesome On

Hope i could help :)

Laxus  -  Feb 18, 2014

So like this:
on :TEXT:!awesome:#: msg # $nick is $r(1,100) $+ % awesome today! {
if(%floodawesome) { return }
set -u60 %floodawesome On
}

If that works is there any way I could show duration of the flood protection so it counts down, and how do I notice the person "You have to wait DURATIONHERE to use this command again."

xKarpfen  -  Feb 19, 2014
on *:TEXT:!awesome*:#: {
if ($($+(%, floodawesome.,$nick),2) || (%floodawesome)) { return }
set -u60 %floodawesome. $+ $nick On
set -u30 %floodawesome On
msg # $nick is $r(1,100) $+ % awesome today!
}

Thats how you would put it in.
Im not sure though how you would show the timer.
I got a similar script somewhere, if i find something i will tell you.

Laxus  -  Feb 19, 2014

Thank you karp, I have edited it and made it a bit more to my liking.
Edit: I also put it in message so no need to worry.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.