Quick Slot Bar Item Preset
Hi, I am looking for a way to get indexes from the current back pack content in order to preload different sets of potions (PvP or PvE or whatever...) into the Quick Slot Bar.
This would be a new feature suggested by Granpafishy and Marazota on GreyMind Quick Slotbar Comments. As a matter of fact, each of the 8 GQSB Layout and Options Presets could also bring their specific (2..8) Items Preset. What I can do quite well: Quote:
What I could not do: ...that would/should equip some potion or other stuff supported by the Quick Slot Bar. Quote:
What I would like to do: ...and that's the missing part to restore what's has been saved as an alternate preset. Code:
-- REPLACE CURRENT (2..8) QUICK BAR SLOTS WITH A NEW SET If anyone has some clue about this, I'm ready to give it a try... |
I am moving this to a different forum since what you ask for is already possible.
In order to assign an item to a quickslot, you can't use Code:
SelectSlotAbility *protected* (*luaindex* _abilityIndex_, *luaindex* _slotIndex_) Code:
SelectSlotItem *protected* (*integer* _bagId_, *integer* _bagSlotId_, *luaindex* _slotIndex_) So what you want to do is the following: Lua Code:
|
Quote:
Quote:
The only remaining issue is about this call with the slotId of an Item not currently available from the BAG_BACKPACK. Code:
CallSecureProtected("SelectSlotItem", BAG_BACKPACK, slotId, slotIndex) Instead, this call ends up with a warning message about how I can't slot an Item I don't currently have in my bag. (as if I were drag-and-dropping an Item coming from nowhere) - Currently, the addon UI displays the texture saved the last time this Item was slotted. - But the Quick Slot Bar ring entries remain empty. - As soon as a missing Item appears to be available again to the ACTION_SLOT_UPDATED handler, the equip call can fill the hole. Here is my pre-release Change log with a working solution thanks to your qualified advice: Greymind Quick Slot Bar comments |
Wouldn't you just clear the slot, add an additional check that the items you're trying to slot is in the inventory and if not, leave the slot blank?
|
Quote:
Getting enough of each items would be a matter of purchase or farming. You can also get some from your Banker Assistant if you stored some there. This has to do with PvP vs. PvE potions or some other kind of quest related template. But, as you suggest, leaving what's in there or clearing missing items slots means there may be more than a one way to deal with the situation. For the current version, I'm relying on the user to know what he is doing... We'll see if someone has some sensible alternate logic to play with. |
All times are GMT -6. The time now is 09:16 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI