Jump to content
Sign in to follow this  
crazedwombat

CheatEngine Pointer and NomadMemory help

Recommended Posts

crazedwombat

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.

Share this post


Link to post
Share on other sites
Szhlopp

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.

Check out the MemoryAddress in my sig for a fully working memory example =)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.