Using Structures and so on menu

User Tag List

Results 1 to 7 of 7
  1. #1
    berlinermauer's Avatar Master Sergeant
    Reputation
    3
    Join Date
    Mar 2010
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using Structures and so on

    Hello Guys,

    I wanted to use some player structres etc.

    I found your amazing c-Codes which were no problem for me to translate it into Delphi, but:

    How do I use them? I know that there are offsets for example
    PlayerBase + 0x08 and i have the Health Address.

    Now how do I get the Address of the PlayerBase?

    Is there some more which I have to know, which is special in World of Warcrafts structures?

    And what's the difference between enum and struct? enum contains the Offsets and struct the Variables or Types?

    Using Structures and so on
  2. #2
    Kamikaaze's Avatar Member
    Reputation
    13
    Join Date
    Apr 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello berlinermauer,

    this is how i get the Player Base from the Player Static and Offset Pointers:

    Code:
    public enum BasePointer
    {
        PlayerStatic = 0x00CF8C50,
        PlayerOffsetA = 0x34,
        PlayerOffsetB = 0x24,
    }
    Code:
    static BlackMagic Wow = new BlackMagic();
    
    static public uint GetPlayerBase()
    {
        uint PlayerBase1, PlayerBase2, PlayerBase3;
        PlayerBase1 = Wow.ReadUInt((uint)BasePointer.PlayerStatic);
        PlayerBase2 = Wow.ReadUInt(PlayerBase1 + (uint)BasePointer.PlayerOffsetA);
        PlayerBase3 = Wow.ReadUInt(PlayerBase2 + (uint)BasePointer.PlayerOffsetB);
        return PlayerBase3;
    }
    i got the Player Static and Offsets from here: Player - WoW.Dev Wiki

    So what you have to do is:

    1. Read Value from PlayerStatic. (0x00cf8c50)
    2. Add to the read Value PlayerOffsetA. (0x34)
    3. Read again from the calculated address.
    4. Add to the read Value PlayerOffsetB. (0x24)
    5. Read the Player Base from the calculated address.

    For example:
    When i executed this code Address 0x00cf8c50 contained the Value 0x49bb3970
    It adds PlayerOffsetA and gets 0x49BB39A4.
    It reads from 0x49BB39A4 and gets 0x1AE23FE0.
    It adds PlayeroffsetB and gets 0x1AE24004.
    It reads from 0x1AE24004 and gets 0x219DEE10 whitch is the current Player Base for me.

    Note that the only address that doesn't change is the Player Static. Every other Address will change as soon as you restart the game or even if you log out and back in.

  3. #3
    berlinermauer's Avatar Master Sergeant
    Reputation
    3
    Join Date
    Mar 2010
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thank you, your awesome!

    How will I notice if some one logs out or in?

    Do you've got any Idea without placing a button to my bot?

    +rep :]

  4. #4
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the player pointer doesn't point good, then you are not logged in, also, you could scan using Cheat Engine to see something that would be 0 when logged out and 1 when ingame.

  5. #5
    Kamikaaze's Avatar Member
    Reputation
    13
    Join Date
    Apr 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can check it like DrakeFish said by reading 4 Bytes (uint) directly from your Base Pointer without any Offsets. If you are logged out you will read 0 otherwise you read a Value != 0.

    Im not sure what this Value you will read stands for, but i guess it is a part of the Player ID as it is said on this Page: Character - WoW.Dev Wiki

    Code:
    Offset    Type    Description
    0x00    int64    player ID - 8 bytes integer

  6. #6
    berlinermauer's Avatar Master Sergeant
    Reputation
    3
    Join Date
    Mar 2010
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thanks you to.

    Another Idea: Is it only the Player Static which is changed by a wow patch?

    Or do they change their structs/records every patch?

    And: Do you've got a Link to a working PlayerStructure? i only find a huge list about objects and some other things

    btw: How does it work with scanning creatures (mobs etc)
    Last edited by berlinermauer; 03-06-2010 at 06:09 PM.

  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)
    Originally Posted by berlinermauer View Post
    Ok thanks you to.

    Another Idea: Is it only the Player Static which is changed by a wow patch?

    Or do they change their structs/records every patch?
    Normally not, but they of course can.
    If you are a C++-programmer, you can also order elements or add new elements in your classes, so I guess they also can, right...

    Originally Posted by berlinermauer View Post
    And: Do you've got a Link to a working PlayerStructure? i only find a huge list about objects and some other things

    btw: How does it work with scanning creatures (mobs etc)
    Ever thought about clicking the search-button?
    That has be covered one million times.
    Hey, it compiles! Ship it!

Similar Threads

  1. Replies: 6
    Last Post: 02-27-2008, 10:09 PM
  2. [Guide] Using SVN and compiling.
    By miceiken in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-28-2008, 09:48 PM
  3. A question for those using Ascent and Chrispee packs.
    By Cross_1985 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 10-03-2007, 02:08 PM
  4. Replies: 3
    Last Post: 03-24-2007, 05:04 AM
  5. Suspended using FishBot...and how I recovered
    By sol82 in forum World of Warcraft Bots and Programs
    Replies: 15
    Last Post: 03-08-2007, 08:40 PM
All times are GMT -5. The time now is 09:44 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