I am fairly new to writing AddOns and wanted to start with something that I thought is an easy first task.
The idea is to create an AddOn which automatically restocks style materials once I visit a vendor/ merchant and if I am below a given threshold.
At the moment I am at the point where the addon reacts to the on_open_store event and checks for the stack size of each style material that is used for daily writs.
Until now I was not able to find a function to buy from the merchant.
From searching the web I found the functions
zo_storemanager:buymultiplepurchase() and zo_storemanager:getstoreitems() which seem to be promising but unfortunately I was not able to find any description on the usage of these functions, especially how to the the function which Item tom by (using the ItemLink?).
Is anyone able to help? Any other functions that might do the trick?