Lazy Modes

By F*U*R*B*Y* on Apr 14, 2007

this is for them lazy people to do the modes, type /lm when its in your remotes and the dialog will open. Select the nickname and hit the mode you want to do, or select the kick to do it.

Image

Thank you to Sean for the help he contributed

alias lm {
  if ( $dialog(lazy_mode) ) { dialog -v lazy_mode lazy_mode  }
  else { dialog -md lazy_mode lazy_mode }
}

dialog lazy_mode {
  title "Lazy Mode Version 1"
  size -1 -1 132 173
  option dbu
  box "Who?", 2, 9 5 113 94
  list 1, 12 15 103 78, size vsbar
  box "What Mode?", 3, 8 101 117 56
  button "+e", 4, 13 113 13 12
  button "+b", 5, 29 113 13 12
  button "+i", 6, 45 113 13 12
  button "+q", 7, 61 113 13 12
  button "+o", 8, 76 113 13 12
  button "+h", 9, 92 113 13 12
  button "+v", 10, 108 113 13 12, flat
  button "Kick with the following reason", 11, 11 128 112 9
  edit "", 12, 11 141 112 10
  text "Made by:", 13, 36 160 25 8
  link "X-Static Codes", 14, 65 160 46 8
}

on *:dialog:lazy_mode:*:*: {
  if ( $devent == init ) {
    set %lm.chan $active
    var %total = $nick($active,0), %x = 1
    while ( %x <= %total ) {
      did -i lazy_mode 1 %x $nick($active,%x)
      inc %x
    }
  }
  elseif ( $devent == sclick ) {
    if ($did == 4) { .mode %lm.chan +e $did(1).seltext }
    elseif ($did == 5) { .mode %lm.chan +b $did(1).seltext }
    elseif ($did == 6) { .mode %lm.chan +I $did(1).seltext }
    elseif ($did == 7) { .mode %lm.chan +q $did(1).seltext }
    elseif ($did == 8) { .mode %lm.chan +o $did(1).seltext }
    elseif ($did == 9) { .mode %lm.chan +h $did(1).seltext }
    elseif ($did == 10) { .mode %lm.chan +v $did(1).seltext }
    elseif ($did == 11) { .kick %lm.chan $did(1).seltext $did(12) }
    elseif ($did == 14) { .run http://xstatic.webtastix.co.nz/ }
  }
}

Comments

Sign in to comment.
Lindrian   -  May 13, 2007

FURBY:

on me:*:join:#: {
var %x = 1, %y = $nick($chan,0)
while %x <= %y {
if $nick($chan,%y) isop $chan {
did -a DNAME ID $nick($chan,%y).pnick
}
inc %x
}
}

Something within thoose lines.

Also, what about using 1 button, for + and -.
If the guy has voice, the + will be a -, instead of having two buttons. Im sure you can do that :-)

 Respond  
Shadow Clash   -  May 13, 2007

Try putting +a, -a, -q, -o etc etc all the minus o_o

 Respond  
peterpowell   -  Apr 15, 2007

perhaps have tabs on the left/top to choose the channel ;) (if this is possible)

 Respond  
F*U*R*B*Y*   -  Apr 15, 2007

DarthReven, ok, sicne your a better scripter then me, can you show me how i would do that please :)

 Respond  
S*A*U*R*A*B*H   -  Apr 15, 2007

Nice ^^

 Respond  
DarthReven   -  Apr 14, 2007

Might want to associate each nick to a channel and add only the nicks in the channels that you have @ or % in

 Respond  
sean   -  Apr 14, 2007

not bad :)

 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.