more alias help

syrik
Posts: 90
Joined: Sat Jun 26, 2010 9:57 pm

Re: more alias help

Post by syrik »

This was for the same character actually. I just barely had the practices to pull off bash and stab.

Casimar
Posts: 22
Joined: Sun Nov 07, 2010 3:47 pm

Re: more alias help

Post by Casimar »

have you consider putting these as keys? If they're your hunting aliases putting them as a key would half the number of keys you have (I put mine to Keypad 5 and have the movement keys around it)

Yetzederixx
Posts: 186
Joined: Sun Nov 14, 2010 5:57 am

Re: more alias help

Post by Yetzederixx »

Alright then, instead of having an alias to change commands and one to issue those commands here's what I'd do.

Alias pattern] ^b (.*)$
Code: [show] | [select all] lua
if (matches[2] == 0) then 
   bAliasSkill = "bash"
   echo("B COMMAND IS BASH")
elseif (matches[2] == 1) then 
   bAliasSkill = "backstab"
   echo("B COMMAND IS BACKSTAB")
else 
   if (not bAliasSkill) then bAliasSkill = "bash" end
   send(bAliasSkill .. " " .. matches[2])
end
Now you can send "b 0" to change change to bash, bash is also the default, "b 1" changes it to backstab, and "b whatever" or "b " (space required) will send whatever bAliasSkill is alone to the MUD.

syrik
Posts: 90
Joined: Sat Jun 26, 2010 9:57 pm

Re: more alias help

Post by syrik »

Ok, I will play around with both of these and see which works best for me. Once again, thanks for the quick responses

Post Reply