crazedwombat Posted May 3, 2009 Posted May 3, 2009 I've been searching and trolling, but i can't seem to figure out proper syntax for NomadMemory.. please tell me how to do this simple script and I will use the knowledge to write the remainder of the script.. Here's my horrible shot at it: #include <NomadMemory.au3> while 1 _MemoryOpen(ProcessExists("elementclient.exe")) $HP = _MemoryRead(0x188A5288) _MemoryClose() if $HP < 1013 Then send("3") EndIf sleep(200) WEnd Basically, I used cheat engine to find the pointer address to the HP in a game, the address is listed as "P->188A5288" in the "advanced options" list at the bottom of the CE window... the address of the pointer is "0338faa8" and the offset is "278" which equals "188A5288"... Eventually I will make this more complicated, but for now I just want the script to send("3") when my hp drops below 1013.. I've tried looking at example scripts and reading others having issues, but since i'm new to autoit reading the scripts is still proving difficult, and it isn't really helping me. Thank you in advance, if I can get a working example for this task I think i can figure out how to make it more advanced on my own.
Szhlopp Posted May 3, 2009 Posted May 3, 2009 crazedwombat said: I've been searching and trolling, but i can't seem to figure out proper syntax for NomadMemory.. please tell me how to do this simple script and I will use the knowledge to write the remainder of the script..Here's my horrible shot at it:#include <NomadMemory.au3>while 1_MemoryOpen(ProcessExists("elementclient.exe"))$HP = _MemoryRead(0x188A5288)_MemoryClose()if $HP < 1013 Then send("3")EndIfsleep(200)WEndBasically, I used cheat engine to find the pointer address to the HP in a game, the address is listed as "P->188A5288" in the "advanced options" list at the bottom of the CE window... the address of the pointer is "0338faa8" and the offset is "278" which equals "188A5288"...Eventually I will make this more complicated, but for now I just want the script to send("3") when my hp drops below 1013..I've tried looking at example scripts and reading others having issues, but since i'm new to autoit reading the scripts is still proving difficult, and it isn't really helping me.Thank you in advance, if I can get a working example for this task I think i can figure out how to make it more advanced on my own.Check out the MemoryAddress in my sig for a fully working memory example =) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now