[Out of Process] GetNumLootItems() menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Out of Process] GetNumLootItems()

    I reversed GetNumLootItems() today, you can use it to tell how many items are in a dead monster and wether you are finished looting your mob yet.
    Took me quite a while but I finally did it, Im quite happy with myself now
    Unfortunatelly this will only work if you have already interacted with the dead mob, Id appreciate it if someone could tell me how to go about reading loottables from memory.
    Anyways, heres the code:
    Code:
    int GetNumLootInActiveCorpse()
    {
        DWORD loottableguid = wowMemory.ReadUINT32(0x10B9030); //GUID of the currently opened loot table
                                                                //this is 0 until you interact with the mob
        DWORD bytemask = wowMemory.ReadUINT32(0x10B9034); //13F0000Ch or something
        
        int result = 0;
    
        if(loottableguid | bytemask > 0)
        {
            
            int var1 = 2;
            int var2 = 4;
            int pointer = 0x10B8E4C;
            
            do
            {
                int item = wowMemory.ReadUINT32(pointer-0x20);
                if(item > 0)
                    result = var1-1;
                item = wowMemory.ReadUINT32(pointer);
                if(item > 0)
                    result = var1;
                item = wowMemory.ReadUINT32(pointer+0x20);
                if(item > 0)
                    result = var1+1;
                item = wowMemory.ReadUINT32(pointer+0x40);
                if(item > 0)
                    result = var1+2;
                var1+=4;
                pointer +=0x80;
                var2-=1;
            }
            while(var2 != 0);
            
            DWORD unkVar = wowMemory.ReadUINT32(0x10B9028);
            if(unkVar != 0)
                result++;
        }        
        return result;
    }
    I didnt test this too much yet, it appears to be working fine tho.
    If youre interested in the commenting I did while reversing this, feel free to drop me an PM.

    [Out of Process] GetNumLootItems()
  2. #2
    korknob's Avatar Active Member
    Reputation
    29
    Join Date
    May 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you just set auto loot in interface options so that when you call interact/right click on mob it takes everything and you don't have to worry about how many items the mob has.

    But seeing as how you already did the work - congrats. Thanks for sharing your information with the community.
    Then it comes to be that the soothing light at the end of your tunnel
    Was just a freight train coming your way

  3. #3
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by korknob View Post
    Why don't you just set auto loot in interface options so that when you call interact/right click on mob it takes everything and you don't have to worry about how many items the mob has.

    But seeing as how you already did the work - congrats. Thanks for sharing your information with the community.
    I really wanted a way to tell wether looting is finished or not.
    As I said in my first post Id like to be able to tell wether a mob has a loottable but guess this will do for now. You could say walk up to a mob, interact, see if it has a loottable and wait until the corpse is empty. You could also count the amount of items you loot this way (which is nice to have imo).

  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)
    I believe it's uh if ((mob.DynamicFlags & 0x0D) == 0x0D). Not sure, may have changed or I may just be wrong.

  5. #5
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unconfirmed:

    enum eUnitDynamicFlags
    {
    UDF_LOOTABLE=0x1,
    UDF_TRACKED=0x2,
    UDF_TAPPED=0x4,
    UDF_TAPPEDBYME=0x8,
    UDF_SPECIALINFO=0x10,
    UDF_DEAD=0x20,

    };

    Orrrrrr....

    Confirmed:

    0x65A2B0 CGUnit_C::CanLoot

    I'd double check but I'm currently in Heroic Oculus.
    Last edited by Cypher; 11-19-2008 at 11:33 PM.

  6. #6
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    enum eUnitDynamicFlags
    {
    UDF_LOOTABLE=0x1,
    UDF_TRACKED=0x2,
    UDF_TAPPED=0x4,
    UDF_TAPPEDBYME=0x8,
    UDF_SPECIALINFO=0x10,
    UDF_DEAD=0x20,

    };

    Thanks alot, that still seems to be accurate except for UDF_DEAD which does not apply. I havent been able to confirm UDF_SPECIALINFO and UDF_TRACKED but the rest is working great!

    Edit: Did you copy this from WowX? I tried looking through it but I never found said enum :/
    Last edited by hypnodok; 11-20-2008 at 05:54 AM. Reason: quoting cypher makes my text green, noes!

  7. #7
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ty for the Code hypnodok +Rep for you
    Last edited by luciferc; 12-16-2008 at 02:51 PM.

  8. #8
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Necrobump ftw? Ey o_O

  9. #9
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eh i forgot to read the post date its still some good shit yes :O

Similar Threads

  1. [Out of Process] Calling functions in the VTable.
    By cenron in forum WoW Memory Editing
    Replies: 12
    Last Post: 01-31-2009, 08:39 PM
  2. Marshalling data out of process...
    By Sillyboy72 in forum WoW Memory Editing
    Replies: 3
    Last Post: 01-23-2009, 09:06 PM
  3. [C++]CSyringe - Out of Process Mem Manager
    By cenron in forum WoW Memory Editing
    Replies: 1
    Last Post: 01-21-2009, 08:48 PM
  4. [Help] Accessing a function Out of Process
    By cenron in forum WoW Memory Editing
    Replies: 18
    Last Post: 10-14-2008, 05:49 AM
  5. Can you read player names out of process?
    By sweeper18 in forum WoW Memory Editing
    Replies: 10
    Last Post: 07-06-2008, 08:54 PM
All times are GMT -5. The time now is 12:30 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