View Single Post
07/07/17, 06:20 PM   #1
ivanwfr
Join Date: Apr 2014
Posts: 9
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:
abilityName = GetSlotName ( slotIndex )
abilityIndex = GetSlotBoundId( slotIndex )
...meaning I can identify what's dropped on the Quick Bar by the user for the current preset.

What I could not do:
...that would/should equip some potion or other stuff supported by the Quick Slot Bar.
CallSecureProtected("SelectSlotAbility", abilityIndex, slotIndex)
...as, it looks like this is OK for weapons action bar and armor only.

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
    for bNum = 1, QSB.ButtonCountMax do
        UnequipItem(              slotIndex) --> would unequip BAG_WORN instead of QDB
          EquipItem(BAG_BACKPACK, slotIndex) --> Error: "Item cannot be equipped"
    end
Maybe I'm simply missing some existing means to do the job.

If anyone has some clue about this, I'm ready to give it a try...
  Reply With Quote