Advertisement
Guest User

Spam script

a guest
Oct 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.17 KB | None | 0 0
  1. on 5:TEXT:!spam*:#: {
  2.   set %spamtext $2-
  3.   if ($2 == stop) {
  4.     timerSpam off
  5.     if (%spam_is_running) msg # Stopping spam.
  6.     set %spam_is_running $false
  7.     halt
  8.   }
  9.   if ($2 == settimer) {
  10.     if (%spam_is_running) {
  11.       msg # Spam is currently running. The timer cannot be changed right now.
  12.       halt
  13.     }
  14.     if (($3 isnum) && ($3 >= 10) && ($3 <= 3600)) {
  15.       set %spam_timer $floor($3)
  16.       msg # Spam timer set to %spam_timer seconds.
  17.       halt
  18.     }
  19.     msg # To set the Spam timer, use "!spam settimer <10-3600>". It is currently set at %spam_timer seconds.
  20.     halt
  21.   }
  22.  
  23.   if (%spam_is_running) {
  24.     msg # Spam is currently in use. If you wish to stop it, type "!spam stop".
  25.     halt
  26.   }
  27.   elseif ($2 == $null) {
  28.     msg # You can start a spam message by typing "!spam <text>". It will be repeated for eternity every %spam_timer seconds until a mod writes "!spam stop". To change the intervals, type "!spam settimer <10-3600>"
  29.     halt
  30.   }
  31.   set %spam_is_running $true
  32.   timerSpam 0 %spam_timer msg # %spamtext (Mods: "!spam stop" to end this message)
  33.   msg # Alright, I will spam this message every %spam_timer seconds. SeemsGood
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement