A script i wrote for a friend.
You have to change some things or it wont work.
Change:
Your Nick in to your nick or any moderator.
It works easy. A user types !support. And the channel gets a message that someone needs help.
You can accept it by typing !accept $chan (ops en on #staffchannel only)
Post any help bellow ;)
#support on
on $*:text:/^[!.@]support/Si:#:{
if ($(,$+(%,flood,$chan))) { msg # This channel can request support again in: $duration($var(%,flood,$chan),1).secs) | return }
set -u180 $+(%,flood,$chan)
}
if ($chan == %help) {
notice $nick This channel already asked for help. Please wait.....
halt
}
elseif (*Your Nick* ison $chan){
notice *Your Nick* $nick needs support in # $+ .
notice $nick There already is a moderator on your requested channel( $+ # $+ ) $+ . He will get to you as soon as possible.
halt
}
elseif ($chan == #staffchan) {
notice $nick If you need help in $chan just ask for it in the channel you triggered this command on.
halt
}
else {
msg # A moderator has been noticed and will come to help you as soon as possible.
msg #staffchan $nick is requesting help on $chan $+ .
set %help [ $+ [ $chan ] ] $true
halt
}
}
on $*:text:/^[!.@]accept/Si:#:{
if {$nick !isop #staffchannel) {
return
}
elseif ($2- != %help) {
notice $nick $chan is not requesting any help.
halt
}
elseif ($2- == $null) {
notice $nick Please provide a channel to accept. Syntax: !accept #channel
}
else {
Notice $nick You are now helping $2- $+ .
unset %help [ $+ [ $2- ] ]
msg #staffchannel $nick is now helping channel: $2- $+ .
notice $2- $nick Has seen your support request! He will come to help you soon!
notice $nick Join $2- to help them!
halt
}
}
#support end