For this task, you only need to know the < on text > event, the commands < /load , /unload , /notice > and you're done. Using the help file on these will definitely help you write the code yourself. smile

Here's a piece of code that should do it though.
Code:
; with floodcheck
On $100:Text:/^!((?:un)?load\s[^\s]+\.mrc)$/Si:#channelnamehere:{ 
  If !%busyload {
    NoOp $regml(1)
    Notice $nick - $regml(1) - Ok!
    Set -z5 %busyload processing...
  }
  Else { .Timer 1 1 notice $nick please wait... }
}

; without floodcheck
On $100:Text:/^!((?:un)?load\s[^\s]+\.mrc)$/Si:#channelnamehere:{ 
  NoOp $regml(1)
  Notice $nick - $regml(1) - Ok!
}


Cordialement smile

Ps: untested code
Ps: rather than using the above code, I really ask you to to code it with the help of what I've told you to look for smile. Use < if, elseif, else > to make conditions on whether < !load > or < !unload > was sent to the server. Upto here, you are at 75% to finish the script.

Edit1: I couldn't help myself from not adding a floodcheck :s. Sorry if that is not what you wanted. For that reason, I've also included the version without the floodcheck.
Edit2: replaces < [^\.]+ > by < [^\s]+ > in the regular expression.

Last edited by TropNul; 12/12/07 06:09 PM.

tropnul