!need script

By PwnerJohn on Jul 11, 2009

!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    }
  }
}

Comments

Sign in to comment.
blitzz   -  Jul 13, 2009

oic

 Respond  
CadetAndrew   -  Jul 12, 2009

He did, so he has every right to post it. I made most of it, but he helped me with the 2nd line that was giving me problems.

 Respond  
PwnerJohn   -  Jul 12, 2009

blitzz: I helped CadetAndrew make that script.

 Respond  
WorldDMT   -  Jul 12, 2009

hi
dont forget $strip and $qt

1- if ($strip($1) == !need) take look at /help $strip

2- u can remove "== $true" type only if ($?!="Do you want to assist $1 $+ ?. Someone needs you") {

3- "!need $me $+ " => $qt(!need $me)

 Respond  
blitzz   -  Jul 11, 2009

Same thing with http://www.hawkee.com/snippet/6400/ but with some editing.

 Respond  
CadetAndrew   -  Jul 11, 2009

Not bad John, it looks alot better then mine, but mine is simple, this one is a bit complicated :s

 Respond  
PwnerJohn   -  Jul 11, 2009

If you don't like it, just post saying why.

 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.