Im have troubles again! menu

Shout-Out

User Tag List

Results 1 to 14 of 14
  1. #1
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Im have troubles again!

    Here is what i have:

    Code:
    					$ptr1 =_BMReadMemory($handle,0x12D4EA8,"ptr")
    					$ptr2 = _BMReadMemory($handle,$ptr1 + 0x34,"ptr")
    					$pBase = _BMReadMemory($handle,$ptr2 + 0x24,"ptr")
    					$hp = _BMReadMemory($handle,$pBase + 0x44,"float")
    					$name = _BMReadMemory($handle,0x12542D8,"ptr")
    Its meant to return my HP and Name to me... but it/i fail.

    If someone could point me in the right direction that would be good.

    Please note: Im not after handouts. I just want to know whats going wrong so I can fix it.

    Im have troubles again!
  2. #2
    nopz's Avatar Active Member
    Reputation
    67
    Join Date
    Aug 2009
    Posts
    56
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    public static uint PlayerHealth = 0x17;
    public static uint PlayerMaximumHealth = 0x1F;

    $hp = _BMReadMemory($handle,$pBase + 0x17,"uint")
    $maxhp = _BMReadMemory($handle,$pBase + 0x1F,"uint")
    My blog: https://pimpmykitty.wordpress.com
    PyFasm: https://github.com/srounet/pyfasm
    Pymem: https://github.com/srounet/pymem

  3. #3
    FenixTX2's Avatar Active Member
    Reputation
    23
    Join Date
    Mar 2009
    Posts
    125
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To get a units health you need to be looking at the descriptor fields.
    hp = readmem((pbase + DescriptorOffset) + HealthOffset);

    The DescriptorOffset i think is 0x8.
    The HealthOffset is 0x17 * 4 (or just 0x5C if you preffer)

  4. #4
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by nopz View Post
    public static uint PlayerHealth = 0x17;
    public static uint PlayerMaximumHealth = 0x1F;

    $hp = _BMReadMemory($handle,$pBase + 0x17,"uint")
    $maxhp = _BMReadMemory($handle,$pBase + 0x1F,"uint")
    Maybe its just me... but $Hp reads 3300839936 :'(

  5. #5
    Thidan's Avatar Contributor
    Reputation
    299
    Join Date
    Jan 2007
    Posts
    1,009
    Thanks G/R
    2/15
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Remember to read the name as char[] if I'm not completely wrong...?


  6. #6
    nopz's Avatar Active Member
    Reputation
    67
    Join Date
    Aug 2009
    Posts
    56
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    as FenixTX2 said you have to multiply offsets by 4 as you are reading a descriptor field.

    so :

    Code:
    protected T GetKnownField<T>(object field) where T : struct
            {
                return (T)ReadObject(ReadUInt(ObjectPointer + 0x08) + (Convert.ToUInt32(field) * 4), typeof(T));
            }
    try :

    _BMReadMemory($handle,_BMReadMemory($handle,$pBase + 0x08, "ptr") + (0x17 * 4), "uint")

    if i'm not wrong.

    I really prefer the C# syntax as it's more simple to read !
    Last edited by nopz; 10-11-2009 at 06:22 PM.
    My blog: https://pimpmykitty.wordpress.com
    PyFasm: https://github.com/srounet/pyfasm
    Pymem: https://github.com/srounet/pymem

  7. #7
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its 0x17 * 4 .

  8. #8
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Thidan View Post
    Remember to read the name as char[] if I'm not completely wrong...?

    Char[12] if i remember correctly?

    but its returns "é

  9. #9
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by nopz View Post
    as FenixTX2 said you have to multiply offsets by 4 as you are reading a descriptor field.

    so :

    Code:
    protected T GetKnownField<T>(object field) where T : struct
            {
                return (T)ReadObject(ReadUInt(ObjectPointer + 0x08) + (Convert.ToUInt32(field) * 4), typeof(T));
            }
    try :

    _BMReadMemory($handle,_BMReadMemory($handle,$pBase + 0x08, "ptr") + (0x17 * 4), "uint")

    if i'm not wrong.

    I really prefer the C# syntax as it's more simple to read !
    that worked perfectly

  10. #10
    nopz's Avatar Active Member
    Reputation
    67
    Join Date
    Aug 2009
    Posts
    56
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You're welcome.

    Follow the other message to resolve your name problem ;=)

    also do not forget to +rep the people who took the time to help you :=)
    Last edited by nopz; 10-11-2009 at 06:31 PM.
    My blog: https://pimpmykitty.wordpress.com
    PyFasm: https://github.com/srounet/pyfasm
    Pymem: https://github.com/srounet/pymem

  11. #11
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by nopz View Post
    You're welcome.

    Follow the other message to resolve your name problem ;=)
    ill try

  12. #12
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will my name starting with É have anything to do with my name being returned as "é?

  13. #13
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help me again char[12] - I think thats correct, returns "é

  14. #14
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ashleyww View Post
    Can anyone help me again char[12] - I think thats correct, returns "é
    Oh come on....please...even if you copy&paste your stuff, think at least for one second.

Similar Threads

  1. [Help] My friend having trouble with his server...
    By Barlas the Death Knight in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 11-09-2007, 10:09 PM
  2. Having trouble making an account have admin setting from DB
    By chernoble in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-16-2007, 09:34 AM
  3. [Question] having trouble opening my itemcache.wdb
    By gh0st420 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-04-2007, 01:45 PM
  4. Having trouble changing races on a Mac
    By Éin in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-22-2007, 04:18 PM
  5. never have lag again
    By zorelf in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 04-04-2007, 06:09 AM
All times are GMT -5. The time now is 07:29 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