Jump to content

Recommended Posts

Posted

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.

Posted

  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")

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 =)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...