All pastes #391729 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-12 10:10 UTC
rendered paste body
;########################
;### bot help script  ###
;########################

on *:TEXT:@help:#prestige.gaming: {
  notice $nick Incorrect Syntax, Please type "@help" Followed By Your Problem
  notice $nick Note: Try to include relevant details such as Server IP, FTP Details or Admin Name/Address. A breif description of your problem.
}

on *:TEXT:@help *:#prestige.gaming: {
  if ($readini(requests.ini,request,$nick) == 1) { notice $nick Error you have already asked for help, please be patient and wait for an administrator to PM you. | halt }
  else {
    writeini requests.ini request $nick 1
    mode #prestige.gaming +v $nick
    notice $nick $nick - Your issue has been forwarded to one of our administrators, Please hold.
    msg #pGaming.priv New Request: $nick - Has a query: $2-
    msg #pGaming.priv To respond to $nick type: /respond $nick
  }
}

on *:TEXT:!responding *:?:{
  if ($readini(requests.ini,request,$2) !== 1) {
    msg $nick 0 $2
  }
  elseif ($readini(requests.ini,request,$2) == 1) {
    msg $nick 1 $2
  }
  else msg #pGaming.priv An Error has occurred, Please try again.
}

;######################################
;###   Client Respond alias script. ###
;######################################

alias respond {
  if (!$1) { echo -a Error Please enter a user that you wish to respond too. | halt }
  elseif ($1) {
    msg PrestigeGaming|Serv !responding $$1
  }
}
on *:TEXT:*:?:{
  if ($1 == 1) {
    if ($nick !== PrestigeGaming|Serv) { halt }
    msg $chan Hi $2 $+ , i have been assigned as your helper, please respond to my query message.
    msg $2 Hello $2 $+ , how can i help you today?
    remini requests.ini request $2
    mode #prestige.gaming -v $2
  }
  elseif ($1 == 0) {
    if ($nick !== PrestigeGaming|Serv) { halt }
    echo -a The user $2 has not requested help, you will have to ask them manually if they needed help.
  }
}