[Retail] Unit is boss menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Lumi666's Avatar Member
    Reputation
    1
    Join Date
    May 2012
    Posts
    19
    Thanks G/R
    3/0
    Trade Feedback
    3 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [Retail] Unit is boss

    Hello !
    I'm trying to find a way to know if a unit is a boss or not ( externally if possible, without lua function call ) in Wow retail.
    I found the data related to creature classification
    Code:
        
    public enum WoWClassification
        {
            Normal = 0,
            Elite = 1,
            RareElite = 2,
            WorldBoss = 3,
            Rare = 4
        }
    But in raid or dungeon bosses seems to be considered as "Elite" only.
    Any idea of how to get this information ?

    [Retail] Unit is boss
  2. #2
    darheroc's Avatar Member
    Reputation
    13
    Join Date
    Oct 2021
    Posts
    19
    Thanks G/R
    9/7
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Lumi666 View Post
    Hello !
    I'm trying to find a way to know if a unit is a boss or not ( externally if possible, without lua function call ) in Wow retail.
    I found the data related to creature classification
    Code:
        
    public enum WoWClassification
        {
            Normal = 0,
            Elite = 1,
            RareElite = 2,
            WorldBoss = 3,
            Rare = 4
        }
    But in raid or dungeon bosses seems to be considered as "Elite" only.
    Any idea of how to get this information ?
    Can only speak of Classic, this used to work for me on raid bosses. Haven't checked in a while, but you'll find the offset around that area if it has changed.
    Pointer = 0x500
    GatherType = 0xe8
    Code:
    public bool IsBoss
    {
        get
        {
            try
            {
                int ret = (Memory.Read<int>(Memory.Read<IntPtr>(BaseAddress +  Fields.Unit.DBCacheRow.Pointer) + Fields.Unit.DBCacheRow.GatherType) >> 2) & 1;
                return (ret == 1);
            }
            catch (Exception e)
            {
                Logging.WriteError(e);
                return false;
            }
        }
    }

  3. Thanks Lumi666 (1 members gave Thanks to darheroc for this useful post)
  4. #3
    Hazzbazzy's Avatar wannabe hackerlol Authenticator enabled
    Reputation
    1335
    Join Date
    Aug 2011
    Posts
    1,206
    Thanks G/R
    243/484
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know you said in specifics without a lua function, if possible, but for anyone else I believe the appropriate lua function to do this would be UnitClassification
    "HOLY TIME MACHINE BATMAN! it's 1973!"
    https://youtube.com/Hazzbazzy

  5. #4
    maikel233's Avatar Contributor
    Reputation
    137
    Join Date
    Sep 2010
    Posts
    110
    Thanks G/R
    38/64
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    class UnitInfo {
    public:
    	FIELD(uint32_t, GetType, 0x30);
    	FIELD(uint32_t, GetFamily, 0x34);
    	FIELD(uint32_t, GetUnitRank, 0x38);
    	FIELD_OBJ(char*, GetName, 0xF8);
    	FIELD(uint32_t, GetGatherType, 0xE8);
    };
    Code:
    enum UnitRank
    {
    	Normal = 0,
    	Elite = 1,
    	RareElite = 2,
    	Boss = 3,
    	Rare = 4
    };
    Code:
    		if (entity->GetType() == TypeId::CGPlayer || entity->GetType() == TypeId::CGActivePlayer) {
    
    					if (entity->GetUnitInfo()->GetUnitRank() == UnitRank::Normal) {
    						RenderTextWithDynamicSize("Normal", ImVec2(OPPos.x, OPPos.y - 50.f), GameUtils::GetClassColor(entity), distance);
    					}
    					else if (entity->GetUnitInfo()->GetUnitRank() == UnitRank::Elite) {
    						RenderTextWithDynamicSize("Elite", ImVec2(OPPos.x, OPPos.y - 50.f), GameUtils::GetClassColor(entity), distance);
    					}
    					else if (entity->GetUnitInfo()->GetUnitRank() == UnitRank::Boss) {
    						RenderTextWithDynamicSize("Boss", ImVec2(OPPos.x, OPPos.y - 50.f), GameUtils::GetClassColor(entity), distance);
    					}
    				}

  6. Thanks Lumi666 (1 members gave Thanks to maikel233 for this useful post)
  7. #5
    Lumi666's Avatar Member
    Reputation
    1
    Join Date
    May 2012
    Posts
    19
    Thanks G/R
    3/0
    Trade Feedback
    3 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    GatherType is perfect ! Thanks !

  8. #6
    air999's Avatar Contributor
    Reputation
    131
    Join Date
    Nov 2014
    Posts
    102
    Thanks G/R
    9/62
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    "GatherType" is a bitfield flag, some known values is as:

    Code:
        [Flags]
        public enum WoWCreatureTypeFlags : uint
        {
            Tameable             = 0x1,
            GhostVisible         = 0x2,
            Boss                 = 0x4,
            HerbSkin             = 0x100,
            MineSkin             = 0x200,
            MountedCombatAllowed = 0x800,
            Salvageable          = 0x8000,
            Exotic               = 0x10000,
            QuestBoss            = 0x80000000
        }

  9. #7
    Lumi666's Avatar Member
    Reputation
    1
    Join Date
    May 2012
    Posts
    19
    Thanks G/R
    3/0
    Trade Feedback
    3 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    -- NVM I'm dumb
    Last edited by Lumi666; 01-17-2024 at 04:18 AM.

Similar Threads

  1. Q: Unit is (really) dead?
    By TrioxX in forum WoW Memory Editing
    Replies: 1
    Last Post: 08-12-2012, 03:06 PM
  2. Replies: 1
    Last Post: 05-16-2011, 12:37 AM
  3. If a Unit is Hostile
    By Bapetoven in forum WoW Memory Editing
    Replies: 19
    Last Post: 10-22-2010, 01:32 AM
  4. Check whether the unit is in visual range?
    By zys924 in forum WoW Memory Editing
    Replies: 8
    Last Post: 10-06-2010, 05:44 AM
  5. Get who unit is attacking...
    By jbrauman in forum WoW Memory Editing
    Replies: 19
    Last Post: 02-02-2009, 05:03 AM
All times are GMT -5. The time now is 04:29 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search