All pastes #1293777 Raw Edit

Support Script (Made by eAgLe)

public text v1 · immutable
#1293777 ·published 2008-12-26 03:16 UTC
rendered paste body
ON *:LOAD:{
  set %support #supportchannel
  set %private #privatechannel
}
ON *:JOIN:%support:{
  if ($nick isop %support) {
    /msg %support Welcome $nick $+ , you're an operator of this channel.
  }
  else {
    inc %sn.tickets
    /writeini -n support.ini %tickets Username $nick
    /writeini -n support.ini %tickets Helper None       
    /msg %support Hi $nick $+ , you've the ticket no. %tickets $+ .
    /query $nick Welcome to %support $nick $+ , an admin will help you soon. (Ticket No. %tickets $+ )
    /query $nick(%support,0,o) You have a new request. Ticket No. %tickets $+ . Use /msg $me help %tickets $+ .
  }
}
ON *:TEXT:@support*:%private:{
  /cs %support voice $readini(support.ini,%tickets,Username)
  /writeini -n support.ini $2 Helper $nick
  /query $readini(support.ini,%tickets,Username) Your helper is : $nick $+ . Use /query $nick <your question>.
  /remini support.ini %tickets
}