Change Log:
--------------------
- 4.3.006
I am mildly proud of myself.
Okay, first of all I have retooled Vault as a slash command and DataBroker plugin mod. That's not what I'm proud of because that's easy to do. But it'll likely make the mod easier for people to use. If you find that DataBroker elements are bloat, then just delete the Broker_Vault folder, as I have encapsulated all DataBroker elements there.
What I am proud of is that somehow I've managed to make vault so that even if you right-click to sell things like a fool, it will buy them ALL back. Vault will no longer get confused when you sell a number of items in a very short period. So if you're spamming right-click through your bags at a pace without paying attention, Vault will still do its thing.
The way I did this was hackish. So hackish. Oh gods Blizzard don't fix this. Essentially, there are a number of events which fire when you sell an item. Even GOSSIP_SHOW (no, really). On every one of these events the buyback parse occurs. The reason that Vault was glitchy with fast selling before was because it only had a chance to parse once, and Lua processing is slower than player selling, since it operates in a linear fashion.
However, by utilising the other events, there are now threads which run with those events, so the parse can happen a number of times for each sale. Weirdly, making it loop X amount of times doesn't help (I tried that, it just runs too fast to be relevant and acts the same as one loop), but using multiple registered events related to item selling does.
Why? WHO KNOWS. I do not.
What I do know is that Vault is working better than ever.
In an upcoming release I plan on changing Vault a bit more. I hope to have a list of Vault protected items in the LDB tooltip. The only thing I need really is to find out how to put a scrollbar in a tooltip, because I feel that high level players are probably going to have a lot of items that they want Vault protected. And that list is going to get big enough t...
Description:
--------------------
What is it?
Have you ever accidentally sold something, only to find out too late that you have, and that there's no way to get it back? Have you worried about this and stress out a bit too much whilst selling things, just to be absolutely sure you don't sell your valuables? If this sounds like you, then this mod is for you.
How does it work?
Essentially, you can build a list of items that you want protected by Vault, and then, when you go to a vendor, if you accidentally sell an item, it'll buy it back for you right away, tell you that it did, and play a sound to warn you that you're not paying attention to what you're selling.
Usage:
There are two forms of Vault, a DataBroker version and a slash command version has just the slash command. So if you don't want the DataBroker element then you can just delete the Broker_Vault folder.
To use the DataBroker version, just drag an item to the plugin and click to add or remove, it's that simple. To remove the item from your cursor it's the same as the default UI, just press escape or right-click. When you click on the block with an item on your cursor, it'll check the vault - if the item is in the vault then it'll remove it, and vice versa, if the item is not in the vault it'll add it.
If you wish to check whether the item is in the vault already, just hold shift whilst you click and Vault will let you know. The DataBroker plugin is intended solely to be an icon block so that it doesn't take up much screen real estate but it can still do its thing.
The slash command usage is as follows:
/vault
The is an item link. To get an item link there you must shift-click the item in your bag to put it in your chat bar. This will toggle items into and out of your vault, much like clicking on the DataBroker plugin as described above.
The way to check for the presence of an item is the same - just hold shift when you hit the enter key. The mod checks for shift...
--------------------
- 4.3.006
I am mildly proud of myself.
Okay, first of all I have retooled Vault as a slash command and DataBroker plugin mod. That's not what I'm proud of because that's easy to do. But it'll likely make the mod easier for people to use. If you find that DataBroker elements are bloat, then just delete the Broker_Vault folder, as I have encapsulated all DataBroker elements there.
What I am proud of is that somehow I've managed to make vault so that even if you right-click to sell things like a fool, it will buy them ALL back. Vault will no longer get confused when you sell a number of items in a very short period. So if you're spamming right-click through your bags at a pace without paying attention, Vault will still do its thing.
The way I did this was hackish. So hackish. Oh gods Blizzard don't fix this. Essentially, there are a number of events which fire when you sell an item. Even GOSSIP_SHOW (no, really). On every one of these events the buyback parse occurs. The reason that Vault was glitchy with fast selling before was because it only had a chance to parse once, and Lua processing is slower than player selling, since it operates in a linear fashion.
However, by utilising the other events, there are now threads which run with those events, so the parse can happen a number of times for each sale. Weirdly, making it loop X amount of times doesn't help (I tried that, it just runs too fast to be relevant and acts the same as one loop), but using multiple registered events related to item selling does.
Why? WHO KNOWS. I do not.
What I do know is that Vault is working better than ever.
In an upcoming release I plan on changing Vault a bit more. I hope to have a list of Vault protected items in the LDB tooltip. The only thing I need really is to find out how to put a scrollbar in a tooltip, because I feel that high level players are probably going to have a lot of items that they want Vault protected. And that list is going to get big enough t...
Description:
--------------------
What is it?
Have you ever accidentally sold something, only to find out too late that you have, and that there's no way to get it back? Have you worried about this and stress out a bit too much whilst selling things, just to be absolutely sure you don't sell your valuables? If this sounds like you, then this mod is for you.
How does it work?
Essentially, you can build a list of items that you want protected by Vault, and then, when you go to a vendor, if you accidentally sell an item, it'll buy it back for you right away, tell you that it did, and play a sound to warn you that you're not paying attention to what you're selling.
Usage:
There are two forms of Vault, a DataBroker version and a slash command version has just the slash command. So if you don't want the DataBroker element then you can just delete the Broker_Vault folder.
To use the DataBroker version, just drag an item to the plugin and click to add or remove, it's that simple. To remove the item from your cursor it's the same as the default UI, just press escape or right-click. When you click on the block with an item on your cursor, it'll check the vault - if the item is in the vault then it'll remove it, and vice versa, if the item is not in the vault it'll add it.
If you wish to check whether the item is in the vault already, just hold shift whilst you click and Vault will let you know. The DataBroker plugin is intended solely to be an icon block so that it doesn't take up much screen real estate but it can still do its thing.
The slash command usage is as follows:
/vault
The is an item link. To get an item link there you must shift-click the item in your bag to put it in your chat bar. This will toggle items into and out of your vault, much like clicking on the DataBroker plugin as described above.
The way to check for the presence of an item is the same - just hold shift when you hit the enter key. The mod checks for shift...