mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 271
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
Hey, I'm Just Wondering If It Would e Possible To Create An Alias For Timer, that would match any calls to /timer... EG:

/timer 1 0 whatever
/timerhello 1 0 hello
/timer* off

an alias that would match any of those? Am Thinking Not Possible Really, but Perhaps?

Joined: Dec 2002
Posts: 68
P
Babel fish
Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
I used the command /ti. You will get an error for invalid command and I don't think that can be stopped. But here it is:

Code:
on 1:input:*:{ if ($left($1,3) == /ti) {
    timer [ $+ [ $right($1,$calc($len($1)-3)) ] ] $2-
  }
}


To change the command change the 3 in:
on 1:input:*:{ if ($left($1,3) == /ti) {
AND
timer [ $+ [ $right($1,$calc($len($1)-3)) ] ] $2-
to how many characters the command is (including the slash).

Also change the /ti in:
on 1:input:*:{ if ($left($1,3) == /ti) {
to the command.


Link Copied to Clipboard