Puzzled with finding the freespace in containers menu

User Tag List

Results 1 to 7 of 7
  1. #1
    wanzxc's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Puzzled with finding the freespace in containers

    Hello all.
    I am a new here.Learning to do some little bot things by reading and writting memory.After reading the posts here now I can use the objectmanager to get some info like the npc and player things.Thank you for applying this great forum.I get the object by type==2 and catch the containers.But
    1.when using the CONTAINER_FIELD_NUM_SLOTS = 0x6, I just get the player guid because ITEM_FIELD_OWNER = 0x6,having the same offset.Both in wow 3.3.5 and I am using [this+0x8]+4*0x6 to get the info.
    2.Also tryed with PLAYER_FIELD_PACK_SLOT_1 = 0x172,from playerbase,but can just get the items' info which are in the first bag.
    I am doing this on a wow 3.3.5.12340,and the offsets seems no problem.
    Wondering if there is a way to access CONTAINER_FIELD_NUM_SLOTS not using [this+0x8]+4* or if there is some offset like PLAYER_FIELD_PACK_SLOT_2 etc.
    Searched around a few days but still can't solve it.

    p.s Just trying memory reading.The Injection or Call method is a little hard to me now.

    Sorry for my poor English.Thanks for any help.

    Puzzled with finding the freespace in containers
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hint!!!
    Code:
    OBJECT_END                                = 0x0006,
    ITEM_END                                  = OBJECT_END + 0x003A,
    CONTAINER_FIELD_NUM_SLOTS                 = ITEM_END + 0x0000,
    so it gives (3.3.5 client)
    Code:
    CONTAINER_FIELD_NUM_SLOTS = 6 + 0x3A + 0 = 0x40
    Last edited by TOM_RUS; 05-19-2011 at 02:02 PM.

  3. #3
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because I in a really good mood today... Here is some code for you:

    Code:
            public int Slots
            {
                get { return GetStorageField<int>((uint)Descriptors.eContainerFields.CONTAINER_FIELD_NUM_SLOTS); }
            }
    
            public int InSlot
            {
                get { return GetStorageField<int>((uint)Descriptors.eContainerFields.CONTAINER_FIELD_SLOT_1); }
            }
    
            protected T GetStorageField<T>(uint field) where T : struct
            {
                var m_pStorage = Memory.Read<uint>(ObjectPointer + Descriptors.startDescriptors);
    
                return Memory.Read<T>(m_pStorage + (field * Descriptors.multiplicator));//field);
            }
    
            public static readonly uint multiplicator = 4; 
            public static readonly uint startDescriptors = 0x8;
    
            public enum eContainerFields
            {
                CONTAINER_FIELD_NUM_SLOTS = 0x48,
                CONTAINER_ALIGN_PAD = 0x49,
                CONTAINER_FIELD_SLOT_1 = 0x4A,
            };
    Enjoy

    Note: This wont/might not just work. This is my current code for 4.1.0a, so ill leave a little work for you
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  4. #4
    wanzxc's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for looking my problem and giving advise.

    Ryuk sir I am using nearly same way as your code to get the slots.Like this
    Code:
    [ObjectPointer+0x8]+4*CONTAINER_FIELD_NUM_SLOTS
    But I found the CONTAINER_FIELD_NUM_SLOTS has the same value as the ITEM_FIELD_OWNER.So I will get the owner's guid in this way.Not the slots...

    TOM_RUS sir I will try to get it.

    Thanks again for answering noob as me.

  5. #5
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reread TOM_RUS' post and Ryuk's code, especially his value for CONTAINER_FIELD_NUM_SLOTS.
    Comment, based on those two posts, on what you did wrong.

  6. #6
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by wanzxc View Post
    Thank you for looking my problem and giving advise.

    Ryuk sir I am using nearly same way as your code to get the slots.Like this
    Code:
    [ObjectPointer+0x8]+4*CONTAINER_FIELD_NUM_SLOTS
    But I found the CONTAINER_FIELD_NUM_SLOTS has the same value as the ITEM_FIELD_OWNER.So I will get the owner's guid in this way.Not the slots...

    TOM_RUS sir I will try to get it.

    Thanks again for answering noob as me.
    I did say that this is for patch 4.1.0a
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  7. #7
    wanzxc's Avatar Private
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bananenbrot sir thank you the advise.
    Ryuk sir I see in the 4.1.0a Info Dump Thread the CONTAINER_FIELD_NUM_SLOTS can be used directly.But in 3.3.5 12340 Thread the offset should be changed a little before using.
    I found around the way to change it.Again thank you for giving advise to me.And thanks to everyone for making the Info Dump Thread so I can easily use the offsets though I am only a noob.
    Thank you TOM_RUS sir.That way success.Don't know how to tell my thanks.It took me nearly half a week finding it.Now it sloves.
    Will +rep when I can.

Similar Threads

  1. Replies: 9
    Last Post: 07-05-2012, 05:12 PM
  2. Finding the animset SNO with Cheat Engine (found appearancce already)
    By Jackalhead in forum Diablo 3 Memory Editing
    Replies: 0
    Last Post: 04-23-2012, 04:15 PM
  3. Whats with all the bitches
    By barnyonfire1 in forum Community Chat
    Replies: 5
    Last Post: 11-24-2006, 08:24 AM
  4. Finding the .blp-files to Striker's Set
    By Violence in forum World of Warcraft General
    Replies: 0
    Last Post: 10-04-2006, 06:02 PM
  5. Find The Flag Carrier In WSG
    By impulse102 in forum World of Warcraft Exploits
    Replies: 20
    Last Post: 07-29-2006, 12:48 PM
All times are GMT -5. The time now is 06:02 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