Get_State() -> Need help

07/30/2006 09:05 Touch Of Dead#1
Im working on a memory based bot and im trying to figure out where to read to see if my char is flying or on ground.

The actual address that I use is not working 100% of the time(0x0012F7E4) and im trying to find a better one.

On this address, 1839905888 mean my archer is using Stamina Fly(40 sec) but when I read it, it change the value to 13 so my loops are not working(Im trying to wait untill flying is done then sit to regen my stamina).


Code:
Func get_state()     	
	$address=0x0012F7E4
	Local $state
	$state= _MemoryRead($address,$_Handle)
	Return $state
EndFunc
Here is my loop

Code:
	While get_state() = 1839905888
 Sleep(2000)
	WEnd
It only loop once because the second time it read the memory it become 13.

Anyone have a better address for this?
07/30/2006 09:29 Lateralus#2
DMA....
07/30/2006 09:41 Touch Of Dead#3
Quote:
Originally posted by Lateralus@Jul 30 2006, 09:29
DMA....
NOT

It's only happening when im reading it more then once in a short lapse of time.
If I read it 2 times in 5 seconds it will changes to 13 for some reason but if I only read it once I will be fine. The problem is I need to use this in a loop so I need to read it more then once.
07/30/2006 10:06 Lateralus#4
Does it continue to change or does it stop at 13?
07/30/2006 10:09 Rancid-Milk-Man#5
BOOBIES!!!!!!!!!!!!!
07/30/2006 10:42 Lateralus#6
Quote:
Originally posted by Rancid-Milk-Man@Jul 30 2006, 10:09
BOOBIES!!!!!!!!!!!!!
Yes, Keeley Hazell is a goddess.
07/30/2006 11:07 Touch Of Dead#7
I found an alternative way of doing it that should work for the beta stage.

I justu se 0x004FE42C and whenever this address = 0 it means im on ground ( no specials abilities activated) and safe to sit. In short, it let me know if im flying or if im on ground.
07/30/2006 11:23 Lateralus#8
Quote:
Originally posted by Touch Of Dead@Jul 30 2006, 11:07
I found an alternative way of doing it that should work for the beta stage.

I justu se 0x004FE42C and whenever this address = 0 it means im on ground ( no specials abilities activated) and safe to sit. In short, it let me know if im flying or if im on ground.
Glad I could be of help!