Confused - Descriptor help menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Steveiwonder's Avatar Active Member
    Reputation
    31
    Join Date
    Oct 2009
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Confused - Descriptor help

    Hello,

    I've not used descriptors before just not really needed them to make my healbot so far. However, did some research on them how to read them etc but not getting results or stranges ones atleast.

    uint isCasting;
    uint p1;
    uint p2;

    uint pbase = MeMBM.WooW.ReadUInt(0x00CD87A;// base
    p1 = MeMBM.WooW.ReadUInt((pbase + 0x + ((uint)eUnitFields.UNIT_FIELD_LEVEL /*(uint) ePlayerFields.PLAYER_XP*/ * 4));
    MessageBox.Show(p1.ToString());

    If im trying read any of these descriptors it returns either 0 or random numbers.

    (sorry for the bad example)

    Can someone point out the error of my ways? I've tried different variations of the above code, moving +0x8 around, reading it all in one line still nothing useful return.

    Appreciate any insite on this.

    I found this which had some explaintion and in what im basing my code on, and some other posts.

    http://www.mmowned.com/forums/world-...scriptors.html

    I'm going to keep searching any how.

    /Falc

    Confused - Descriptor help
  2. #2
    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)
    I don't think you're reading the player base correctly.
    Have a look around at how other people read the player base .. it should look something like this:
    p1 = mem.read( 0x00CD87A;
    p2 = mem.read(p1 + 0x34);
    pbase = mem.read(p2 + 0x24);

  3. #3
    Steveiwonder's Avatar Active Member
    Reputation
    31
    Join Date
    Oct 2009
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply.

    Did some more research and found to do it like this.

    Code:
        
     public class objectOffsets
            {       
                public static readonly uint DescriptorFieldsOffset = 0x08;
            }
    
    
    private void button1_Click(object sender, EventArgs e)
            {
    
                //MessageBox.Show("Doesn't work, need offset iz Cazstin: " + isCasting.ToString());
                MessageBox.Show("This does work! Level: " + Level.ToString());
            }   
    
    public double Level
            {
                get { return MeMBM.WooW.ReadUInt((DescriptorFields + (uint)eUnitFields.UNIT_FIELD_LEVEL)); }
            }
    
    public uint DescriptorFields
            {
                get { return MeMBM.WooW.ReadUInt((ObjectManager.Me.BaseAddress + objectOffsets.DescriptorFieldsOffset)); }
            }
    I really have no idea if this is the best way to do it but it works for me.

    Anyone got any input?

    /Falc

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Steveiwonder View Post
    public double Level
    {
    get { return MeMBM.WooW.ReadUInt((DescriptorFields + (uint)eUnitFields.UNIT_FIELD_LEVEL * 4)); }
    }
    Chances are that you are using an enum with array indices rather than offsets for the descriptors. In order to get the right address you'll have to multiply the index by 4.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  5. #5
    Steveiwonder's Avatar Active Member
    Reputation
    31
    Join Date
    Oct 2009
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tip mate.
    The search continues for casting offsets woop

  6. #6
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at the lua function UnitCastingInfo and UnitChannelInfo in your favorite disassembler/debugger.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  7. #7
    Steveiwonder's Avatar Active Member
    Reputation
    31
    Join Date
    Oct 2009
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks dude, still learning reversing tbh and im not the best at it. I will however take a look when the server comes back up (found some addresses, need to test)

Similar Threads

  1. zolofighter confuses me plz help :D
    By raze1225 in forum World of Warcraft General
    Replies: 3
    Last Post: 02-19-2009, 09:56 PM
  2. Help..please little confused :o
    By Chea1 in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 10-03-2008, 12:48 PM
  3. [HELP] Little Bit of Confusion
    By Hardball in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 08-06-2008, 08:51 AM
  4. Confused on making server public(still need help)
    By smartkid34 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 04-03-2008, 10:01 AM
All times are GMT -5. The time now is 12:36 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