Enemey List

05/29/2012 11:24 RunzelEier#1
Hi,

I want to understand the Enemy List of a Game, so that i can use it for my Bot.

I already have the pointer to this list, and the offset to the Object, but i just cant find a logical way to step through the list.

Here is the "Find next Mob" Funktion, which steps through the monsters and searchs for the nearest mob in my sight.


I want to know how Local 3 gets its value.
The first mob is no problem, but how does Local 3 gets changed during the loop?
It looks to me that it doesnt get changed, but if i set a breakpoint to check local 3 it changes its value during the loop.
05/31/2012 23:00 RunzelEier#2
noone?
06/01/2012 00:07 nkkk#3
why not use a debugger+memory view to find out ?

lea shouldn't change the right side value, maybe the function that is called after the lea instruction changes the value of Local.3.
06/01/2012 09:50 RunzelEier#4
how could i be so blind...