Quakenet Command script with Dialogs (2)

By Defero on Sep 26, 2013

This is actually the same as the one before just with a different Style and not that many commands.
Report any bugs at the IRC: irc.quakenet.org Port: 6667 Channel: #Defero or in the comments!
Have fun!

alias Commands {
  dialog -m Command Command
}

menu * {
  Commands:/dialog -m Command Command
}

dialog Command {
  title "Quakenet Commands"
  size -1 -1 100 100
  option dbu

  button "Channel", 3, 10 10 80 10
  button "Nick", 2, 10 20 80 10

  list 1, 10 30 80 60, check

  button "Done", 4, 5 88 40 12, ok
  button "Cancel", 5, 55 88 40 12, cancel
}

on *:dialog:Command:init:*:{
  did -a Command 1 Voice
  did -a Command 1 Devoice
  did -a Command 1 Op
  did -a Command 1 Deop
  did -a Command 1 Kick
  did -a Command 1 Ban
  did -a Command 1 Kickban
}

on *:dialog:Command:sclick:3:{
  unset %CChannel
  set %CChannel $?="Enter the channel here (With -#-)"
}

on *:dialog:Command:sclick:2:{
  unset %Nickname
  set %Nickname $?="Enter the nick here"
}

on *:dialog:Command:sclick:4:{
  if ($did(1).seltext == Voice) {
    mode %CChannel +v %Nickname
  }
  if ($did(1).seltext == Devoice) {
    mode %CChannel -v %Nickname
  }
  if ($did(1).seltext == Op) {
    mode %CChannel +o %Nickname
  }
  if ($did(1).seltext == Deop) {
    mode %CChannel -o %Nickname
  }
  if ($did(1).seltext == Kick) {
    kick %CChannel %Nickname
  }
  if ($did(1).seltext == Ban) {
    mode %CChannel +b %Nickname
  }
  if ($did(1).seltext == Kickban) {
    mode %CChannel +b %NickName
    kick %CChannel %Nickname
  }
}

Comments

Sign in to comment.
Sorasyn   -  Sep 27, 2013

If it's seldom different than the last version then why would you even bother resubmitting it as another "snippet?" Why not just update the previous version?

 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.