I've been trying to desgin a alias to supplement the auto-mapper. It works in a plugin where I have an ENTITY tag which defines several common, non-direction commands I might want the automapper to execute. For instance:
<!DOCTYPE muclient [
<!ENTITY otherTriggers "say|get|put" >
]>
The alias is meant to be used to define a reverse command at the same time as excuting the command. The alias is as follows:
<alias
script="OtherWReverse"
match="^((?:&otherTriggers;).*?)?/(.*)$"
enabled="n"
group="Mapping"
regexp="y"
sequence="998"
>
</alias>
The script is as follows:
sub OtherWReverse(name,output,wildcs)
world.AddToMapper wildcs(1), wildcs(2)
world.send wildcs(1)
end sub
Some examples the alias should match on:
say hello/say bye
/say bye
put 1 blah in blah/get 1 blah from blah
It's the second example (/say bye) I'm having problems with. I get the following error message:
Error number: -2146828275
Event: Execution of line 1 column 1
Description: Type mismatch: 'say'
Line in error:
Called by: Immediate execution
Any help? Thanks!
<!DOCTYPE muclient [
<!ENTITY otherTriggers "say|get|put" >
]>
The alias is meant to be used to define a reverse command at the same time as excuting the command. The alias is as follows:
<alias
script="OtherWReverse"
match="^((?:&otherTriggers;).*?)?/(.*)$"
enabled="n"
group="Mapping"
regexp="y"
sequence="998"
>
</alias>
The script is as follows:
sub OtherWReverse(name,output,wildcs)
world.AddToMapper wildcs(1), wildcs(2)
world.send wildcs(1)
end sub
Some examples the alias should match on:
say hello/say bye
/say bye
put 1 blah in blah/get 1 blah from blah
It's the second example (/say bye) I'm having problems with. I get the following error message:
Error number: -2146828275
Event: Execution of line 1 column 1
Description: Type mismatch: 'say'
Line in error:
Called by: Immediate execution
Any help? Thanks!