Blackrain unit target Guid menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    tarends's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Blackrain unit target Guid

    Hi all,

    Im just started into c# and into memory reading wow. at this moment i use the libary of blackrain with blackmagic to get some information from wow.

    Im working on a really simple program that will write down in a chatbox if a unit by a certain type is not targeting me. but im stuck on how to get the target of a unit.

    At this moment i am trying to use this code but it does not seems to work for me.

    Code:
        public uint AttackingGuid (uint BaseAddress)
            {
                return ObjectManager.Memory.ReadUInt((BaseAddress + 0x964) + (0x12 * 3));
            }
    baseaddress is the baseaddress of the unit. and i have been looking over a whole lot of threads but i cant seem to find the answer.

    I have also read somewhere that i should be using the

    CGGameUI__Target offset but i cant seem to find a way to implement that with the knowledge i have at this moment.

    for better knowing i am a programmer/designer that programs mostly web based.

    I will be happy to learn from all of you. and if the program(when i get it working is done it will be shared with all of you off course.



    any help or example giving would be amazing.

    Meanwhile i will try some more offsets to see if i can find it out myself.

    Blackrain unit target Guid
  2. #2
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [[base+0x8]+0x12*4]
    but you should seriously try the search function to understand why it's done like this, it has all been explained in several threads

  3. #3
    eLaps's Avatar Active Member
    Reputation
    34
    Join Date
    Sep 2007
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mnbvc View Post
    [[base+0x8]+0x12*4]
    From http://www.mmowned.com/forums/world-of-warcraft/bots-programs/memory-editing/287830-wow-3-3-3a-info-dump-thread.html
    enum UnitFields {
    ...
    UNIT_FIELD_TARGET = 0x12, //target's guid
    ...
    }
    and because object fields are at [base+0x8].
    But this is the kind of information you'll need and have to find by yourself if you plan to code more complex stuff.

  4. #4
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you use BlackRain's native Unit.Target property, and compare it to your own (ObjectManager.Me.GUID) to see if the unit is targeting you?

    Code:
    private List<WowUnit> Units = new List<WowUnit>();
    
    foreach (WowUnit unit in ObjectManager.Objects.OfType<WowUnit>())
    {
    	if (unit.Target != ObjectManager.Me.GUID)
    		Units.Add(unit);
    }
    It's supported. Look up the BlackRain API.

  5. #5
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    I would also like to do something like that. What is unit? I am getting a red underline. I still look over the API atm. Thanks for the

    ---------- Post added at 10:59 AM ---------- Previous post was at 10:54 AM ----------

    Is it this?

    ObjectManager.Me.Target

  6. #6
    zys924's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2009
    Posts
    113
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [[base+0x8]+0x12*4] = ReadUInt64(ReadUInt(base+0x+0x12*4)
    this is a more reasonable expression of how target GUID is got
    I'm also a freshman here, but doesnt spend much time to have a full view of "objects structure"
    In order to make a full understanding of it, you should probably follow these steps
    1. what is an object structure?
    2. 'base' is the base address of the object's struct
    3. what is an object's descriptor struct? so 'base+0x8' is the 'descriptor struct' base address of the object
    4. 0x12 means the targetGUID field is the 12th in the descriptor, each field is of size 4, so the actual address of the GUID is @ (descriptor base) + 0x12*4

    to know more, take a careful look:
    http://www.mmowned.com/forums/world-...e-objects.html

  7. #7
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    [/COLOR]Is it this?

    ObjectManager.Me.Target
    Code:
    public ulong Target { get; }
        Member of Spectre.Common.Objects.WowUnit
    
    Summary:
    The GUID of the object this unit is targeting.

    Then create a new object, either WowUnit or WowPlayer using the Target's BaseAddress. Should be simple enough.

Similar Threads

  1. Memory address from target GUID
    By kisjaksi in forum WoW Memory Editing
    Replies: 2
    Last Post: 08-07-2010, 06:23 AM
  2. Question: Target Unit By GUID in Addons, Possible?
    By zys924 in forum WoW Memory Editing
    Replies: 14
    Last Post: 12-30-2009, 12:57 PM
  3. [HELP] : Player Target GUID
    By Deathvortex in forum WoW Memory Editing
    Replies: 1
    Last Post: 10-17-2009, 05:20 PM
  4. focus target guid?
    By mnbvc in forum WoW Memory Editing
    Replies: 4
    Last Post: 09-28-2009, 04:33 PM
  5. [Help] Getting Target GUID
    By cenron in forum WoW Memory Editing
    Replies: 4
    Last Post: 10-06-2008, 11:59 PM
All times are GMT -5. The time now is 05:24 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