CGItem_C names (5.4.7.18019) menu

User Tag List

Results 1 to 13 of 13
  1. #1
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CGItem_C names (5.4.7.18019)

    I've been working on getting item names for a bit, and after taking a wrong turn I figued I'd just ask before I start over;

    Is the function at 0x242976 returning a pointer to the name cache that has the name for a specific EntityID? Or what is it returning, really?

    CGItem_C names (5.4.7.18019)
  2. #2
    ioctl's Avatar Active Member
    Reputation
    23
    Join Date
    Jan 2013
    Posts
    35
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dumb question: why not just scrape the item names from wowhead?

  3. #3
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ioctl View Post
    Dumb question: why not just scrape the item names from wowhead?
    Uhm no, I want to get the name for an object in memory I have it working for everything but Items, which seem to have a bit more complex structure.

  4. #4
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have access to Lua? If you do just call the Lua Functions, then you don't need to update every patch...


    Code:
            public override string Name
            {
                get
                {
                    lock (this)
                    {
                        string randomStringResult = Others.GetRandomString(Others.Random(4, 10));
                        Lua.LuaDoString(randomStringResult + ", _, _, _, _, _, _, _ = GetItemInfo(" + Entry + ")");
                        return Lua.GetLocalizedText(randomStringResult);
                    }
                }

    Alternatively... I believe you can read the Item DBCache

    Last time I checked you would need to use the CacheRowPtr + offset;

    The offsets I used(quite a while back where these; they may have changed)
    Code:
                public uint ItemNamePtr = 0x190;
                public uint ItemLocalizedNamePtr = 0x218;
    Last edited by -Ryuk-; 04-18-2014 at 03:32 PM.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  5. #5
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CronusServus View Post
    Do you have access to Lua? If you do just call the Lua Functions, then you don't need to update every patch...


    Code:
            public override string Name
            {
                get
                {
                    lock (this)
                    {
                        string randomStringResult = Others.GetRandomString(Others.Random(4, 10));
                        Lua.LuaDoString(randomStringResult + ", _, _, _, _, _, _, _ = GetItemInfo(" + Entry + ")");
                        return Lua.GetLocalizedText(randomStringResult);
                    }
                }

    Alternatively... I believe you can read the Item DBCache

    Last time I checked you would need to use the CacheRowPtr + offset;

    The offsets I used(quite a while back where these; they may have changed)
    Code:
                public uint ItemNamePtr = 0x190;
                public uint ItemLocalizedNamePtr = 0x218;
    I'm trying to reverse the code to see how to do the lookup, but it's somewhat convoluted. The offsets your have are still correct, and I think the code I was looking at is the one to find the CacheRowPtr for a specific item. Not quite sure what the CacheRowPtr is, or if there's an easiser way to find it than what's being used in the function at 0x242976
    I still haven't gotten around to figuring out how to get return values from LUA, but perhaps I should get on that instead...

  6. #6
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got GetText working now, thanks for the motivation

  7. #7
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tok_junior View Post
    Got GetText working now, thanks for the motivation

    Great! Feel free to share your code with the community
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  8. #8
    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)
    Err.. use CGObject_C::GetName. It's one function and it works for all object types.

  9. #9
    ioctl's Avatar Active Member
    Reputation
    23
    Join Date
    Jan 2013
    Posts
    35
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tok_junior View Post
    Uhm no, I want to get the name for an object in memory I have it working for everything but Items, which seem to have a bit more complex structure.
    I gather that, but you can accomplish the same taking the item ID you already have, and making an HTTP request to wowhead. Less stuff that breaks after every patch.

  10. #10
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ioctl View Post
    I gather that, but you can accomplish the same taking the item ID you already have, and making an HTTP request to wowhead. Less stuff that breaks after every patch.
    Well it's working with LUA now, and I have to find those offsets anyway. But thanks

  11. #11
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    Err.. use CGObject_C::GetName. It's one function and it works for all object types.
    I fail at finding it. I thought I did, but apparently it was CGUnit__C::GetName, which returns "Unknown" for items and gameobjects...

  12. #12
    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)
    Use it's vtable index

  13. #13
    tok_junior's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Use it's vtable index
    I got thrown off a bit by both CGUnit_C and CGItem_C having non-virtual methods for getting their names... Thanks for getting me back on track.

Similar Threads

  1. Name change exploit (one that works..)
    By XxKajxX in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 11-17-2006, 09:17 AM
  2. [Exploit] Name Change
    By Ced in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 09-02-2006, 03:00 AM
  3. Buying Colour in your name
    By Cush in forum Community Chat
    Replies: 8
    Last Post: 07-08-2006, 10:58 PM
  4. Blank hunter pet name
    By zamp in forum World of Warcraft General
    Replies: 1
    Last Post: 05-31-2006, 08:38 PM
  5. Name Change Exploit
    By Matt in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 05-16-2006, 12:50 PM
All times are GMT -5. The time now is 06:19 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