HelpServ
Posted by Young~Money
Monday, May 24, 2004
Description: small one

Well here ya go, im going to do more on it, but not now. replace all #CHANNEL


on *:START:{
  hmake hlist
}

on *:JOIN:#CHANNEL:{
  if ($nick != $me) {
    msg $nick Hello, welcome to $chan $+ , please /msg $me <with a description of your problem here> for faster service.
    hadd hlist $nick
  }
}

on *:TEXT:!next:?:{
  if ($nick isop #CHANNEL) {
    if ($hfind(hlist,*,0,w) > 0) {
      set %h.user $hfind(hlist,*,1,w)
      mode #CHANNEL +v %h.user
      if ($hget(hlist,1).data != $null) {
        msg $nick [^B]You have been assigned[^B] %h.user $+ [^B]. The user has specified the following problem:[^B] $hget(hlist,1).data
      }
      else {
        msg $nick [^B]You have been assigned[^B] %h.user $+ [^B]. The user has not specificed a problem.
      }
      msg %h.user Thank you for waiting. Your assigned helper will be $nick
      hdel hlist %h.user
      unset %h.user
    }
  }
}
on *:TEXT:*:?:{
  if ($hfind(hlist,$nick,1)) {
    hadd hlist $nick $1-
  }
}
on *:OP:#CHANNEL:{
  if ($hfind(hlist,$opnick,1)) {
    hdel hlist $opnick
  }
}
on *:PART:#CHANNEL:{
  if ($hfind(hlist,$nick,1)) {
    hdel hlist $nick
  }
}

Subject line
Posted by djmack
Saturday, August 21, 2004 01:38pm PDT
how do i use it?...
do i put it in remote?
Subject line
Posted by djmack
Saturday, August 21, 2004 01:55pm PDT
how do i use it?...
do i put it in remote?
Yes
Posted by nickfoster
Friday, July 22, 2005 12:00pm PDT
You put it in remote.
Look
Posted by [TACO]
Sunday, August 07, 2005 01:59pm PDT
OK guys here's the deal. I'm totally a fucking asshat. I'm sorry for being such a cuntrag. Rustynails, prompt and toad rule me and I lick chicken McTesticles.
Edited
Posted by KilledInAction
Monday, October 08, 2007 07:29pm PDT
Nice snippet btw.  Simple and functional.  I edited one line of your script (I'm sorry!).  The on PART event used a variable that was %h.part to remove the user from the queue.  After reports that this did not work, I told people to switch it to $nick.  Updated the snipped to reflect that.
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world