Jump to content

memory reading issues


Recommended Posts

Hi there,

so I'm trying to create a monitoring tool for a game called Jade Dynasty (not that's really important just telling exactly what I'm trying to do) and I've read that the char current HP path is 00A4AAEC+28+24c but happens that I'm not getting to where i want and honestly i don't have any idea of how to do it, I've just been messing around a little bit ^^

so far i've tried

#include <NomadMemory.au3>

Func _FindNewAddress(ByRef $Pointer, ByRef $OSet)
    $New_Address = _MemoryRead($Pointer, $ID) + $OSet
    Return $New_Address
EndFunc

    $proc = ProcessList("elementclient.exe")
    $adress=0x00A4AAEC
    $ID=_MemoryOpen($proc[1][1])
    If @Error Then
        MsgBox(0, "ERROR", "Failed to open memory")
    EndIf
   $hp = _MemoryRead($adress, $ID)
        $CurHpOS2 = "0x24c"
        $CurHpOS1 = "0x28"
        $HP1 = _FindNewAddress($adress, $CurHpOS1)
        $HP = _FindNewAddress($HP1, $CurHpOS2)
        $CurHp = _MemoryRead($HP, $ID)
    _MemoryClose($ID)

MsgBox(1, "PlayerInfo", "HP: " & $hp)

and changing to

$CurHpOS2 = "0x0000024c"
        $CurHpOS1 = "0x00000028"

and so on...

which obviously is wrong and getting me wrong values.

Any help would be appreciated =)

Link to comment
Share on other sites

ok I've done some searches and i've tried

#include <NomadMemory.au3>

Global $offset[3]=["Null", "24c", "28"]

    $proc = ProcessList("elementclient.exe")
    $adress=0x00A4AAEC
    $ID=_MemoryOpen($proc[1][1])
    If @Error Then
        MsgBox(0, "ERROR", "Failed to open memory")
    EndIf
        $hp=_MemoryPointerRead ($adress, $ID, $offset)
    _MemoryClose($ID)
MsgBox(1, "PlayerInfo", "HP: " & $hp[1])
Sleep (1600)

also i understand there are a huge amount of memory reading posts but i haven't found any like this yet...

and is still getting wrong values, so if anyone have any clue why would be great

Link to comment
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
 Share

  • Recently Browsing   0 members

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