| Message |
Well I wouldn't do it that way. You can see it is really tedious to see what the end result will be. Try this:
<aliases>
<alias
match="^d(x|e|k|i|r|c|m|u|v|al|aa|ll|l|s|o|d|a|n|g|p)(x|e|k|i|r|c|m|u|v|l|s|o|d|a|n|g|p)$"
enabled="y"
expand_variables="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>
local venoms = {
a = "aconite",
c = "curare",
d = "delphinium",
e = "eurypteria",
g = "gecko",
i = "digitalis",
k = "kalmia",
l = "larkspur",
m = "monkshood",
n = "selarnia",
o = "voyria",
p = "prefarar",
r = "darkshade",
s = "slike",
u = "euphorbia",
v = "vernalius",
x = "xentio",
-- and so on
}
local left = venoms ["%1"]
local right = venoms ["%2"]
if not left then
ColourNote ("white", "red", "Unknown venom code: %1")
return
end -- if
if not right then
ColourNote ("white", "red", "Unknown venom code: %2")
return
end -- if
Send ("envenom @weaponleft with " .. left)
Send ("envenom @weaponright with " .. right)
</send>
</alias>
</aliases>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
You can see this is much shorter, and you can have any combination easily, and add more venoms by simply adding to the table.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|