This plugin allows you to refill your reagent containers automatically.
The following aliases are available:
container-<reagent> <container> - to set default container for a given reagent
for example: container-fire a red silk bag
DON'T use quotes in the container description
the plugin will handle that on its own
reagents-refill - to automatically probe inventory/containers
and purchase/fill them accordingly
reagents-timer <seconds> - to set the wait time between each command
the default is set to 1 second
reagents-demo - to toggle the 'demo' mode where no actual
commands are sent but are shown instead
reagents-shopid - to toggle shop identification and load the
correct reagents set for a given shop
(this feature is still experimental!)
reagents_mm:help - to bring up this help text
reagents_mm:test <lua code> - to tinker with it while it's loaded
Known issues and limitations:
- The plugin works for default (Rune-like) reagents only at the moment, if you
need it to work for other shops (like Sigil) try reagents-shopid to enable
the shop identification feature.
- The plugin handles only one container for a given reagent type, if you happen
to use two containers then you'll need to set an outside alias to define two
sets of containers.
example alias: containerset1
script: Execute("container-air a yellow silk bag")
Execute("container-water a blue silk bag")
... etc.
example alias: containerset2
script: Execute("container-air 2.a yellow silk bag")
Execute("container-water 2.a blue silk bag")
... etc.
Make sure to have 'Script' selected in the 'Send To' box for Execute() to
work properly.
- This plugin attempts to fill a container -completely- there is no way to
define partial limits, it just assumes a given container is dedicated to
holding a specific type of reagent only.
- This plugin is not *squeaky clean* per se, it does not check for encumberance
due to weight or if a shop is closed/out of stock or if you're out of money.
In either cases, you're likely to be spammed by the shopkeeper in bright red.
- If you happen to be using relatively indexed containers like bag, 2.bag etc.
you should ensure there is no other bag present in the room itself or the
plugin will attempt to fill that bag instead. It's a problem with how the
game prioritises item indexing. If you do find a bag/whatever dropped at
a reagent shop, you're well in your right to find out whoever dropped it
and rend them apart limb by limb, slowly.
- If you get an error like this:
attempt to perform arithmetic on field 'maxi' (a nil value)
then it probably means one of the capture triggers failed to record a
container's contents. I'm still tracking down why that happens, however,
reinstalling and reattempting the same action seems to work in most
cases. Increasing the wait time between each command (reagents-timer)
might help as well.
- On that note, if you set the wait period between commands too low it may
not work as expected. A value between 0.5 to 1 seconds is recommended.
Plugin be here: Reagents_MM
Sample Output (with shop identification enabled):
|