You would setup an injection at this location.
You might create a separate listing inside memory.
As a new address comes in, you look for a blank spot in your custom memory to record it.
And at a later time, you may go through that list and do whatever you want.
Clean it up once in awhile, etc.
Or don't keep a separate list and simply immediately update whatever you want updated.
If you want everything done automatically, then you'll also need to find some instruction that's run when items despawn or are otherwise removed. Then, just allocate some memory (2kb is enough for 512 32-bit addresses or 256 64-bit addresses).
In that asm you found, make a code cave that loops through your memory to check to see if that address is already in your list. If it is, then just continue with program execution. If it's not and it reaches a null address (00000000), then add it to the list right there, and call some Lua function that adds it to your table.
When you find some instruction that's run when items are removed, then you can do the same process, except that you are removing and item from that list and calling a Lua function to clean up your table. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum