[WoW][3.1.3][mac] Determining which items are in your bags menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WoW][3.1.3][mac] Determining which items are in your bags

    I imagine this won't actually vary by platform, but I was wondering how yo u can determine which items in the Object list are currently in your bags vs. in the bank.

    I see there is a ITEM_FIELD_CONTAINED at 0x20 but I'm not sure if this is what I should be looking at (and then even how to determine if that container GUID is actually an equipped bag).

    Thanks!

    [WoW][3.1.3][mac] Determining which items are in your bags
  2. #2
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    iirc,

    You're right ITEM_FIELD_CONTAINED is what it is contained in. It's the player guid if its equiped.

    However your backpack isnt actually a bag. These slots are located in the Player object.

    So to check if its on your person.. check if the guid matches any in your backpack (guids found in the Player storage)

    If not, check if i'ts ITEM_FIELD_CONTAINED is a bag, who's ITEM_FIELD_CONTAINED is your guid... i guess

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately this didn't work :/ Any other ideas?

    Edit: So if you know the Bag's GUID, you can find which items are in it. But I don't know how you determine what bags are actually equipped :/
    Last edited by Tanaris4; 06-06-2009 at 04:40 PM.

  4. #4
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I remember correctly, somewhere in the flags or dynamic flags there was a bit set if the item was a container. Can't remember, though.

  5. #5
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea I can figure out if it's a container, the problem is it will also list the containers which are in the bank. And I only want to access when is currently on the player :/

  6. #6
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do the ones in the bank count as equipped on your person? Like, their ITEM_FIELD_CONTAINED is your GUID also?

    If it were me, I'd attempt to reverse-engineer the functions that access containers by index, like API GetBagName - WoWWiki - Your guide to the World of Warcraft. When you pass it an index of 0, it should figure out the GUID of your backpack somehow, then use that GUID to get the object base address, then call its GetName() member function (at least, that's what I'd guess it does). See if you can figure it out on your own.

  7. #7
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sure when the bags are equiped, their contained_in is the player guid - not the guid of the bag they are in... Is this not the case?

    Also, like I said before. There is no GUID for your backpack.

    PLAYER_FIELD_PACK_SLOT_1=0x158
    // 16 guids of the items in your BACKPACK

    PLAYER_FIELD_BANK_SLOT_1=0x178
    // x GUIDS of the items in your BANK

    PLAYER_FIELD_BANKBAG_SLOT_1=0x1B0
    // 7? GUIDS of the BAGS in your bank


    So you can check them easy.

    Next, whart i suggest you do next.. is move a bag between your backpack, another bag, and equipped. compare the feilds for these 3 different locations and you should be able to work it out.
    Last edited by testout; 06-08-2009 at 05:00 AM.

  8. #8
    Bobbysing's Avatar Member
    Reputation
    192
    Join Date
    Jan 2009
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Inventory access - Game Deception - Forums
    Go there, have fun - all the work is already done for you.

Similar Threads

  1. Replies: 7
    Last Post: 09-02-2012, 02:41 AM
  2. Replies: 9
    Last Post: 08-08-2012, 01:27 PM
  3. [Profession] Which Profession are Worth Your WoW Gold at Cataclysm?
    By AveMaria in forum World of Warcraft Guides
    Replies: 5
    Last Post: 12-23-2010, 06:53 AM
  4. Replies: 2
    Last Post: 09-10-2009, 10:59 PM
  5. [wow][3.1.3][mac] Detecting BoP items in loot window
    By Tanaris4 in forum WoW Memory Editing
    Replies: 10
    Last Post: 06-09-2009, 03:35 AM
All times are GMT -5. The time now is 05:45 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search