AutoIt - Read Players Health help menu

User Tag List

Results 1 to 3 of 3
  1. #1
    D3ADLiN3's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AutoIt - Read Players Health help

    Hi,

    I'm having some problems trying to read my toons health, could somebody point me in the right direction?

    Current Code:

    Code:
    #include <NomadMemory.au3>
    #include <MemoryGetBaseAddressUDF.au3>
    SetPrivilege("SeDebugPrivilege", 1)
    
    $ID = ProcessExists("Wow.exe")
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    Global $MyName = 0x980598            ; 4.2.2.14545
    
    Global $PlayerBase = 0xA32738
    Global $PlayerBase_Offset1 = 0x38
    Global $PlayerBase_Offset2 = 0x24
    
    Global $UNIT_FIELD_HEALTH = 0x68
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    $OpenMem  = _MemoryOpen($ID)
    $BaseAddr = _MemoryGetBaseAddress($OpenMem, 1)
    
    $MyName_final = "0x" & Hex($BaseAddr + $MyName)
    
    $PlayerName     = _MemoryRead($MyName_final, $OpenMem, 'char[16]')
    
    $pBasePointer01 = _MemoryRead($PlayerBase, $OpenMem, 'ptr')
    $pBasePointer02 = _MemoryRead($pBasePointer01 + $PlayerBase_Offset1, $OpenMem, 'ptr')
    $pBasePointer   = _MemoryRead($pBasePointer02 + $PlayerBase_Offset2, $OpenMem, 'ptr')
    $pStorage       = _MemoryRead($pBasePointer + 0x8, $OpenMem, 'ptr')
    $Player_Health  = _MemoryRead($pStorage + $UNIT_FIELD_HEALTH * 4, $OpenMem, 'ptr')
    
    ConsoleWrite("Player Name: " & $PlayerName & @CRLF)
    ConsoleWrite("Player Health: " & $Player_Health & @CRLF)
    I can return my Player Name fine, but my Health returns as: 0x00000000
    I have taken the offsets from the sticky.

    Thanks

    AutoIt - Read Players Health help
  2. #2
    Multitask's Avatar Contributor

    Reputation
    158
    Join Date
    Jan 2008
    Posts
    1,112
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sigh. Read the rules.

Similar Threads

  1. [C++][WOW 4.3.4 15595] Read player health
    By semar in forum WoW Memory Editing
    Replies: 3
    Last Post: 06-24-2013, 02:55 PM
  2. [Help Needed] Player Health + Energy
    By Nexilus in forum SWTOR Hacks
    Replies: 6
    Last Post: 08-06-2012, 11:03 PM
  3. Replies: 7
    Last Post: 12-19-2009, 11:45 AM
  4. [Help][C#] Reading player level
    By -Ryuk- in forum Programming
    Replies: 5
    Last Post: 12-11-2009, 11:12 AM
  5. [Help] Reading Player Names
    By nopz in forum WoW Memory Editing
    Replies: 0
    Last Post: 09-15-2009, 05:59 PM
All times are GMT -5. The time now is 12:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search