Jump to content

Bot dont see unequipped bags


Recommended Posts

As title say bot just dont see unequipped bag in inventory. Checked with various bags, wotlk version

111.png

Also want to add that ObjectManager.Me.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.CONTAINER_BAG_OFFSET_1); is not working too(for all bag offsets) and always 0 even with equipped bag. Other inventory slots works.

 

@Droidz please take a look.

Link to comment
Share on other sites

Hi,

1.Lua.LuaDoString<int>("itemId = GetInventoryItemID('player', 23); return itemId"); correctly returns  bag ID for equipped bag

2. For check if bag in inventory(hope the code is correct)

local itemID = 4496

for i = 0, NUM_BAG_SLOTS do
 for z = 1, GetContainerNumSlots(i) do
  if GetContainerItemID(i, z) == itemID then print("Have Item")
    else print("not have item")
  break
  end
 end
end

returns that no item with this id in inventory (tested with various bags)

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...