-
Member
Object buff (memory modell) [4.3.4]
Hey guys!
Im writing a bot for a 4.3.4 (15595) private server, i created a working objectmanager, and from what i understand an object looks sth like this:
[ObjectAddr+0x30] = GUID (64bit)
[ObjectAddr+0xC]+0x10 = Storage Address (this is the address from where the hp,mana,level,etc can be found through descriptors offsets)
so far so good, but I also need the buffs on the target,
i know that they are stored somewhere else and i found a pointer that sometimes points to that buff array at
[ObjectAddr+0xe9c] but it only works occasionally, so i guess it just a lucky coincidence.
What am I missing? How can i find the "buff array" consistently? :confused:
+Also how can i determine if the player is moving, and maybe the cooldowns on some spells?
-
Most information on a unit is stored in its descriptor array. If you search this forum you will find lots of information about how to read the descriptors.
-
Member
I can find the buff array with cheat engine but that is not just a static offset from the description array start, nor a static offset from objectaddr.
-
Right. Reading the descriptors for an object will depend on you having found the object itself within memory already. How to do that is also well documented here on the forum.
-
Member
I can find the objects, as i said i have a working objectmanager i can iterate throught it compare the GUID etc..., i just cant find the buffs in the descriptor array (i can find other thing hp, level etc)
-
Oh, okay. Sorry, I misunderstood your question. And actually, I checked the descriptor list for cata and it seems that auras are no longer listed there! I was going to point you to this:https://github.com/cmangos/mangos-ca...teFields.h#L35
To find where they are, I would suggest that you lookup the handler for the SMSG_AURA_UPDATE opcode within the client. Here is the format for it: https://github.com/cmangos/mangos-ca...uras.cpp#L9670
-
Post Thanks / Like - 1 Thanks
Zinko_ (1 members gave Thanks to namreeb for this useful post)