Mass Action

By vSkyzv on Feb 28, 2009

This is a simple script which can perform an action to every user on a given channel.

Basically, it's an advanced mass slap script.

Use the script by typing: /massaction.

alias massaction { dialog -m massaction massaction }
dialog massaction {
  title "Mass Action Script"
  size -1 -1 170 110
  text "Channel:", 1, 10 10 50 12
  edit "", 2, 60 7 100 20
  text "Action:", 3, 10 37 50 12
  edit "", 4, 60 34 100 20
  text "", 5, 10 59 180 12
  button "Do it!", 6, 10 81 65 22
}
on *:DIALOG:massaction:*:*:{
  if ($devent == init) { did -a $dname 5 * $me $iif($did($dname,4,1).text,$did($dname,4,1).text $+ s,<action>) <nick> }
  if ($devent == edit) { did -a $dname 5 * $me $iif($did($dname,4,1).text,$did($dname,4,1).text $+ s,<action>) <nick> }
  if ($devent == sclick && $did == 6) {
    var %loop = $nick($did($dname,2,1).text,0)
    while %loop { describe $did($dname,2,1).text $did($dname,4,1).text $+ s $nick($did($dname,2,1).text,%loop) | dec %loop }
  }
}

Comments

Sign in to comment.
Blitzjager   -  Mar 01, 2009

it's the first line of $did4

 Respond  
Kirby   -  Mar 01, 2009
$did($dname,4,1).text

Wow, I didn't know you could supply two id-number parameters in a $did.

You know, you could just do /ame instead of the loop, and if mode +T isn't set in your channels.

 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.