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