PlayerFields and Power UnitFields menu

User Tag List

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

    PlayerFields and Power UnitFields

    I'm new to memory editing and I've found out a lot of the basics (even setting process permissions to allow process reading -- that was tough!) but two things stump me. And yes, I've searched for both.

    First, can anyone tell me what type of "power" UNIT_FIELDS_POWER(MAX) 1-7 indicate? I've noticed that 1 is mana and 3 is energy (druid/rogue). 7 appears to be runic power x10, and 2 seemed to move with my rage bar but I couldn't find a true correlation. Is this documented somewhere?

    Also, for PlayerFields, what's the offset to get these from the base pointer? Like for UnitFields, it's [basepointer+0x08].

    I'll be gone 'til Friday starting early tomorrow morning, but hopefully I can get it working when I return. If anyone's wondering, I'm just exploring memory reading as I'm going to college for programming, and I'd like to eventually come up with a new generation of KickAssMap (radar), and possibly write an out-of-process bot.

    Thanks!

    PlayerFields and Power UnitFields
  2. #2
    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)
    API UnitPowerType - WoWWiki - Your guide to the World of Warcraft

    playerobject + 0x16 should be what you are looking for.

  3. #3
    joetheodd's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    20
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Upon re-reading, I could have been more clear. Here's how I define ptr_base:
    Code:
               ptr_base = (uint)readIntFromMemory(0x10BD5F4);
                ptr_base = (uint)readIntFromMemory(ptr_base + 0x34);
                ptr_base = (uint)readIntFromMemory(ptr_base + 0x24);
    Basically what everone does. Immediately following that, I set descriptor.
    Code:
    ptr_descriptor = (uint)readIntFromMemory(ptr_base + 0x8);
    Now, from there, I can easily get anything out of the UnitFields. I copypasta'd directly from the 3.1.3 Info Dump to make that Enum, as well as the PlayerFields. For example, getting level with these two variables set:
    Code:
            public int getLevel() {
                return readIntFromMemory(ptr_descriptor + ((uint)UnitFields.UNIT_FIELD_LEVEL * 4));
            }
    However, I'm not sure how to find the base offset of the PlayerFields for my character. I interpreted what you said as [basePtr + 0x16], but that didn't return the correct value for PlayerFields.PLAYER_FIELDS_COINAGE. Am I totally doing it wrong?
    Last edited by joetheodd; 07-13-2009 at 03:02 AM.

  4. #4
    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)
    some_data = [[objectbase + 0x16] + PLAYER_SOME_FIELD * 4]

    Maybe it got changed. Got no IDA here to look for it

  5. #5
    joetheodd's Avatar Member
    Reputation
    10
    Join Date
    Mar 2009
    Posts
    20
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess what I'm asking, then, is what is / how do I get object base?

  6. #6
    Viano's Avatar Active Member
    Reputation
    37
    Join Date
    May 2008
    Posts
    172
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by joetheodd View Post
    I guess what I'm asking, then, is what is / how do I get object base?
    Read this Accessing WoW’s Game Objects « Shynd’s WoW Modification Journal.
    Viano

Similar Threads

  1. WoW Gold And Power Leveling Service - EXTRA CHEAP!!!
    By jtjm94 in forum World of Warcraft General
    Replies: 8
    Last Post: 05-24-2008, 01:46 AM
  2. Massive Gold and Power Leveling [Prot Paladin]
    By Submit in forum World of Warcraft Guides
    Replies: 3
    Last Post: 12-31-2007, 12:25 AM
  3. Good place to buy Gold and power leveling?
    By Mike3667 in forum World of Warcraft General
    Replies: 2
    Last Post: 10-18-2006, 05:06 PM
  4. Anyone wanna join guild and power level all together at same time?
    By Smurph in forum World of Warcraft General
    Replies: 48
    Last Post: 07-06-2006, 10:28 PM
All times are GMT -5. The time now is 05:08 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