About offset

07/23/2013 06:23 yangc10#1
Let's say say 0xBBB is the offset for health and 0xAAA is the offset for hp potion; would like to know what you do with those offset to make it use 0xAAA if 0xBBB = 10%. Those are the real offset, but let's pretend it is.
07/23/2013 09:36 SwarN#2
Pseudocode:
Code:
If 0xBBB <= 10% Then
     Use(0xAAA)
Hahahaha i know that's not what you wan't.

But if you do not explain clearlier what you want, no one can help you.
07/23/2013 15:05 yangc10#3
I clearly explain it there already; I already know how to find the offset of health. I just want to use the potion if my health hits 10%. How would you do this with an offset?
07/24/2013 09:38 SwarN#4
you can't do it with an offset.

you have to call the function from the game.

do an detour
or a simple SendInput
or a simple simple Mouseclick
or whatever...


with offset's you can Read from the memory.
You can write to memory, too. But it will not help you in this case.
08/01/2013 01:26 CantShutMyMouth#5
You could do a ControlClick with PixelSearch.
Or, how SwarN say, found out the function and call it.