I am currently using 3.17 and have not tested on any previous versions but it should work fine.
- Code: Select all
<class name="containers" id="430">
<trigger type="Command Input" priority="4310" id="431">
<pattern>^(*) knap$</pattern>
<value>%replace(%1~ knap,knap,knapsack)
</value>
</trigger>
<trigger type="Command Input" priority="4320" id="432">
<pattern>^(*) back$</pattern>
<value>%replace(%1~ back,back,backpack)</value>
</trigger>
</class>
What's it do? Anything you send to the mud that ends in the words back or knap will be auto-completed for you saving those four extra keystrokes.
get barrel back = get barrel backpack
L in knap = L in knapsack
The pattern is anchored so if you don't want a line ending in back or knap to be completed simply end with a punctuation or space and it won't be.
I don't have anything but noob containers to use it with right now but you could easily add to the class to suit your needs.