Author Topic: Suggestion: Idea to prevent flood.  (Read 678 times)

Offline mihai14

  • Full Member
  • *
  • Topic Author
  • Posts: 96
  • Karma: +2/-9
    • View Profile
    • Awards
Suggestion: Idea to prevent flood.
« on: March 08, 2011, 00:50 »
Here is my idea of a system that I think it could help preventing flood and also help against the noobs that spam using checkban or rmk...

When someone give a command to the bot, check if there is a variable (integer: "nick"_commands or something like this), if it's false create it with value 0, if it's true (variable exist) check value, if value < 5, then +1, if value > 5, ignore player.
When variable is created also create a countdown (60s) that repeats all the time, when countdown end (and start again) modify variable's value -1, and if value of integer is 0 when countdown end destroy variable and countdown.

Offline Geistesblitz

  • Retired Moderator
  • MonsterKill Member
  • *
  • Posts: 3188
  • Karma: +180/-146
    • View Profile
    • Awards
Re: Suggestion: Idea to prevent flood.
« Reply #1 on: March 08, 2011, 00:56 »
This is already in place with different values and in-game commands are limited on the new bots.