This is a script with multiple commands and User levels in there.
Have fun
Report any buggs on the irc: irc.quakenet.org Port: 6667 Channel: #Defero or in the comments
Have fun with it!
on ^1000:TEXT:*:#:{
if ($1 == !addowner) {
if (!$2) {
notice $nick Please choose a nick you want to add as Owner
}
if ($2) {
guser 1000 $2
}
}
if ($1 == !addmaster) {
if (!$2) {
notice $nick Please choose a nick you want to add as Master
}
if ($2) {
guser 100 $2
}
}
if ($1 == !addop) {
if (!$2) {
notice $nick Please choose a nick you want to add as OP
}
if ($2) {
guser 10 $2
}
}
if ($1 == !removeuser) {
if (!$2) {
notice $nick Please choose a nick you want to remove
}
if ($2) {
ruser $2
}
}
if ($1 == !op) {
if (!$2) {
mode $chan +o $nick
}
if ($2) {
mode $chan +o $2
}
}
if ($1 == !deop) {
if (!$2) {
mode $chan -o $nick
}
if ($2) {
mode $chan -o $2
}
}
if ($1 == !voice) {
if (!$2) {
mode $chan +v $nick
}
if ($2) {
mode $chan +v $2
}
}
if ($1 == !devoice) {
if (!$2) {
mode $chan -v $nick
}
if ($2) {
mode $chan -v $2
}
}
if ($1 == !kick) {
if (!$2) {
notice $nick Please enter a nick you want to kick!
}
if ($2) {
if (!$3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: None Specified
if ($3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: $3-
}
}
}
}
if ($1 == !ban) {
if (!$2) {
notice $nick Please enter a nick you want to ban!
}
if ($2) {
mode $chan +b $2
}
}
if ($1 == !permban) {
if (!$2) {
notice $nick The Permban is not undoable! Please be sure! Choose a nick you want to permban
}
if ($2) {
if (!$3) {
set %permban. $+ $chan $addtok(%permban. $+ $chan,$2,32)
mode $chan +b $2
kick $chan $2 You we're Perma banned on $chan by $nick Reason: None Specified
}
if ($3) {
set %permban. $+ $chan $addtok(%permban. $+ $chan,$2,32)
mode $chan +b $2
kick $chan $2 You we're Perma banned on $chan by $nick Reason: $3-
}
}
}
if ($1 == !kb) {
if (!$2) {
notice $nick Please enter a nick you want to Kickban and a reason!
}
if ($2) {
if (!$3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: None specified
}
if ($3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: $3-
}
}
}
if ($1 == !unban) {
if (!$2) {
notice $nick Please enter a nick or a adress you want to unban
}
if ($2) {
mode $chan -b $2-
}
}
if ($1 == !unbanall) {
if (!$2) {
mode $chan -b *!*@*
}
if ($2) {
notice $nick You can't unbanall a nick or adress!
}
}
if ($1 == !help) {
notice $nick Your commands are: !addowner ; !addmaster ; !addop ; !removeuser ; !op ; !deop ; !voice ; !devoice ; !kick ; !ban ; !permban ; !kb ; !unban ; !unbanall ; !topic
}
if ($1 == !topic) {
if (!$2) {
notice $nick !topic commands: !topic add ; !topic set ; !topic del ; !topic show
}
if ($2 == add) {
if (!$3) {
notice $nick Please chose a topic you want to have!
}
if ($3) {
set %topic. $+ $chan $3-
notice $nick Topic added for this channel as $3-
}
}
if ($2 == set) {
Topic $chan %topic. [ $+ [ $chan ] ]
}
}
if ($2 == del) {
if (!$3) {
unset %topic. $+ $chan
notice $nick Topic removed from my database
}
if ($3) {
notice $nick I cant remove the topic from my database with a parameter
}
}
if ($2 == show) {
notice $nick The topic in my database of the channel $chan is: %topic. [ $+ [ $chan ] ]
}
}
on ^100:TEXT:*:#:{
if ($1 == !addop) {
if (!$2) {
notice $nick Please choose a nick you want to add as Op
}
if ($2) {
guser 10 $2
}
}
if ($1 == !removeuser) {
if (!$2) {
notice $nick Please choose a nick you want to remove
}
if ($2) {
ruser $2
}
}
if ($1 == !op) {
if (!$2) {
mode $chan +o $nick
}
if ($2) {
mode $chan +o $2
}
}
if ($1 == !deop) {
if (!$2) {
mode $chan -o $nick
}
if ($2) {
mode $chan -o $2
}
}
if ($1 == !voice) {
if (!$2) {
mode $chan +v $nick
}
if ($2) {
mode $chan -v $nick
}
}
if ($1 == !devoice) {
if (!$2) {
mode $chan -v $nick
}
if ($2) {
mode $chan -v $2
}
}
if ($1 == !kick) {
if (!$2) {
notice $nick Please enter a nick you want to kick!
}
if ($2) {
if (!$3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: None Specified
if ($3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: $3-
}
}
}
}
if ($1 == !ban) {
if (!$2) {
notice $nick Please enter a nick you want to ban!
}
if ($2) {
mode $chan +b $2
}
}
if ($1 == !permban) {
if (!$2) {
notice $nick The Permban is not undoable! Please be sure! Choose a nick you want to permban
}
if ($2) {
if (!$3) {
set %permban. $+ $chan $addtok(%permban. $+ $chan,$2,32)
mode $chan +b $2
kick $chan $2 You we're Perma banned on $chan by $nick Reason: None Specified
}
if ($3) {
set %permban. $+ $chan $addtok(%permban. $+ $chan,$2,32)
mode $chan +b $2
kick $chan $2 You we're Perma banned on $chan by $nick Reason: $3-
}
}
}
if ($1 == !kb) {
if (!$2) {
notice $nick Please enter a nick you want to Kickban and a reason!
}
if ($2) {
if (!$3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: None specified
}
if ($3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: $3-
}
}
}
if ($1 == !unban) {
if (!$2) {
notice $nick Please enter a nick or a adress you want to unban
}
if ($2) {
mode $chan -b $2-
}
}
if ($1 == !unbanall) {
if (!$2) {
mode $chan -b *!*@*
}
if ($2) {
notice $nick You can't unbanall a nick or adress!
}
}
if ($1 == !help) {
notice $nick Your commands are: !addop ; !removeuser ; !op ; !deop ; !voice ; !devoice ; !kick ; !ban ; !permban ; !kb ; !unban ; !unbanall ; !topic
}
if ($1 == !topic) {
if (!$2) {
notice $nick !topic commands: !topic add ; !topic set ; !topic del ; !topic show
}
if ($2 == add) {
if (!$3) {
notice $nick Please chose a topic you want to have!
}
if ($3) {
set %topic. $+ $chan $3-
notice $nick Topic added for this channel as $3-
}
}
if ($2 == set) {
Topic $chan %topic. [ $+ [ $chan ] ]
}
}
if ($2 == del) {
if (!$3) {
unset %topic. $+ $chan
notice $nick Topic removed from my database
}
if ($3) {
notice $nick I cant remove the topic from my database with a parameter
}
}
if ($2 == show) {
notice $nick The topic in my database of the channel $chan is: %topic. [ $+ [ $chan ] ]
}
}
on ^10:TEXT:*:#:{
if ($1 == !op) {
if (!$2) {
mode $chan +o $nick
}
if ($2) {
mode $chan +o $2
}
}
if ($1 == !deop) {
if (!$2) {
mode $chan -o $nick
}
if ($2) {
mode $chan -o $2
}
}
if ($1 == !voice) {
if (!$2) {
mode $chan +v $nick
}
if ($2) {
mode $chan -v $nick
}
}
if ($1 == !devoice) {
if (!$2) {
mode $chan -v $nick
}
if ($2) {
mode $chan -v $2
}
}
if ($1 == !kick) {
if (!$2) {
notice $nick Please enter a nick you want to kick!
}
if ($2) {
if (!$3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: None Specified
if ($3) {
kick $chan $2 You we're kicked on $chan by $nick Reason: $3-
}
}
}
}
if ($1 == !ban) {
if (!$2) {
notice $nick Please enter a nick you want to ban!
}
if ($2) {
mode $chan +b $2
}
}
if ($1 == !kb) {
if (!$2) {
notice $nick Please enter a nick you want to Kickban and a reason!
}
if ($2) {
if (!$3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: None specified
}
if ($3) {
mode $chan +b $2
kick $chan $2 You we're banned on $chan by $nick Reason: $3-
}
}
}
if ($1 == !unban) {
if (!$2) {
notice $nick Please enter a nick or a adress you want to unban
}
if ($2) {
mode $chan -b $2-
}
}
if ($1 == !unbanall) {
if (!$2) {
mode $chan -b *!*@*
}
if ($2) {
notice $nick You can't unbanall a nick or adress!
}
}
if ($1 == !help) {
notice $nick Your commands are: !op ; !deop ; !voice ; !devoice ; !kick ; !ban ; !kb ; !unban ; !unbanall
}
if ($1 == !topic) {
if (!$2) {
notice $nick !topic commands: !topic add ; !topic set ; !topic del ; !topic show
}
if ($2 == add) {
if (!$3) {
notice $nick Please chose a topic you want to have!
}
if ($3) {
set %topic. $+ $chan $3-
notice $nick Topic added for this channel as $3-
}
}
if ($2 == set) {
Topic $chan %topic. [ $+ [ $chan ] ]
}
}
if ($2 == del) {
if (!$3) {
unset %topic. $+ $chan
notice $nick Topic removed from my database
}
if ($3) {
notice $nick I cant remove the topic from my database with a parameter
}
}
if ($2 == show) {
notice $nick The topic in my database of the channel $chan is: %topic. [ $+ [ $chan ] ]
}
}