Hi foxy,
for your simple purpose you can use my addon
DoItAll as it got a simple bank all, extract all (glyphs), deconstruct all, attach all to mail and automatically send and repeat until nothing left, attach all to player tarde functions for the currently visible/filtered (also repecting filtered by AdvancedfIlters, FCOItemSaver filtered, FCOCraftFilter filtered, blocked, proteted by FCOItemSaver) items.
If you think that's still too much for your purpose and you want to learn spy my code there for the BankAll.
For all of the features it basically reuses a class "Slots" that get's all the slots of the current inventory, and then loops them and skips protected and also delays the deposit or withdraw by a defined (LAM Settings menu) delay so you do not get kicked by the server for message spam.
-> search for zo_callLater for the delay.
Also for some reason my addon don't appear in the Controls menu to set a different keybinding, I think I might have done the xml wrong?
|
<Layer name="Amy's Bank Everything">
That's not working.
afaik you need to use the layer
SI_KEYBINDINGS_CATEGORY_GENERAL
And the binding itsself in the XML needs to strip the SI_BINDING_NAME_ prefix then!
And then use use the string constant there via e.g. SI_BINDING_NAME_* in your lua code.
Create the string for them in your addon like described here
https://wiki.esoui.com/How_to_add_lo...eating_strings
Example lua code (in your callback function for EVENT_ADD_ON_LOADED e.g.):
Lua Code:
ZO_CreateStringId("SI_BINDING_NAME_FCOISFILTER1", "My keybind one")
Example XML code:
Code:
<Bindings>
<Layer name="SI_KEYBINDINGS_CATEGORY_GENERAL">
<Category name="|c00FF00FCO |cFFFF00Item Saver|r">
<Action name="FCOISFILTER1">
<Down>FCOIS.ShowFCOItemSaverSettings()</Down>
</Action>