Simple HelpServ
Posted by DjSoulz
Saturday, May 17, 2008
Description: Very compact and useful script.

Create a file named Support.mrc and load it with /load -rs Support.mrc
Demo : #Stormsupport
Script :


########################################
###          HelpServ Script         ###
###            By DjSoulz            ###
########################################
ON *:LOAD:{
  set %sn.chan #Channel
}
ON *:JOIN:%sn.chan:{
  if ($nick isop %sn.chan) {
    /msg %sn.chan Welcome $nick $+ , You're an operator of this channel.
  }
  else {
    inc %sn.tickets
    /writeini -n support.ini %sn.tickets Username $nick
    /writeini -n support.ini %sn.tickets Helper None      
    /msg %sn.chan Hi $nick $+ , You've the ticket No. %sn.tickets
    /query $nick Welcome to %sn.chan $nick $+ , An helper will help you soon. (Ticket No. %sn.tickets $+ )
    /query $nick(%sn.chan,0,o) You have a new request. Ticket No. %sn.tickets $+ . Use /msg $me help %sn.tickets
  }
}
ON *:TEXT:@Help*:%sn.chan:{
  /cs %sn.chan voice $readini(support.ini,%sn.tickets,Username)
  /writeini -n support.ini $2 Helper $nick
  /query $readini(support.ini,%sn.tickets,Username) Your helper is : $nick $+ . Use /query $nick <Your question>
/remini support.ini %sn.tickets
}
tips
Posted by Anthony
Wednesday, December 17, 2008 10:37am PST
You should replace


ON *:LOAD:{
  set %sn.chan #Channel
}


for :


ON *:LOAD:{
  set %sn.chan $$?="For what channel do you want this bot run?"
}


=)
Subject line
Posted by pumakuma
Saturday, February 28, 2009 02:59pm PST
I'm not sure how recent this is, but i'm pretty sure that an on JOIN command won't know if you are isop because the OPing happens after join.. don't take my word for it
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world