WoWCreatureType menu

User Tag List

Results 1 to 6 of 6
  1. #1
    DurotarHeights's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WoWCreatureType

    I'll start off by saying I've done as much research and searching as I can before I asked a question!

    I've spent the last few weeks writing my own completely out of memory Radar in C++ (I'm hoping to graduate it to a custom bot when finished) and I've learned a lot and thank you guys for the extensive help you've already given me.

    I found this in the "Enums" thread:

    public enum WoWCreatureType
    {
    Unknown = 0,
    Beast,
    Dragon,
    Demon,
    Elemental,
    Giant,
    Undead,
    Humanoid,
    Critter,
    Mechanical,
    NotSpecified,
    Totem,
    NonCombatPet,
    GasCloud
    }

    But I've searched the memory fairly completely and can't find a memory address that corresponds to these values.

    I want my Radar to filter out NPCs. I keep looking at the memory struct for my Pet Water elemental, and I never find an address that corresponds to the value "4" (I'm assuming this is NOT a mask, correct? I looked for as a mask and still couldn't find it.)

    Is the WoWCreatureType stored in the Object list, or is it stored in the Descriptor? And is it a mask or not? I'd appreciate an offset if you have it, but I might be able to find it on my own.

    WoWCreatureType
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    From CreatureType.dbc:
    Code:
    public enum CreatureType {
        Invalid,
        Beast,
        Dragonkin,
        Demon,
        Elemental,
        Giant,
        Undead,
        Humanoid,
        Critter,
        Mechanical,
        NotSpecified,
        Totem,
        NonCombatPet,
        GasCloud,
        WildPet,
        Abberation
    }
    Returned by this:


    Of course I recommend simply calling the function to keep it clean. It's located at 0x006E8767 (x86 non-rebased.)

  3. #3
    csoldjb's Avatar Member Authenticator enabled
    Reputation
    7
    Join Date
    Jan 2015
    Posts
    20
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,Jadd
    How did you got this decompiled code with some symbols?

  4. #4
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I named it all myself, based off an older debug build (6.0.1.18179).

  5. #5
    DurotarHeights's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh wow, that's why I couldn't find it.

    I'm staying completely out of process, so more work to do.

  6. #6
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DurotarHeights View Post
    Oh wow, that's why I couldn't find it.

    I'm staying completely out of process, so more work to do.
    It's quite simple if you have the data ready. Getting the shapeshift form is easy, just a few memory reads:


    Then just get the creature type (m_creatureType) from SpellShapeshiftForm.dbc:


    The common ones:

    Code:
    public enum ShapeshiftForm {
        None,
        Cat = 1,
        TreeOfLife = 2,
        TravelForm = 3,
        AquaticForm = 4,
        BearForm = 5,
        Ghoul = 7,
        DireBearForm = 8,
        TharonjaSkeleton = 10,
        CreatureBear = 14,
        CreatureCat = 15,
        GhostWolf = 16,
        Zombie = 21,
        Metamorphosis = 22,
        Undead = 25,
        Frenzy = 26,
        FlightFormEpic = 27,
        Shadowform = 28,
        FlightForm = 29,
        Stealth = 30,
        MoonkinForm = 31,
        SpiritOfRedemption = 32
    }
    Code:
    private static readonly Dictionary<ShapeshiftForm, CreatureType> _shapeshiftCreatureTypes =
        new Dictionary<ShapeshiftForm, CreatureType> {
            { ShapeshiftForm.Cat, CreatureType.Beast },
            { ShapeshiftForm.TreeOfLife, CreatureType.Humanoid },
            { ShapeshiftForm.TravelForm, CreatureType.Beast },
            { ShapeshiftForm.AquaticForm, CreatureType.Beast },
            { ShapeshiftForm.BearForm, CreatureType.Beast },
            { ShapeshiftForm.Ghoul, CreatureType.Undead },
            { ShapeshiftForm.DireBearForm, CreatureType.Beast },
            { ShapeshiftForm.TharonjaSkeleton, CreatureType.Undead },
            { ShapeshiftForm.CreatureBear, CreatureType.Beast },
            { ShapeshiftForm.CreatureCat, CreatureType.Beast },
            { ShapeshiftForm.GhostWolf, CreatureType.Beast },
            { ShapeshiftForm.Zombie, CreatureType.Undead },
            { ShapeshiftForm.Metamorphosis, CreatureType.Humanoid },
            { ShapeshiftForm.Undead, CreatureType.Undead },
            { ShapeshiftForm.Frenzy, CreatureType.Beast },
            { ShapeshiftForm.FlightFormEpic, CreatureType.Beast },
            { ShapeshiftForm.FlightForm, CreatureType.Beast }
        };
    And if no shapeshift form is present:
    Code:
    if ([unitPtr + 0xC04])
        creatureType = [[unitPtr+0xC04]+0x24];
    else
        creatureType = [[unitPtr+0x124]+0xB0] > 0 ? CreatureType.Humanoid : CreatureType.Invalid;

All times are GMT -5. The time now is 01:13 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