!need yournickhere will send a popup saying that someone needs you. You can accept the request by clicking on yes, or deny by clicking on no. It's a simple script I came up with. I suppose I helped inspired CadetAndrew's snippet.(same IRC server)
For some reason, when you click yes, it will say else unknown command. If anyone can help me fix this, It'll be greatly appreciated.
;##################################
;!need script created by PwnerJohn#
;##################################
alias input_answer {
if ($?!="Do you want to assist $1 $+ ?. Someone needs you" == $true) {
.notice $2 Hold on; I am contacting you...
query $1 You have asked for me through the "!need $me $+ " command. I have accepted your request. How can I assist you, $1 $+ ?
} else {
.notice $2 Sorry; your request has been denied.
}
}
on *:text:*:#: {
if ($1 == !need) && ($2 == $me) {
if (!%flood.prot) { .notice $nick Please wait... I have been idle for $duration($idle).
set -u5 %flood.prot 1
.timer 1 0 input_answer $nick }
}
}