mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
i making a request script. It is configured via /request, and i want to be able to reset it by typing /request -r or something of that nature. Can somebody help me? my code is:

Code:
alias request {
if (%request == $null) {
set %request_1 $?="Enter your first request:"
set %request_2 $?="Enter your seccond request:"
set %request_3 $?="Enter your third request:"
}



;Check for Life

if (%life == $null) {
goto getlife
}
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
try this:

Code:
request {
  if ($1 == -r) unset %request_*
  elseif (%request == $null) && (!$1) {
    set %request_1 $?="Enter your first request:"
    set %request_2 $?="Enter your seccond request:"
    set %request_3 $?="Enter your third request:"
  }
}



-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
ya that works. thanks



;Check for Life

if (%life == $null) {
goto getlife
}
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
np


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk

Link Copied to Clipboard