GarethFromWales / NerfedButtons4Wow

NerfedButtons for Vanilla WoW
MIT License
4 stars 0 forks source link

Missing action: equip #16

Open GarethFromWales opened 9 months ago

GarethFromWales commented 9 months ago

Whilst using a piece of armour or weapon will in fact equip it, there is no control over which slot a weapon will go into. This issue is to improve upon the item use by allowing an optional equipment slot to be passed.

AmmoSlot | 0 HeadSlot | 1 NeckSlot | 2 ShoulderSlot | 3 ShirtSlot | 4 ChestSlot | 5 WaistSlot | 6 LegsSlot | 7 FeetSlot | 8 WristSlot | 9 HandsSlot | 10 Finger0Slot | 11 Finger1Slot | 12 Trinket0Slot | 13 Trinket1Slot | 14 BackSlot | 15 MainHandSlot | 16 SecondaryHandSlot | 17 RangedSlot | 18 TabardSlot | 19 Bag0Slot | 20 Bag1Slot | 21 Bag2Slot | 22 Bag3Slot | 23

/nb equip@Big Bronze Axe:16

and a new condition: equipped: /nb equip@Big Bronze Axe=16 [equipped@player!Big Bronze Axe] /nb eq@bba=16 [eq@p!bba]