Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
153 stars 7 forks source link

CONTAINER_BAG_OFFSET is wrong in 1.14.4 #467

Open Meorawr opened 10 months ago

Meorawr commented 10 months ago

The CONTAINER_BAG_OFFSET constant is assigned the value of 19 in Classic Era, however as of patch 1.14.4 it appears that the Classic Era client has internally aligned somewhat with Wrath Classic and now expects the offset to be 30.

An example of what this impacts if the PutItemInBag API; the following should place your main hand weapon in the players' first non-backpack bag slot, however this doesn't work unless CONTAINER_BAG_OFFSET is set to 30.

/run PickupInventoryItem(16) PutItemInBag(CONTAINER_BAG_OFFSET + 1)