[help][8.25] how to use firstobj and nextobj in objmanagement menu

User Tag List

Results 1 to 3 of 3
  1. #1
    chlycooper's Avatar Member
    Reputation
    1
    Join Date
    Nov 2012
    Posts
    20
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [help][8.25] how to use firstobj and nextobj in objmanagement

    Code:
            local objectManager = readQword(objectManagerOffset);
    	local nextObject = readQword(objectManager + FirstObject);
    	local objectType = readBytes(nextObject + wowObjectType,1,false);
    	while ((nextObject & 1) == 0) and (nextObject ~= 0) do
    		wowObject = {};
    		wowObject.type = objectType;
    		wowObject.baseAddress = nextObject;
    		wowObject.descriptorBaseAddress = readQword(nextObject + wowObjectDescriptorFields);
    		local guidPart1 = readQword(nextObject + wowObjectGuid);
    		local guidPart2 = readQword(nextObject+8 + wowObjectGuid);
    		wowObject.guidPart1 = guidPart1;
    		wowObject.guidPart2 = guidPart2;
    		readUnitDescriptors(wowObject);
    		nextObject = readQword(nextObject + objectManagerNextObject);
    		objectType = readBytes(nextObject + wowObjectType,1,false);
    i remember is the old way(classic) to handle objmanagement , but is it changed in 8.0?
    i can't get my objmanagement work.
    i get 8.25 32978 objectManagerOffset = 0x28A0FD0, from wowoffsetdumper.
    what's the right firstobj and nextobject ?

    [help][8.25] how to use firstobj and nextobj in objmanagement
  2. #2
    ejt's Avatar Contributor
    Reputation
    209
    Join Date
    Mar 2008
    Posts
    166
    Thanks G/R
    3/111
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #pragma pack(push, 1)
    
    // size = 0x20
    struct TSGrowableArray
    {
    	uint64_t Capacity;
    	uintptr_t Array;
    	uint64_t Allocated;
    	uint64_t unk_18;
    };
    
    struct TSLink
    {
    	uintptr_t Next; // TSLink
    	uintptr_t Previous;
    };
    
    // size = 0x168?
    struct CGObjectManager
    {
    	TSGrowableArray ActiveObjects;	// 0x000
    	TSGrowableArray InvalidObjects;	// 0x020
    	TSLink unk_040[14];				// 0x040
    	TSLink VisibleObjects;			// 0x120
    	TSLink unk_120;					// 0x128
    	ObjectGuid LocalGuid;			// 0x140
    	uint32_t MapId;					// 0x150
    	uint32_t unk_154;				// 0x154
    	uintptr_t unk_158;				// 0x158
    	uintptr_t MovementGlobals;		// 0x160
    };
    
    #pragma pack(pop)
    
    for (auto i = m_memory.Read<uintptr_t>(m_CurObjectMgr->VisibleObjects.Next);
    	i != m_CurObjectMgr->VisibleObjects.Next;
    	i = m_memory.Read<uintptr_t>(i))
    {
    	CGObject obj = m_memory.Read<CGObject>(i - 0x18);
    }
    Probably not the best way to iterate over the list but its what works for now.

  3. #3
    chlycooper's Avatar Member
    Reputation
    1
    Join Date
    Nov 2012
    Posts
    20
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you , that's helpful

Similar Threads

  1. how to use luaL_loadbuffer and lua_pcall
    By sandra11 in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 05-04-2013, 11:16 AM
  2. [ArcEmu] Need help with SVN (how to use it)
    By Corpseshred in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 10-17-2010, 03:51 PM
  3. [ArcEmu] How to use Navicat and HeidiSQL?!
    By deklore in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 09-03-2010, 01:48 PM
  4. [How To] Use Mail and AH on Trial Accounts!
    By Manky in forum World of Warcraft Exploits
    Replies: 41
    Last Post: 11-26-2008, 12:28 PM
  5. [HELP!]Dont Know How To Use C++ Scripts...
    By Lets See2 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-24-2008, 12:55 AM
All times are GMT -5. The time now is 02:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search