Reading GameObjectType. menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    kimsanderson's Avatar Private
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading GameObjectType.

    I apologise if this is a silly question but I can see it has been asked before and I still can't seem to get it to work...

    I'm trying to read the Type of a GameObject. I have tried reading the GameObject's pointer added to the rebased 'GAMEOBJECT_BYTES_1' offset (0x4C) and I cant get it to match anything in the Enum.

    Thanks in advance, K.

    Reading GameObjectType.
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ObjectType is [base + 0x14]. There's another type field in the WowObject structure. It matches to an enum given in the WoW Constant Data sticky.

  3. #3
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    ObjectType is [base + 0x14]. There's another type field in the WowObject structure. It matches to an enum given in the WoW Constant Data sticky.
    He said he is trying to get the type of a GameObject, not of the base class object.
    And the type field is more a combination of typeflags.

    But afaik there is no real distinction of different GameObjects, just use the displayId ...
    Hey, it compiles! Ship it!

  4. #4
    kimsanderson's Avatar Private
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to read from the following enum:
    Code:
    enum eGameObjType
    {
    
    GOT_Door=0, GOT_Button=1, GOT_QuestGiver=2, GOT_Chest=3, GOT_Binder=4, GOT_Generic=5, GOT_Trap=6, GOT_Chair=7, GOT_SpellFocus=8, GOT_Text=9, GOT_Goober=0xa, GOT_Transport=0xb, GOT_AreaDamage=0xc, GOT_Camera=0xd, GOT_WorldObj=0xe, GOT_MapObjTransport=0xf, GOT_DuelArbiter=0x10, GOT_FishingNode=0x11, GOT_Ritual=0x12, GOT_Mailbox=0x13, GOT_AuctionHouse=0x14, GOT_SpellCaster=0x16, GOT_MeetingStone=0x17, /* new */ GOT_FlagStand=0x18, GOT_FishingHole=0x19, GOT_FlagDrop=0x1A, GOT_MiniGame=0x1B, // Note by Cypher: Added in 3.0.x GOT_LotteryKiosk = 28, GOT_CapturePoint = 29, GOT_AuraGenerator = 30, GOT_DungeonDifficulty = 31, GOT_BarberChair = 32, GOT_DestructibleBuilding = 33, GOT_GuildBank = 34, GOT_FORCEDWORD=0xFFFFFFFF,
    };
    So I can find things like the location of mailboxes. I can't seem to get the right offset for these values.

  5. #5
    kimsanderson's Avatar Private
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still need help with this. Surely somebody knows which offset??

  6. #6
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GAMEOBJECT_FIELD_TYPE = 0x4D

    ReadByte(this.StorageField + (uint)Resources.Offsets.WoWGameObjectFields.GAMEOBJECT_FIELD_TYPE);

  7. #7
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For easier updating, if it were to ever change.

    Read<byte>(pStorage + GAMEOBJECT_BYTES_1 + 2);

  8. #8
    kimsanderson's Avatar Private
    Reputation
    1
    Join Date
    Jul 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much guys <3

Similar Threads

  1. [Question] how to Read GameObjectType
    By CrimeTime in forum WoW Memory Editing
    Replies: 8
    Last Post: 12-05-2010, 06:03 PM
  2. Thottbot Search Engine (MATT please read)
    By Tbone in forum Community Chat
    Replies: 13
    Last Post: 11-07-2006, 06:27 AM
  3. Matt please read this
    By Defalcator in forum Community Chat
    Replies: 2
    Last Post: 07-14-2006, 07:51 PM
  4. TUU's Guide to PvP Shamans--READ DISCLAIMER
    By Örpheus in forum World of Warcraft Guides
    Replies: 3
    Last Post: 07-08-2006, 10:09 PM
  5. Matt *read Here*
    By Amedis in forum Community Chat
    Replies: 5
    Last Post: 06-28-2006, 08:46 PM
All times are GMT -5. The time now is 07:51 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