Detecting Player's Class 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)

    Detecting Player's Class

    Hey Guys,

    I have an objectmanager, who want's to know the class of the current player (cc loading etc).

    Now I only found 1 Thread here about this topic:
    http://www.mmowned.com/forums/world-...ers-class.html

    But i did not find any updated Offsets, and I'm unable to find them by myself

    Does anyone have this offsets (also the bitwise operation)

    btw: Is it way dangerous to use some inject? (I thought of only calling lua_dostring)


    Edit: What i also wanted to know, is if anyone knows the offsets, to get the Name of the Target (I have the BaseAdress of the UnitObject aka NPCObject)
    Last edited by berlinermauer; 09-26-2010 at 05:49 PM.

    Detecting Player's Class
  2. #2
    fish2k's Avatar Member
    Reputation
    5
    Join Date
    Nov 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DO NOT REQUEST UPDATED OFFSETS!
    Obviously you have not read the rules of the section.

    Good place to start is the lua function: API UnitClass - WoWWiki - Your guide to the World of Warcraft

  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)
    Oh dammit, i did not know that this is not allowed.

    LUA Function, i don't want to use, because it's using some Injection, and i don't dare

  4. #4
    m|ke's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He didn't say you have to actually use the UnitClass function
    But you could look at the function's code to find out how to do it yourself.

  5. #5
    RivaLfr's Avatar Contributor CoreCoins Purchaser Authenticator enabled
    Reputation
    221
    Join Date
    Sep 2010
    Posts
    258
    Thanks G/R
    2/25
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public WoWClass WowClass { get { return (WoWClass)BitConverter.GetBytes(GetDescriptor<Int32>(Descriptors.UnitFields.UNIT_FIELD_BYTES_0))[1]; } }
    Code:
        public enum WoWClass : uint
        {
            None = 0,
            Warrior = 1,
            Paladin = 2,
            Hunter = 3,
            Rogue = 4,
            Priest = 5,
            DeathKnight = 6,
            Shaman = 7,
            Mage = 8,
            Warlock = 9,
            Druid = 11,
        }

  6. #6
    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)
    get_field<uint32_t>(Object::Unit::UNIT_FIELD_BYTES_0) >> & 0xFF);
    using bitwise operations

  7. #7
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    const std::string & get_field( unsigned long dwField ) const
    {
    return "Warlock";
    }

    get_field( reinterpret_cast<unsigned long>( object ) + 0x00C1A55 )
    Last edited by ramey; 09-27-2010 at 02:39 PM.

Similar Threads

  1. [Selling] [Godly Gear Sets] Made to Order by Expert Players - All Classes - All Servers
    By GodlyGearSets in forum Diablo 3 Buy Sell Trade
    Replies: 4
    Last Post: 09-17-2013, 07:58 PM
  2. How to get Player's Class?
    By luciferc in forum WoW Memory Editing
    Replies: 6
    Last Post: 03-28-2009, 12:04 PM
  3. Kill another player in duel - any class
    By macieq44 in forum World of Warcraft Exploits
    Replies: 37
    Last Post: 08-26-2008, 12:31 AM
  4. question = which classes/races in player create info items,skills, spels
    By Thirsha in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-24-2008, 03:47 AM
  5. WoW-Legends [Hero Classes][4 Realms][5000+ Player Cap][NO LAG + Dedicated]
    By Hellgawd in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 01-29-2008, 12:01 PM
All times are GMT -5. The time now is 10:26 PM. 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