Get real energy value menu

Shout-Out

User Tag List

Results 1 to 15 of 15
  1. #1
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3.5a] get players race/class

    please scroll down...
    Last edited by Edder; 07-21-2011 at 06:38 PM.

    Get real energy value
  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)
    Thanks for all the usefull data you supplied to us.
    Nobody is able to help you without knowing what you exactly do.
    Last edited by flo8464; 07-17-2011 at 02:19 PM.
    Hey, it compiles! Ship it!

  3. #3
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im getting the energy with this piece of code:
    Code:
    // C#
    // patch 3.3.5a
    int Energy = wow.ReadUInt(wow.ReadUInt(playerbase + 0x8) + ((uint)UnitFields.Energy * 4));
    And I update the value every second just like health, health is everytime correctly updated, energy isnt (only tested with mana).
    Example: From memory I read value 90 but the client shows me 100 mana and it does not update, after casting a spell which cost 5 mana, the mana is correctly updated to 95 but it doesnt continue to 100 (full mana).

  4. #4
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Energy is UNIT_FIELD_POWER4, mana is UNIT_FIELD_POWER1 iirc

  5. #5
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Energy is UNIT_FIELD_POWER4, mana is UNIT_FIELD_POWER1 iirc
    Correct, but thats not the point. The way of getting the power value is fine.

    In my case -> Energy = 0x19 = UNIT_FIELD_POWER1
    Last edited by Edder; 07-17-2011 at 02:23 PM.

  6. #6
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at 0x5B2BD0 (CGUnit_C::GetPower) and 0x88D750 (GetPowerDivisor). Your power is first / second.

  7. #7
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edder View Post
    Correct, but thats not the point. The way of getting the power value is fine.

    In my case -> Energy = 0x19 = UNIT_FIELD_POWER1
    I see. I thought it might have been some weird side effect of reading the wrong power type. But then I don't know, sorry.

  8. #8
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This happened to me too when I accessed the descriptors out of process. CE shows the same values, it's stored like that in memory. Actually I would be interested in this, too.

  9. #9
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heres code for the function btw: DWORD __thiscall sub_5B2BD0(CGUnit_C *this, int powertype) { CGUnit_C *v2; / - Pastebin.com Edit: pastebinned, forum likes to remove newlines

  10. #10
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by andy012345 View Post
    Look at 0x5B2BD0 (CGUnit_C::GetPower) and 0x88D750 (GetPowerDivisor). Your power is first / second.
    You mean like this?
    Code:
    uint one = wow.ReadUInt(playerbase + 0x8) + (0x5B2BD0 * 4);
    uint two = wow.ReadUInt(playerbase + 0x8) + (0x88D750 * 4);
    uint actual_mana = one / two;
    Does not work :S get always zero

    I should mention that Im on a private server and I guess the mana is a visual client effect and in the memory is the last value the server send the client?!
    Will try to get my mangos server back up and test it locally.

  11. #11
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Those are addresses of functions. lul

  12. #12
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well this was a serverside effect, on my local mangos server it worked right now just fine, on the other (trinity I guess) I got the mana update problem.

  13. #13
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats cool, but not everyone plays private servers. My help was for people who want to get their power the correct way, some emus are probly still sending power updates out because they havn't implemented predicted power correctly, or just left the code in there because it doesn't really bother them. Client ignores updates from power fields with predicted power enabled anyway, so it doesn't really bother the emus.

  14. #14
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, by calling the function at 0x5B2BD0 and dividing the result through the value resulting from calling the function at 0x88D750, I get the current power and it doesnt matter if I play a class with mana, rage, runicpower or whatever?
    How do I call a function, if I got the address?

  15. #15
    Edder's Avatar Active Member
    Reputation
    22
    Join Date
    Dec 2008
    Posts
    77
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3.5a] get players race/class

    I'm now able to get the health and mana or even the level from Character logged in, but what about the race and class (to determine if energy, mana etc. is used)?
    I found no offset for race/class and I think there is none, so how do we get it? Lua function?

    I also saw UNIT_FIELDS_BYTES_0 and stumbled over this in another source of a bot, I study:
    Code:
    const Structures::Races Objects::playerRace()
    {
       return (Structures::Races)(UINT8)
          ((readUInt(unitField(playerBase()) + Offsets::UNIT_FIELD_BYTES_0 * 4) >> 0));
    }
    
    const Structures::Classes Objects::playerClass()
    {
       return (Structures::Classes)(UINT8)
          ((readUInt(unitField(playerBase()) + Offsets::UNIT_FIELD_BYTES_0 * 4) >> 8));
    }
    I tryed it on my code, but I cant get it to work, I dont get the values that identify my class/race, my playerbase must be correct (i get correct health, mana, level values) and my UNIT_FIELD_BYTES_0 is 0x17.
    In particular I dont understand this: >> 8 respectively >> 0

Similar Threads

  1. Get Real Money, Without Doing anything.
    By -Lex in forum Community Chat
    Replies: 6
    Last Post: 01-30-2008, 09:44 AM
  2. Rs Scam, Get Real Cash or Rs Money
    By triton012 in forum Community Chat
    Replies: 7
    Last Post: 12-14-2007, 09:37 AM
  3. Get real life cash by clicking ads
    By The_klimax in forum Community Chat
    Replies: 5
    Last Post: 06-24-2007, 01:55 PM
All times are GMT -5. The time now is 11:11 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