Results for: nick flood

All Results / Threads / Snippets

biase commented on a Page, Idle Check  -  May 06, 2020

i think using $nick(channel, nick).idle is more suitable to check for idle users in channel, since mas whois'ing is like flooding the server

 Respond  
ovelayer commented on a Page, Nick Change Kicker  -  Nov 02, 2018

there are quite a few posted
try the search function
http://hawkee.com/search/nick+flood/
enjoy

 Respond  
LoneStoner commented on a Comment, Noob looking for help  -  Sep 23, 2017

Damn man, much appreciated for the help. I'll implement this today and show you what I have going on. This is what my code looks like right now... This adds points and will read back your score.

on *:text:!sausage:#:{
if ((%floodSAUSAGE) || ($($+(%,floodSAUSAGE.,$nick),2))) { return }
set -u10 %floodSAUSAGE On
set -u30 %floodSAUSAGE. $+ $nick On
msg # ( %sc ) $nick has $readini(Points.ini,$+(#,.,$nick),Points) sausage.
inc %sc
}

on $:text:/!sausage (add|remove)/Si:#:{
if ($nick isop #) {
if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> [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. }
}
on !
:join:#:{
$+(.timerpoints.,#,.,$nick) 0 1200 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick)
}
on !*:part:#:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + $rand(1,20))
}

So ATM I think every 20 minutes everyone in the stream gets 1-50 points. They each get a different number of points.

Update 2:04 PM EST 9/23/17: It's still writing to an ini file but I figured out how to stop it from writing the room name with the points, so now all it's writing is the name of the player and their points like so...

[LoneStoner]
Points = 59

[Another Player]
Points=60

I tried to change it to writetxt Points.txt but that didn't seem to work and got a status msg that said

WRITETXT Unknown Command

(Anytime you get sick of me just tell me to fuck off. : ) )

LoneStoner commented on a Comment, Noob looking for help  -  Sep 18, 2017

Okay I got it sorted out, not I just need it to read random winning messages.

on 1:TEXT:!Battle*:#: {
if ((%floodBATTLE) || ($($+(%,floodBATTLE.,$nick),2))) { return }
set -u10 %floodBATTLE On
set -u30 %floodBATTLE. $+ $nick On
var %battle2 = $rand(1,500)
set %battle $rand(1,500)
set %battle2 $rand(1,500)
if %battle === %battle2 {
msg $chan $nick has swung against $2 and did %battle dmg while $2 did %battle2 damage, declaring it a tie.
}
if %battle > %battle2 msg $chan $nick has won against $2 dealing %battle dmg while $2 delt %battle2 dmg.
if %battle < %battle2 msg $chan $nick has lost. $2 delt %battle2 dmg while $nick only did %battle dmg.
}

So as of now it will find a winner and declare them victor. Now I'm just working on how to have a few different messages win rather than the static winning message I have now.

CrazyDriver commented on a Comment, set dj  -  Aug 04, 2017

Thank you very much as you don't need all those de-ops, voicing, etc or all the other stuff, I have whittled it down to what I like.

alias sc_topic1 { 
  topic $1 0Current DJ:7 %sc.dj. [ $+ [ $1 ] ] $+ 4. 0Type 7!rc 0for the 4Radio Commands0! 
}

alias sc_topicoff { 
  topic $1 0Current DJ:7 %sc.dj. [ $+ [ $1 ] ] $+ 4. 0Type 7!rc 0for the 4Radio Commands0! 
}

on *:text:!dj *:#:{
  if ($me isop #) {
    if ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 ison #) {
      timerup 1 1 msg chanserv up # %sc.dj. [ $+ [ $chan ] ]
      timersetdj1 1 1  set %sc.dj. [ $+ [ $chan ] ] $2
      timertopic 1 2 sc_topic1 $chan
      timermode1 1 2 mode # -qaoh $2 $2 $2 $2
      timermode2 1 2 mode # +o $2
      timermsg1 1 2 msg # $2 is now currently on the radio! join #cnr.radio to join in the discussion!
    }
    elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 !ison #) { msg # $nick $+ , $2 is not online in this channel # }
    else { msg # 4Error: You have no rights currently to do this! }
  }
  else {
    notice $nick $me has no rights due to them having minimum @ (ops) required to being able to function correctly!
  }
}

on 1:TEXT:*!offair:#:{
  if ($me isop #) {
    if ($regex($nick(#,$nick).pnick,/(!|~|&|@|%)/)) && ($2 ishop #) {
      set %sc.dj. [ $+ [ $chan ] ] Non-Stop DJ
      timertopic 1 1 sc_topic1 $chan
      timermode 1 1 mode # -h $2 $2
      timermode 1 1 mode # +o $2
      timerup 1 1 msg chanserv up # $2
      timermsg 1 1 msg # $nick $+ , $2 is no longer DJ on # $+ !
    }
    elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@|%)/)) && (!$2) { 
      msg # %sc.dj. [ $+ [ $chan ] ] is no longer DJ on # $+ !
      timermode 1 1 mode # -h %sc.dj. [ $+ [ $chan ] ] %sc.dj. [ $+ [ $chan ] ]
      ;timervop 1 1 mode # +v %sc.dj. [ $+ [ $chan ] ]
      timerup 1 1 msg chanserv up # %sc.dj. [ $+ [ $chan ] ]
      timerset 1 2 set %sc.dj. [ $+ [ $chan ] ] Non-Stop DJ
      timertopic 1 2 sc_topic1 $chan
      ;timermsg 1 2 msg %irc.chan,# $2 is now adjusted as DJ on %irc.chan $+ !
    }
    elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 !ison #) { msg # $nick $+ , $2 is not online in this channel # }
    else { msg # 4Error: You have no rights currently to do this! }
  }
  else {
    notice $nick $me has no rights due to them having minimum @ (ops) required to being able to function correctly!
  }
}

on *:text:!request *:#:{     
  if (%verzoekflood. [ $+ [ $nick ] ] $+ ) {
    notice $nick 1 request per 3 minutes please
    msg $nick 4 $+ $nick 0has flooded with a 7request 0which was 4 $+ $2-  
    halt 
  }
  if (!%verzoekflood. [ $+ [ $nick ] ] $+ ) { 
    inc -u180 %verzoekflood. [ $+ [ $nick ] ] {
      if (!$2) { 
        msg # $nick $+ , Syntax is: !request  <artist - song>
        halt 
      }
      if (%sc.dj. [ $+ [ $chan ] ] == Non-Stop DJ) { 
        msg # 0Sorry4, 0there is 7currently 0no 4DJ On Air 0so 7requests 0are currently 4disabled 0until then4! 
        halt 
      }
      if (%sc.dj. [ $+ [ $chan ] ] !ison #) {
        msg # $nick $+ , Sorry %sc.dj. [ $+ [ $chan ] ] is not on # rightnow
        halt 
      }
      if ($regex($nick($chan,%sc.dj. [ $+ [ $chan ] ] $+ ).pnick,/(!|~|&|@|%)/)) { 
        msg # DJ %sc.dj. [ $+ [ $chan ] ] $+ , Spin that request and put that request from4 $nick 1 
        msg %sc.dj. [ $+ [ $chan ] ] 4[Request] $2- $+  request by 11,1 $+ $nick $+  om 4 $+ $asctime(HH:nn:ss)
        msg # 4[ReQuest] $2- $+  requested by 11,1 $+ $nick $+  at 4 $+ $asctime(HH:nn:ss) 
        notice $nick Your request 11,1 $2-  has been delivered to %sc.dj and should be on soon! [ $+ [ $chan ] ] 
        halt 
      }
      else { 
        msg # $nick $+ , $2 is not as DJ on #  
      }
    }
  }
}

on *:text:!resetrequest*:#:{
  if ($nick isop #) {
    msg # All 7Requests 1have been resetted4! 1Please do 7!request <artist> - <song> 1to re-request a song4!
    halt
  }
}
Charlatan commented on a Comment, AntiFlood  -  Apr 06, 2017
on @!*:text:*:#:if (%FT. [ $+ [ # ] ] = si) { fprotkick $strip($1-) }
on @!*:action:*:#:if (%FT. [ $+ [ # ] ] = si) { fprotkick $strip($1-) }

alias -l fprotkick {
  if ($nick(#, $nick, '.@)) halt
  inc -u5 [ % $+ [ $chan ] $+ [ $nick ] $+ rrepeatings $+ [ $hash($strip($1-),32) ] ] 1 
  if ($regex([ % $+ [ $chan ] $+ [ $nick ] $+ rrepeatings $+ [ $hash($strip($1-),32) ] ],3))  kick # $nick Don't flooding, we don't like that.
  halt
}
ocattt commented on a Page, !Pickpocket w/ !additem and !delitem  -  Dec 28, 2016

Fun script, you should just add an anti flood

on :TEXT:!additem:#: {
if (%additem) halt
set -u5 %additem 1
if (!$read(items.txt, nw, $2)) {
write items.txt $2-
msg # $2- is successfully added in the items list.
}
else {
msg # $2- is already in the items list.
}
}

on :TEXT:!delitem:#: {
if (%delitem) halt
set -u5 %delitem 1
if (!$read(items.txt, nw, $2)) {
msg # $2- is not on the items list.
}
else {
write -dl $+ $2- items.txt
msg # $2- is successfully deleted in the items list.
}
}

on :TEXT:!pickpocket:#: {
if (%pickpocket) halt
set -u10 %pickpocket 1
var %items = $read(items.txt)
if (!$2) { notice $nick Syntax: !pickpocket }
if ($2 == $me) { notice $nick I would not harass myself! }

timer 1 1 describe $chan gets near to $2 $+ !
timer 1 3 describe $chan reaches in $2 $+ 's pocket and finds... a %items $+ !
}
else notice $nick $2 is not in $chan $+ !
}
}

/////// the set -u5 or -u10 is the time between 2 commands

 Respond  
illhawkthat commented on a Comment, Youtube Script (Parse Vids and Search) v6.5  -  Aug 28, 2016

Hey sorry about the late reply! For some reason didn't see these notices. Erase all the botflood lines
if ($($+(%,botflood.,$nick),2)) {
if ($($+(%,botflood.,$nick),2) >= 50) {
ignore -u60 $address($nick,2)
msg $chan $+($nick,$chr(44)) You have been put on ignore for 60secs for abusing the bot.
halt
}
elseif ($($+(%,botflood.,$nick),2) >= 40) {
msg $chan $+($nick,$chr(44)) Please do not flood the bot.
inc -z $+(%,botflood.,$nick) 20
halt
}
else {
inc -z $+(%,botflood.,$nick) 10
}

!ytsearch is used to search youtube try <!ytsearch hello> to get the video for hello

Alejandro commented on a Comment, Youtube Script (Parse Vids and Search) v6.5  -  Jul 20, 2016

I found it, but which line should i erase

parse on

on $:text:/youtu(.be|be.com)/Si:: {
$iif($istok(%youtubefetch,$chan,44),halt,noop)
$iif($istok(%nolinks,$nick,44),halt,noop)
if ($($+(%,botflood.,$nick),2)) {
if ($($+(%,botflood.,$nick),2) >= 50) {
ignore -u60 $address($nick,2)
msg $chan $+($nick,$chr(44)) You have been put on ignore for 60secs for abusing the bot.
halt
}
elseif ($($+(%,botflood.,$nick),2) >= 40) {
msg $chan $+($nick,$chr(44)) Please do not flood the bot.
inc -z $+(%,botflood.,$nick) 20
halt
}
else {
inc -z $+(%,botflood.,$nick) 10
}

illhawkthat commented on a Comment, Youtube Script (Parse Vids and Search) v6.5  -  Jul 15, 2016

Yes, it has flood protection on a per nick basis as well as duplicate link detection.

NoKz commented on a Comment, Youtube Script (Parse Vids and Search) v6.5  -  May 28, 2016

I got it working by adding:

   if ($nick isop #) || (subscriber=1 isin $msgtags) {

To the below entry in the script.

on $*:text:/^[!!]y(outube|t|tsearch|search|ousearch|outubesearch)(\s|$)/Si:#: {
 $iif($istok(%youtubefetch,$chan,44),halt,noop)
 $iif($istok(%nolinks,$nick,44),halt,noop)
   if ($nick isop #) || (subscriber=1 isin $msgtags) {
 if ($($+(%,botflood.,$nick),2)) {
 if ($($+(%,botflood.,$nick),2) >= 50) { 
      ignore -u60 $address($nick,2) 
      msg $chan $+($nick,$chr(44)) You have been put on ignore for 60secs for abusing the bot.
     ;halt 
    }
    elseif ($($+(%,botflood.,$nick),2) >= 40) { 
      msg $chan $+($nick,$chr(44)) Please do not flood the bot. 
      inc -z $+(%,botflood.,$nick) 20 
      halt 
    }
    else { inc -z $+(%,botflood.,$nick) 25 }
  }
  else { inc -z $+(%,botflood.,$nick) 25 }
  var %ticks $ticks

  if ($2) {
    if ($chan) {
      if (($left($strip($1),1) == !) && (%_youtube.notices != true)) { set $+(%,youtube.,%ticks,.msgtype) msg $chan }
      else { set $+(%,youtube.,%ticks,.msgtype) notice $nick }
    }
    else { set $+(%,youtube.,%ticks,.msgtype) msg $nick }
    set $+(%,youtube.,%ticks,.search) $2-
    set $+(%,youtube.,%ticks,.query) $urlencode($2-)
    sockopen -e $+(youtube.,%ticks) www.googleapis.com 443
  }
  elseif ($2 == $null) { 
    notice $nick Incorrect Syntax - Use $1 <search term> 
  }
}
}
kassquatch commented on a Comment, Welcome msg on first join only help (not every join)  -  May 06, 2015

thanks for the help, I got it to work. though, it may be ugly :p Im a code manipulator, not a code creator :) Also, dont know how to format this post here. so its all split up. this is all in one "on join {}"
edit: pastebin for those who care. This will only work if you use the points system i have from jally (i think) http://pastebin.com/0Q6b6CWM

ON !*:join:#:{
if ($nick != kassquatch && $readini(points.ini, n, $+(#,.,$nick), Points) > 0) {
$+(.timerpoints.,#,.,$nick) 0 600 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick)
if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
set -u10 %floodjoin On
set -u30 %floodjoin. $+ $nick On
msg $chan /ME Welcomes $nick back to the stream.
}
elseif ($nick != kassquatch) {
$+(.timerpoints.,#,.,$nick) 0 600 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick)
if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
set -u10 %floodjoin On
set -u30 %floodjoin. $+ $nick On
msg $chan /ME Welcomes $nick to the stream. Feel free to chat or lurk around! Just remember, to win give-a-ways, you have to be a follower! Type !commands for a list of commands!.
}
}

Lucyfero commented on a Page, Need help with a Define and Explain script  -  May 05, 2015

Hi, just 2 issues:
first use alias so that you can check the script; second you should consider an anti-flood mechanism otherwise you will get kicked.
This code works: (to check it use: !define love nature's way of tricking people into reproducing. )

on *:INPUT:#: {
if ($1 == !define) { define $me $2- | haltdef }
elseif ($1 == !explain) { explain $2 | haltdef }
}

on 1:TEXT:!define :#: define $nick $2-
on 1:TEXT:!explain
:#: explain $2

alias -l define {
if (%noflood) { halt }
; Silently exits
set -u10 %noflood $true
.writeini Worddata.ini Define-Explain $2- ::: Last Modified by $1 @ $date - $time
msg $chan The Definition Of ( $2 ) Has Been Set by $1 $+ .
}

alias -l explain {
if (%noflood) { halt }
; Silently exits
set -u10 %noflood $true
if ($readini(Worddata.ini,Define-Explain,$1) == $null) {
msg $chan $1 --->> Undefined.
}
else {
msg $chan $1 --->> $readini(Worddata.ini,Define-Explain,$1)
}
}

BadMannerZ commented on a Page, AutoJoin for Mirc  -  Feb 15, 2015

If you want to auto join channels using Mirc, click on Tools, Options & Perform. In the Perform commands box type the following:

/join #ChannelName.r

If the channel happens to be passworded, and you know the password, you can join the channel by typing the following in the Performs commands box:

/join #ChannelName.r password

Click OK after each command

As a side note, you can also auto identify by typing the following in the Perform commands box:

/msg nickserv identify password

I think there's a way to auto join multiple rooms using only one command, however, I don't know what that command is. I merely add another join command on a separate line. If I'm not mistaken, if there are too many perform commands entered, you may get an error, possibly a flood error, but it's been so long I can't recall. At the moment I have 2 join commands, an identify command as well as a /list command and I've experienced no problems. Also, make sure the Enable perform on connect box is ticked.

Hope this helps.

 Respond  
Paper0rPlastic commented on a Comment, Custom Command Adding and Deleting Script  -  Dec 09, 2014
    if ($len(%t)) { 
      if ((%floodcom. [ $+ [ $chan ] ]) || ($($+(%,floodcom. [ $+ [ $chan ] ] $+ .,$nick),2))) { return }
      set -u10 %floodcom. [ $+ [ $chan ] ] On
      set -u30 %floodcom. [ $+ [ $chan ] ] $+ . $+ $nick On
      msg # %t
    }
  }
}
westpanda commented on a Page, Custom Command Adding and Deleting Script  -  Dec 06, 2014

Anyone have a idea how to add flood Protection to this ?

I tried this code :

{
on $*:text:/^!(\S+)/:#:{
if ((%floodcom) || ($($+(%,floodcom.,$2),2))) { return }
set -u10 %floodcom On
set -u30 %floodcom. $+ $nick On
if ($readini(rcdradio_commands.ini,n,#,$regml(1))) msg # $v1
}

Afterburn1000 commented on a Page, Bot Help?  -  Dec 03, 2014

Mayhaps you could add a points system, custom commands, a welcome system, link blocker and regulars system? It really depends on what you want the bot to do. Hopefully that'll give you a couple of ideas though.

apologies for the lack of code windows, have yet to learn how to do them, however for the sake of easier reading/copying of the script I put it in a pastebin http://pastebin.com/3KNw3iYH

Timers are very simple in mIRC, all you need to use is .timer(reference) [repeats] [interval] (action)

So for your command every 15 minutes it would be:

on *:TEXT:!ctt:#: {
if ((%floodctt) || ($($+(%,floodctt.,$nick),2))) { return }
set -u10 %floodctt On
set -u30 %floodctt. $+ $nick On
.timerctt 0 900 msg $chan Be sure to click this link to post to your friends on twitter and help grow the channel! It's Much appreciated! http://ctt.ec/adc2V
}

however if you want to use timers you may want to turn it off at some point, all you need to do for that is make a seperate command which uses .timer(reference) off.

Your !raid command doesn't work because you didn't include the brackets. Here is the command with the correct brackets, it should now work.

on *:TEXT:!raid:#: {
if ($nick isop #){
if (!$2) { msg $chan Must specify a streamer to raid }
elseif ($2) && (!$3) { msg $chan This is the end of the stream everyone! Its raid time! PogChamp Go to http://www.twitch.tv/ $+ $2 and once you see the sign say "Holy Heck! Its a Heckaber2 Raid" }
}

I cannot help you on why only on text triggers seem to be working for you, although it is possible you have a wildcard trigger (i.e. on :text::#: { ) Which "blocks" commands underneath it in the script window from being activated. When in doubt open a new script file and try the command in there.

Afterburn1000 commented on a Page, Need Help With A Simple Twitch Bot  -  Dec 01, 2014

Hey, I'm kinda new to mIRC myself however I think I can help you, I just can't hope to explain a great deal of the script to you myself.

This is also my first post on Hawkee so I don't know how to input the script as code, apologies.

I believe the script you are looking for is something along the lines of:

on :text:!Give points:#: {
if ($0 != 4) || ($4 !isnum) {
msg # Insufficient or incorrect parameters: use !Give points [user] [number]
Halt
}
if ($4 <= 0) {
msg # $nick you cannot give someone less than 1 point
halt
}
if ($readini(Points.ini,$+(#,.,$3),Points) = $null) {
msg # $nick I do not recognise that name, please check your spelling or that you have the correct name and try again.
Halt
}
else {
if ($readini(Points.ini,$+(#,.,$nick),Points) >= $4) {
writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) + $4)
writeini -n Points.ini $+(#,.,$nick) Points $calc($readini(Points.ini,$+(#,.,$nick),Points) - $4)
msg # $nick has given $4 of their points to $3, $3 now has $readini(Points.ini,$+(#,.,$3),Points) points.
halt
}
elseif ($readini(Points.ini,$+(,.,$nick),Points) < $4) {
msg # $nick you do not have that many points to give.
halt
}
}
}

Now I will attempt to break what each segment means, as best I can.

on :text:!Give points:#: {
if ($0 != 4) || ($4 !isnum) { If there are more or less than 4 words in the chat message and the 4th word is not a number
msg # Insufficient or incorrect parameters: use !Give points [user] [number]
Halt
}
if ($4 < 1) { if the number is less than 1
msg # $nick you cannot give someone less than 1 point
halt
}
if ($readini(Points.ini,$+(#,.,$3),Points) = $null) { If the target doesn't exist (meaning isn't in the points system)
msg # $nick I do not recognise that name, please check your spelling or that you have the correct name and try again.
Halt
}
else {
if ($readini(Points.ini,$+(#,.,$nick),Points) >= $4) { if the user has more or equal points to those they are trying to give
writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) + $4) Adds points to the target's points balance
writeini -n Points.ini $+(#,.,$nick) Points $calc($readini(Points.ini,$+(#,.,$nick),Points) - $4) removes points from the user's balance
msg # $nick has given $4 of their points to $3, $3 now has $readini(Points.ini,$+(#,.,$3),Points) points. displays the target's new balance
halt
}
elseif ($readini(Points.ini,$+(,.,$nick),Points) < $4) { If the user has less points than they are trying to give
msg # $nick you do not have that many points to give.
halt
}
}
}

I hope this helps. On a side note you may want to be careful who you allow to use this command, due to the possibility for someone with multiple accounts to add more points to one of their accounts.
If you definitely want to use the command you may also want to add some flood protection, I won't bother describing that as you may already know it.

^WeSt commented on a Comment, Twitch !watch command(s)  -  Oct 12, 2014

You have spend 10-15 minutes to say bullshits for an simple requested code if you see that this is wrong go on the forum and post your code, also in your reply the 90% of your reply is wrong first of all the [ $+ $nick $+ ] inside the [] brackets there are $chr(3) but the hawkee parser does not recognized them. and about the flood that you said, the user wanted that way so i follow him request step by step, and i am not an magician to guess if the IRCD server will ban him or the channel modes or the channel services settings, also the why i post here the code and not directly this does not make sense and you are not the person who will tell me where to post my codes, if feel free to post them here and i post them, if you have a better job go and do it and don't fill the my posts with your silly comments.

Yawhatnever commented on a Page, Twitch !watch command(s)  -  Oct 11, 2014

I would use $+([, $nick, ]:) to surround $nick with brackets because you will be less likely to accidentally introduce a ] bracket somewhere. Since [ ] are eval brackets in mSL, it could potentially lead to risky code in some cases. Perhaps not for twitch, but it's one of those things that's good to get in the habit of watching out for.

Is there a reason you didn't just reply to the original thread on the mIRC forums instead of posting here? This is only half of a script; it's missing the part where user data is stored. That makes it kind of useless for anyone who views it here.

!watchnicks will easily reach Twitch spam limits if more than 20 (or 100 if the bot is a mod) nicks are in the list, causing the bot to be locked out of chat for 8 hours. There is also no flood protection limit that I can see, so even if there are only 10 users in the list somebody could use the command 2-10 times in a row to get the bot banned for 8 hours.

Since the part where points/time are increased is missing I can't tell if this tracks every viewer or just specific ones, but I would assume it tracks all viewers. The system should really use something besides an ini file to store the data, because many twitch channels are VERY large and storing everything in points.ini will eventually start causing mIRC to freeze. I guarantee this will happen much more frequently than you think. You should at least use a hash table, and perhaps set up a system that periodically either removes users after a period of inactivity or archives their data to speed up operations on the table of active users.

Nos commented on a Page, help please  -  Sep 09, 2014
on *:TEXT:!kill*:#:ukill $1-
alias ukill {
  if (!%flood) {
    if ($2 == $null) { 
      msg $chan You have not stated any name. $&
        The name/whatever must be stated after $qt($iif(!$isid,/ukill,+Kill))
    }
    elseif ($2 !ison $chan) {
      msg $chan The name $qt($2) has not been found on the channel.
    }
    else {
      var %stamp = $+($chr(3),11,$chr(171),$chr(248),$chr(187),$chr(3),14)
      inc %killcount
      msg $chan %stamp Searching for $2 $+ ...
      msg $chan %stamp $2 has been found!!!
      var %tm = .timer 1 3 describe $chan, %shoot = $rand(1,10)
      if (%shoot == 1) %tm takes out a sniper rifle and shoots it at $2 $+ .
      if (%shoot == 2) %tm takes out a pistol, points it at $2 and triggers it TRRRAANGGG!
      if (%shoot == 3) %tm drops $2 over a cliff.
      if (%shoot == 4) %tm throws $2 into a canyon.
      if (%shoot == 5) %tm tickles $2 to death.
      if (%shoot == 6) %tm makes $2 eat a toxic sandwich.
      if (%shoot == 7) %tm pushes $2 into a box with spiky objects.
      if (%shoot == 8) %tm sneaks in behind $2 and inserts a sword.
      if (%shoot == 9) %tm gives $2 a grenade and runs.
      if (%shoot == 10) %tm makes $2 eat an toxic frog.
      .timer 1 4 msg $chan %stamp $qt($2) has been successfully killed. $&
        And 25 Dollars have been taken from $nick $+ . [Murders: %killcount $+ ]
      set -u4 %flood on
    }
  }
} 
Nos commented on a Page, mIRC Error Posting  -  Aug 10, 2014

add anti flood

on *:TEXT:!plop:#dotcomboy17:{
  if !%flood. && !%flood.. [ $+ [ $nick ] ] {
    if $nick isop $chan {
      set -u10 %flood. on
      set -u15 %flood.. [ $+ [ $nick ] ] on
      msg $chan Plop!
    }
    else {
      .notice $nick error
    }
  }
} 
Meta commented on a Comment, Roulette need help script only work for mods/broadcaster  -  Jul 25, 2014

Yes. Generally speaking, when it comes to a group of conditions, the first of the group should be an if, the last an else, and any middle conditions, elseif.

By the way, your code should ultimately look like this with my changes:

On *:TEXT:!Roulette:#: {
  if ((%floodroulette) || ($($+(%,floodroulette.,$nick),2))) { return }
  set -u1 %floodroulette On
  set -u1 %floodroulette. $+ $nick On
  if ($nick isop #) msg $chan Nazi mods are only released upon spam DansGame you know that $nick ...
  else {
    var %randnumber = $rand(1,4)
    if (%randnumber == 1) {
      msg $chan BANG!... The gun TRIGGERS! and a bullet goes off... $nick is shaking so badly that it MISSES him but hits some metal and reflects back into $nick's head. 
      msg $chan /timeout $nick 120
    }
    elseif (%randnumber == 2) { 
      msg $chan Roulette clicks!...Empty...You live to see another day $nick pew....
    }
    elseif (%randnumber == 3) { 
      msg $chan ..... BANG! ... Roulette kills another victim BibleThump 
      msg $chan /timeout $nick 120
    }
    elseif (%randnumber == 4) {
      msg $chan $nick starts to shake, $nick tries to pull the trigger but can't. $nick drops the gun, $nick isn't up for the challenge... Roulette. 
    }
  }
}

I've left the last condition (elseif (%randnumber == 4)) in, in case you want to add more options later on. If not, you could just change that entire part to else (without the (%randnumber == 4))

Edit - Accidentally left in that pointless %randmods var... Removed

Snes_Nerd commented on a Page, Twitch giveaway help.  -  Jul 23, 2014

It has been answered.

on *:text:!SantaSnes:#:{
if ((%floodSantaSnes) || ($($+(%,floodSantaSnes.,$nick),2))) { return }
set -u10 %floodSantaSnes On
set -u30 %floodSantaSnes. $- $nick On
if ($nick isop #) { msg # /me Looking for a winner. }
if ($nick isop #) { .timer 1 5 msg # /me Let's see who's been naughty or nice! }
if ($nick isop #) { .timer 1 10 msg # /me [GIVEAWAY]: $nick(#,$rand(1,$nick(#,0))) Just won the giveaway, I will be sending you a PM via Twitch. [GIVEAWAY] }
if ($nick isop #) { .timer 1 15 msg # /me Ho Ho Ho }
else { msg # $nick you do not have permission to use this command! }
}

 Respond  
Nos commented on a Page, pokeball script (Basic)  -  Apr 13, 2014

[i]
My version does not use notepad [/i] ^_^

on *:TEXT:*:#:{
  var %pokemon = 1|2|3|4|5|6, %p = $gettok(%pokemon,$rand(1,$numtok(%pokemon,124)),124), %chance = $rand(1,2)
  if ($me == Bot && !pokeball* iswm $strip($1)) {
    if (!%flood) {
      set -zc %flood 30
      .timer 1 1 msg $chan $nick throw a pokeball at %p 
      .timer 1 2 msg $chan the pokeball is glowing
      if (%chance == 1) { .timer 1 4 .msg $chan $nick caught the %p $+ ! }
      if (%chance == 2) { .timer 1 4 .msg $chan the %p escaped! }
    }
    else {
      .notice $nick please wait %flood seconds to use another !pokeball
    }
  }
} 
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.