Originally Posted by
Zeroi9
Hello guys. If anyone knows how to code in AutoIt to make the application to ALWAYS see if the health becomes lower than like 30% and the mana like 30% and if you are in combat or not.
Hope you can answer this, I'm really interested in this kinda stuff!
:thefunney:
here's an example on how you can get player health if u know the static playerbase
[code]
Code:
Process.EnterDebugMode();
IntPtr hProcess = Memory.OpenProcess(Memory.GetProcessIdByProcessName("wow.exe"));
//static playerbase = [[[0127BFFC]+0x30]+0x28]
level 3 pointer
u need to read 3 times to get to the correct value ie.
READ[ READ[ READ[0127BFFC]+0x30]+0x28]
//0x08 = pointer to eUnitField cus the static base is obj type 3?
//0x07 * 4 = offset for unit_field_health
int hp = Memory.ReadInt (hProcess, (Memory.ReadUInt(hProcess, (Memory.ReadUInt(hProcess, (Memory.ReadUInt(hProcess,
(Memory.ReadUInt(hProcess, 0x0127BFFC)) + 0x30)) + 0x28)) + 0x08) + 0x17 * 4));
MessageBox.Show(string.Format("Current Health:{0}", hp));
i have no idea how to write this in autoit but i guess it's not too hard to port it.
and for mana etc... u should take a look at the descriptors cypher posted,
curHP / maxHP = 0.5 if u got 50% health -^^