multiMessage

By koekbliq on Jan 31, 2009

With this script you can select up to 10 people (otherwise you'll flood) to send a message to.
You can choose to send the message by /msg, /notice, both or both + a highlight in the channel.
Also check out my DICE-game: http://www.hawkee.com/snippet/5690/

Enjoy!

;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;;;;;;
;:;:[ MULTIPLE ];:[ made by  ]:;:;[ select up to 10 (flood) people ];:;:
;:;:[ MESSAGE  ];:[ koekbliq ]:;:;[ to send a msg, notice or both  ];:;:
;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;;;;;;

menu channel,nicklist {
  -
  [multiMSG]: multiMSG
  -
}

alias multiMSG {
  [multiMSG]: {
    set %msg1 $?="Message:"
    if (%msg1 == $null) {
      echo (multiMSG) ERROR: please type a message.
      unset %msg1
      halt
    }
    else {
      var %nbr = $snick($chan,0)
      var %i = 1
      while (%i <= %nbr) {
        var %nicks = %nicks $+ $snick($chan,%i) $+ $chr(44) 
        inc %i
      }
      set %method $?="Type 1 for /msg, 2 for /notice, 3 for both & 4 for both + highlight in channel:"
      if (%method == 1) && (%nicks != $null) {
        msg %nicks %msg1 (multiMSG)        
        echo   | echo (multiMSG)  Done, " $+ %msg1 $+ " sent to: %nicks | echo   
        unset %msg1 %nicks %method
      }
      elseif (%method == 2) && (%nicks != $null) {
        notice %nicks %msg1 (multiMSG)
        echo   | echo (multiMSG)  Done, " $+ %msg1 $+ " sent to: %nicks | echo   
        unset %msg1 %nicks %method
      }
      elseif (%method == 3) && (%nicks != $null) {
        msg %nicks %msg1 (multiMSG)
        notice %nicks %msg1 (multiMSG)        
        echo   | echo (multiMSG)  Done, " $+ %msg1  $+ " sent to: %nicks | echo   
        unset %msg1 %nicks %method
      }
      elseif (%method == 4) && (%nicks != $null) {
        msg %nicks %msg1 (multiMSG)
        notice %nicks %msg1 (multiMSG) 
        msg $active %nicks (multiMSG)
        echo   | echo (multiMSG)  Done, " $+ %msg1  $+ " sent to: %nicks | echo   
        unset %msg1 %nicks %method
      }
      elseif (%nicks == $null) {
        unset %msg1 %method
        echo (multiMSG) ERROR: select someone from the nicklist.
        halt
      }
      else {
        unset %msg1 %nicks
        echo (multiMSG) ERROR: type 1 for /msg, 2 for /notice, 3 for both & 4 for both + highlight in channel.
        halt
      }
    }
  }
}

Comments

Sign in to comment.
koekbliq   -  Feb 01, 2009

I haven't thought of that since I've only used it on <10 people, I'll try to take a look at it later on. Until then: don't use it on more than 10 people! :o

 Respond  
Aucun50   -  Jan 31, 2009

Script - flood protection = 30sec ping like me on a good day

 Respond  
Cheiron   -  Jan 31, 2009

no flood protection there. you gonna spam yourself out.

 Respond  
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.