Hello, I program in masm (its fun) and I'm trying to make a radar as a little starter project as everyone seems to do (sounds fun and very useful too).
I read around and learned a bit about the workings of WoW and thanks for having all this information available.
I'm having trouble going through all the objects as my loop that Im using to navigate the objects never stops due to the nextObject (+3ch) always being a valid address.
Heres the functions I use
Code:
.data
WoW_clientConn dd 01132F60h
.data?
WoW_ObjManBase dd ?
.code
WoW_ObjMan_Init proc;Initialization for the 'object manager' as they call it.
;Get Object managers base address
invoke ReadDW,WoW_clientConn
add eax,02C24h
invoke ReadDW,eax
mov WoW_ObjManBase,eax
ret
WoW_ObjMan_Init endp
WoW_FirstObj proc;Return the first objects address.
mov eax,WoW_ObjManBase
add eax,0ACh
invoke ReadDW,eax
ret
WoW_FirstObj endp
WoW_NextObj proc addy:DWORD;Returns the address to the next object.
add eax,3Ch
invoke ReadDW,eax
ret
WoW_NextObj endp
and heres the loop
Code:
LOCAL curObj:DWORD
invoke WoW_ObjMan_Init
invoke WoW_FirstObj
mov curObj,eax
.while curObj!=0
;Do my shizzle har
invoke WoW_NextObj,curObj
mov curObj,eax
.endw;<---------------------This shit keeps looping =-\.
I would appreciate a look over and any help you might give me!