Getting wrong Value [ Player Health ] menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    Eviin's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting wrong Value [ Player Health ]

    Hey guys,

    I want to Read the Current Playerhealth of my Character but Im getting a wrong value.
    Used Programming-language: Delphi
    Current WoW Version: 4.3.4 (15595)

    Can anyone help please ? ^^

    Constants:
    Code:
    unit_field_health = $12;

    Read health:
    Code:
    function GetPlayerHealth() : Integer;
    var
      Storage : DWORD;
      Puffer  : Integer;
      Bytes   : NativeUInt;
      dSize    : DWORD;
    begin
      ReadProcessMemory( HandleWindow, ptr(PlayerBase + $8), @Storage, sizeOf(dSize), Bytes );
      ReadProcessMemory( HandleWindow, ptr(Storage + (UNIT_FIELD_HEALTH + $8) * 4 ), @Puffer, sizeOf(dSize), Bytes );
      result := Puffer;
    end;

    Getting wrong Value [ Player Health ]
  2. #2
    Vandra's Avatar Contributor
    Reputation
    288
    Join Date
    Mar 2008
    Posts
    471
    Thanks G/R
    26/26
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Descriptor is at 0xC

  3. #3
    Eviin's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank i will try it but i have another problem... ^^

    Sometimes the Module and player Base Address cannot be loaded.
    The functions returns already 0.

  4. #4
    Eviin's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm still getting wrong value

  5. #5
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm... i'll try to make a delphi instruction on short terms. More people asking me about how to do stuff in Delphi.

    So I guess you have access to all objects, looped through them, and found the player offset? I used the precise memory offsets to make things clear and did not use constants.
    You first read the descriptor-value then you simply read the health;
    Code:
      lDescriptor := ReadInt32(gPID, lPlayerObject + $c);     
      lObjectHealth := ReadInt32(gPID, lDescriptior+ (($12 + $8)*4));
    Last edited by radarlove; 06-30-2012 at 07:42 AM.

  6. #6
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delphi Example, patch 15595 (4.3.4)

    So I decided to make a VERY QUICK example in Delphi.
    Download link: http://dl.dropbox.com/u/86348557/example.zip
    It only contains Delphi project files, and no compiled executables. So no viruses, just text.

    When running it in delphi and pressing the button on the form, make sure the WoW process is already running.

    The package contains:
    - ExampleWoW.dpr --> Delphi project file
    - UInt64Lib.pas --> Used to read UINT64 from memory
    - UnitMain.pas --> My main unit. Contains a simple memo field, upon pressing the button you will get the values of the running WoW process. Also contains a few standard functions; GetModuleBaseAddress, GetProcessID, ReadShort, ReadString, ReadInt32, etc.
    - UnitMain.dfm --> Contains the form and its objects.

    Like said in first line; made this VERY QUICK & DIRTY. So all memory offsets are also written in the code.

    Have fun with it!

Similar Threads

  1. Help in Getting States of player ?
    By ninar1 in forum WoW Memory Editing
    Replies: 9
    Last Post: 08-04-2009, 06:53 AM
  2. Get an extra +400 health for ur 19 twink
    By OverLordErIcH in forum World of Warcraft Guides
    Replies: 11
    Last Post: 07-28-2009, 02:23 PM
  3. [WoW][3.0.9] A way to get return values from Lua Functions
    By ramey in forum WoW Memory Editing
    Replies: 6
    Last Post: 03-22-2009, 10:09 PM
  4. Is there a guide how to get alot of players on your server?
    By Lexeus in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-24-2008, 02:29 PM
  5. Get an enemy player killed in Ratchet.
    By Aegan in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 01-24-2008, 03:19 AM
All times are GMT -5. The time now is 09:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search