Hey guys im trying to make a bot that will detect those monsters that u cant attack. To do this I want my program to read the HP value of the monsters but I am having trouble finding the address. Could someone help me out with this.
What I did was, killed the mob, figured out a rough estimate of how much hp it had, and did a value between, then hit it, did decrease value, and kept doing that untill I got the address. And you could easily know if it's been hit or not, lets say if the mobs hp when full is 500, add like, if value is < 500, then don't attack, :PQuote:
For more advanced HP functions, subject 24's method would be useful, but I am assuming that you just don't want to KS, so you are looking for whether the mob has been hit or not?
There should be lots of values that will tell you this. You only need to pick one, but be aware that there will be lots of them, so don't think your search isn't going anywhere just because you have tons of addresses still on the list. You need to actually LOOK at the ones on the list to see if you've found something useful, lol.
You should try searching again for unknown value when mob is at full HP, and then hit it, and search for changed value.
Switch mobs, and preferably mob type, or maybe even go to a different map; and repeat.
If you do this until you aren't getting any less results several times in a row, start looking at what you've got, and you should see some values on the list that continuously correspond with the mob's HP bar.
There will be tons of addresses most likely when you are trying to find GUI stuff. You only need one of the many to accurately read a situation from memory. It usually makes very little difference which one you choose; just make sure it always corresponds to what you are trying to do.Quote:
Sorry I was gone for like 5 days but i really appreciate your suggestions.
But shouldn't there be an address for the mob health bar that appears on my screen when I select a monster. I'm thinking that there is only one address. But I'm not sure how to search for it...
...I can also make this bot not ks cause that happens alot when I leave the bot running and i get reported. So if the health bar is below 100% do not start attacking that mob.
Not all pointers are green.Quote:
Ok I'll see what i can find, but do you think it will be a value ranging from 0 to 100 or 1000.
And should I just stick to 4 byte or should I use float or double.
__________________________________________________ __________________________
Ok so I found 3 addresses that showed me the same value when a mob was selected and '0' when a mob was selected but had no health (bot detector or a mob far away). This will work for what i need, but i was having trouble finding the pointer. I did the usual see what writes to address (I tried what accesses address.. same result)
d9 9e 88 00 00 00 - fst dword ptr [esi+00000088]
d9 9e 88 00 00 00 - fstp dword ptr [esi+00000088]
esi = 099C76C8
and found the value of the pointer, but I got no green addresses. So I'm really lost right now how do i find the pointer?
Thx