X/Chanserv Commands.

By CharltonJ on Jan 01, 2008

this is a simple, chanserv and x commands! if you find any bug, comment plz. thanks :P

on *:Input:#:{
  if (%ChanCom == on) {
    if ($1 == Chanserv) && ($2 == op) {  /msg chanserv op # $3- | halt }
    if ($1 == Chanserv) && ($2 == voice) { /msg Chanserv voice # $3- | halt }
    if ($1 == chanserv) && ($2 == akick) { /msg Chanserv akick # add $3- | Halt }
    if ($1 == Chanserv) && ($2 == deop) {  /msg Chanserv deop # $3 | halt }
    if ($1 == Chanserv) && ($2 == devoice) { /msg Chanserv devoice # $3 }
    if ($1 == Chanserv) && ($2 == aop) { /msg Chanserv aop # add $3 }
    if ($1 == Chanserv) && ($2 == sop) { /msg chanserv sop # add $3 }
    if ($1 == Chanserv) && ($2 == register) { /msg chanserv register # $3- }
    if ($1 == Chanserv) && ($2 == drop) { /msg chanserv drop # $3 | halt }
    if ($1 == Chanserv) && ($2 == info) { /msg Chanserv info # | halt }
    if ($1 == Chanserv) && ($2 == delaop) { /msg Chanserv aop # del $3 | halt }
    if ($1 == Chanserv) && ($2 == delakick) { /msg Chanserv akick # del $3 | halt }
    if ($1 == Chanserv) && ($2 == delsop) { /msg Chanserv sop # del $3- | halt }
  }
}
dialog Xco {
  title "X Commands"
  size -1 -1 79 51
  option dbu
  radio "On", 1, 8 18 27 10
  radio "Off", 2, 45 18 30 10
  text "Simple X Commands made it by charltonj..", 3, 7 1 64 16
  button "Okey", 4, 14 29 50 9, ok
  button "Chanserv Commands..", 5, 14 39 50 10
}
dialog Chanco {
  title "Chanserv Commands"
  size -1 -1 79 51
  option dbu
  radio "On", 1, 8 18 27 10
  radio "Off", 2, 45 18 30 10
  text "Simple Chanserv Commands made it by charltonj..", 3, 7 1 69 16
  button "Okey", 4, 14 29 50 9, ok
  button "X Commands..", 5, 14 39 50 10
}
on *:dialog:chanco:sclick:*: {
  if ($did == 5) {  /dialog -m xco xco | /dialog -c chanco chanco }
  if ($did == 1) { /set %Chancom on | /echo -a  Chanserv commands are now ON! }
  if ($did == 2) { /set %Chancom off | /echo -a Chanserv commands are now OFF! }
}
on *:dialog:xco:sclick:*: {
  if ($did == 5) { /dialog -m chanco chanco | /dialog -c xco xco }
  if ($did == 1) { /set %XCom on | /echo -a X Commands are now ON! }
  if ($did == 2) { /set %xcom off | /echo -a X Commands are now OFF! }
}
menu * {
  X Commands:/dialog -m xco xco 
}
on *:Input:#:{
  if (%XCom == on) {
    if ($1 == X) && ($2 == op) {  /msg x op # $3- | halt }
    if ($1 == X) && ($2 == voice) { /msg x voice # $3- }
    if ($1 == X) && ($2 == ban) { /msg x ban # $3- | Halt }
    if ($1 == X) && ($2 == deop) { /msg x deop # $3 | halt }
    if ($1 == X) && ($2 == devoice) { /msg x devoice # $3 }
    if ($1 == X) && ($2 == adduser) { /msg x adduser # $3 $4 }
    if ($1 == X) && ($2 == remuser) { /msg x remuser # $3 }
    if ($1 == X) && ($2 == join) { /msg x join # }
    if ($1 == X) && ($2 == part) { /msg x part # }
    if ($1 == X) && ($2 == Chaninfo) { /msg x Chaninfo # }
    if ($1 == X) && ($2 == invite) { /msg x invite $3 }
    if ($1 == X) && ($2 == unban) { /msg x unban # $3 }
    if ($1 == X) && ($2 == topic) { /msg x topic # $3- }
    if ($1 == X) && ($2 == desc) { /msg x set # desc $3- }
    if ($1 == X) && ($2 == status) { /msg x status # | halt }
  }
}

Comments

Sign in to comment.
Cheiron   -  Jan 01, 2008

just the one initial one staring me in the face.
//msg # x op
you got double forward slash there where all others are single. otherwise \"Looks\" clean enough. not tested it yet though

 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.