2 objectManager questions: playerClass and ObjectID menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Holico's Avatar Contributor
    Reputation
    85
    Join Date
    Jul 2009
    Posts
    114
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 objectManager questions: playerClass and ObjectID

    Hey guys,
    yeah my Questions arepretty simple i guess.
    First of all is there a possibility to get the Player Class out of the ObjectManager?
    I know that my own Class is saved at some static address but i want the Classes of other players too.
    The only 2 Solutions i see are:

    1)
    Getting the Playername/Realm and check Armory

    2)
    Hook endscene and excute LUA like getPlayerInfoByGUID or so.

    Booth are not useable for me.

    Second Question is, where are the ObjectIDs?
    I mean the ObjectIds which i could add to a wowhead url and get the link to the item
    [Solid Fel Iron Chest] - Objekt - World of Warcraft <--- i mean this ID

    2 objectManager questions: playerClass and ObjectID
  2. #2
    Empted's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2011
    Posts
    117
    Thanks G/R
    0/5
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello.
    1) It can be done some easier. Just call CGUnit_C::GetDisplayClassName (0x892400 not rebased). It takes base adress and some cache string (char name) as params and returns pointer (in eax) to localized string ( utf-8 ). If you don't like this method, try reversing that one in MAC binary version, it seems not that hard.
    2) Just read so called Entry of the object ( 0x14 offset, while descriptor is 0x08 ). It matches wowhead id for any kind of objects.
    Code:
    return WowReader.ReadUInt(DescriptorFields + OBJECT_FIELD_ENTRY);
    P.S. i've reversed GetDisplayClassName for you. Just read BYTE from [[PlayerBase+220]+73] (decimal offsets here). That will be class specific byte. I'm too lazy to match those classes with DBs, this will be a to do for you
    warrior=0x1
    shaman=0x7
    mage=0x8
    and so on.
    Last edited by Empted; 10-14-2012 at 04:46 AM.

  3. #3
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Isn't unit class is in descriptors?

  4. #4
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <PlayerClass>0xDC9755</PlayerClass> globals...

  5. #5
    Empted's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2011
    Posts
    117
    Thanks G/R
    0/5
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    Isn't unit class is in descriptors?
    Yes it is. As i've posted [PlayerBase+220] is descriptor. Then+73 is some class specific byte. I didn't find anything in dump thread, so i've reversed it.

    @radarlove, reread what Holico posted.

  6. #6
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Empted View Post
    Yes it is. As i've posted [PlayerBase+220] is descriptor. Then+73 is some class specific byte. I didn't find anything in dump thread, so i've reversed it.

    @radarlove, reread what Holico posted.
    That's CGUnitData::displayPower.

    Race
    Code:
    LOBYTE(pUnit->unitDescriptors->displayPower)
    Class
    Code:
    BYTE1(pUnit->unitDescriptors->displayPower)
    Gender
    Code:
    BYTE2(pUnit->unitDescriptors->displayPower)
    Power Type
    Code:
    BYTE3(pUnit->unitDescriptors->displayPower)
    Last edited by TOM_RUS; 10-14-2012 at 06:55 AM.

  7. #7
    Empted's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2011
    Posts
    117
    Thanks G/R
    0/5
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    That's CGUnitData::displayPower.
    Thank you. I've matched 73 offset with dump thread already, displayPower was not that informative for me to guess it before a close look into code.

    edit: now it's all clear. Should be in some dump thread next patch.
    Last edited by Empted; 10-14-2012 at 06:57 AM.

  8. #8
    Holico's Avatar Contributor
    Reputation
    85
    Join Date
    Jul 2009
    Posts
    114
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much, booth of your inputs are working great!

    FYI
    1 Warrior
    2 Paladin
    3 Hunter
    4 Rogue
    5 Priest
    6 DK
    7 Shaman
    8 Mage
    9 Warlock
    10 Monk
    11 Druid
    Last edited by Holico; 10-14-2012 at 09:21 AM.

Similar Threads

  1. [Question] Noggit and me
    By Demonshade in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 12-03-2007, 07:22 PM
  2. [Question] Upper And Lower Torso Issue
    By Xcynic in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-14-2007, 08:35 AM
  3. [Question] sound and changable hair
    By ovre in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-07-2007, 06:37 PM
  4. Question: TOS and Model Changing
    By Sergioz in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 07-22-2007, 05:25 PM
  5. [Question] Action and change of race ?
    By Werteur in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-06-2007, 06:20 AM
All times are GMT -5. The time now is 11:48 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