mIRC Home    About    Download    Register    News    Help

Print Thread
#204078 07/09/08 04:15 PM
Joined: Jun 2008
Posts: 9
J
Jamezzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jun 2008
Posts: 9
mass pm script

hey could anyone supply me with a script that would PM (/msg) everyone on a certain channel, whom are voiced and above?
a command such as /masspm #channel <message>

thanks in advance smile

Jamezzz #204097 08/09/08 10:44 AM
Joined: Mar 2007
Posts: 139
S
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Code:
alias masspm {
  if (!$3) { echo $color(info) -a * /masspm: insufficient parameters | return }
  var %i = 1,%msg = $3-
  while ($nick(#,%i,a,r)) { .msg $v1 %msg | inc %i }
  echo -a -> masspm $+(#,:) %msg $iif((%i > 10),4You have mass messaged more then ten users which may result in you flooding off the server.)
}

Solo1 #204288 14/09/08 06:03 PM
Joined: Jun 2008
Posts: 9
J
Jamezzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jun 2008
Posts: 9
what's the syntax for this?

Jamezzz #204291 14/09/08 07:03 PM
Joined: Sep 2008
Posts: 3
D
Self-satisified door
Offline
Self-satisified door
D
Joined: Sep 2008
Posts: 3
Code:
alias masspm {
  ;$1 is channel, $2- is message
  var %a = 1
  var %b
  while (%a <= $nick($1,0)) {
    %b = %b $+ $nick($1,%a) $+ $chr(44)
    if ($calc(%a % 10) == 0) {
      /timer 1 $calc((%a - 10) * 3) $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
      %b = $null
    }
    inc %a
  }
  if (%b && %a > 10) {
    /timer 1 $calc((%a - 9) * 3) $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
  }
  else if (%b && %a <= 10) {
    $($+(msg,$chr(32),$left(%b,-1),$chr(32),$2-))
  }
}


using it: /masspm MESSAGE


Link Copied to Clipboard