AutoIt UNIT_FIELD_HEALTH reading menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    telekenetix's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AutoIt UNIT_FIELD_HEALTH reading

    I am currently trying to get AutoIt to read my character's health, and I am getting a value of 0x00000000. I am using Robske's post here http://www.mmowned.com/forums/wow-me...fo-dump-3.html as a guideline.

    Here is what I have:

    Code:
    $pBasePointer01 = mem_read(0x0103EDA8,$WoWProcess,'ptr')
    $pBasePointer02 = mem_read($pBasePointer01 + 0x34,$WoWProcess,'ptr')
    $pBasePointer = mem_read($pBasePointer02 + 0x24,$WoWProcess,'ptr')
    $pStorage = mem_read($pBasePointer + 0x8,$WoWProcess,'ptr')
    $Health = mem_read($pStorage + 0x17*4,$WoWProcess,'ptr')
    I am sure that there is something incredibly simple that I am doing wrong...

    AutoIt UNIT_FIELD_HEALTH reading
  2. #2
    ~OddBall~'s Avatar Contributor
    Reputation
    207
    Join Date
    Jan 2008
    Posts
    1,156
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need the offsets for patch 3.2 not 3.1 =.=
    https://www.mmowned.com/forums/world-of-warcraft/guides/278302-selecting-bot-you.html - SELECTING THE BOT FOR YOU

    PHWOOOOAAAAAR - Parog was here. <3 <----Wtf's a Parog?

  3. #3
    telekenetix's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using the offset from 3.2.2 for the first part and I was under the (perhaps false) impression, that the others were the same.

    0x0103EDA8 is the correct address of struct sUnitFields.

  4. #4
    ~OddBall~'s Avatar Contributor
    Reputation
    207
    Join Date
    Jan 2008
    Posts
    1,156
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my bad xD

    fillz
    https://www.mmowned.com/forums/world-of-warcraft/guides/278302-selecting-bot-you.html - SELECTING THE BOT FOR YOU

    PHWOOOOAAAAAR - Parog was here. <3 <----Wtf's a Parog?

  5. #5
    telekenetix's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No worries, I understand the urge to correct nubs with the simplest answer, as it is often the correct one.


    Edit:

    Do I need to do something with the $Health pointer? I am not sure about that though, since the value of it is 0x00000000 (NULL I'm guessing). So, I am betting my offsets are wrong somewhere in there.
    Last edited by telekenetix; 09-28-2009 at 10:32 PM. Reason: Adding to question without new post.

  6. #6
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The offset to sUnitFields is actually the offset where it's allocated (iirc).
    You need the static playerBase offset.

    I think FearAndLawyering posted it.
    http://www.mmowned.com/forums/wow-me...ml#post1684721
    Last edited by MaiN; 09-29-2009 at 12:57 AM.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  7. #7
    telekenetix's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The offset to sUnitFields is actually the offset where it's allocated (iirc).
    You need the static playerBase offset.
    So, when I am doing my first read, I should use the offset for the playerBase?

    That is, it would look like
    Code:
    $pBasePointer01 = mem_read(0x12D4EA8,$WoWProcess,'ptr') ; <----- Static Player offset
    $pBasePointer02 = mem_read($pBasePointer01 + 0x34,$WoWProcess,'ptr')
    $pBasePointer = mem_read($pBasePointer02 + 0x24,$WoWProcess,'ptr')
    $pStorage = mem_read($pBasePointer + 0x8,$WoWProcess,'ptr')
    $Health = mem_read($pStorage + 0x17*4,$WoWProcess,'ptr')
    Is that right?
    Last edited by telekenetix; 09-29-2009 at 01:01 PM.

  8. #8
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That seems right.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  9. #9
    telekenetix's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks MaiN that worked fine.

  10. #10
    complxor's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Port to c#
    Code:
                IntPtr pBasePointer01 = (IntPtr)SMemory.ReadUInt((IntPtr)WoWProcess.Handle, 0x12D4EA8);
                IntPtr pBasePointer02 = (IntPtr)SMemory.ReadUInt((IntPtr)WoWProcess.Handle, ((uint)pBasePointer01 + 0x34));
                IntPtr pBasePointer = (IntPtr)SMemory.ReadUInt((IntPtr)WoWProcess.Handle, ((uint)pBasePointer02 + 0x24));
                IntPtr pStorage = (IntPtr)SMemory.ReadUInt((IntPtr)WoWProcess.Handle, ((uint)pBasePointer + 0x8));
                int health = (int)SMemory.ReadInt((IntPtr)WoWProcess.Handle, ((uint)pStorage + 0x17 * 4));
    Probably not the best code, but it works, using SMemory class from Blackmagic library

Similar Threads

  1. [guide] how to create a wow bot using autoit (memory reading)
    By zamba1587 in forum WoW Memory Editing
    Replies: 17
    Last Post: 01-23-2017, 03:27 PM
  2. AutoIT Example - Reading a value from memory
    By mechtn in forum SWTOR Bots and Programs
    Replies: 10
    Last Post: 02-01-2012, 11:48 AM
  3. Replies: 2
    Last Post: 01-18-2012, 05:15 AM
  4. chat reading tool & Example [autoit]
    By zutto in forum World of Warcraft Bots and Programs
    Replies: 56
    Last Post: 05-20-2010, 03:15 PM
  5. [Autoit] Problem with Memory reading for looting *resolved*
    By spudstar99 in forum WoW Memory Editing
    Replies: 4
    Last Post: 05-15-2009, 10:26 PM
All times are GMT -5. The time now is 04:58 PM. 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