Reading unit name menu

User Tag List

Results 1 to 11 of 11
  1. #1
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading unit name

    I have a issue reading unit's name. This is what my dump looks like.



    I've tried these two combinations:

    Code:
    core.WoWPID.ReadString(new IntPtr(core.WoWPID.ReadUInt(new IntPtr(core.WoWPID.ReadUInt(new IntPtr(baseAddress + 0x1f4)) + 0x078))));
    core.WoWPID.ReadString(new IntPtr(core.WoWPID.ReadUInt(new IntPtr(baseAddress + 0x1f4)) + 0x078));
    or
    Code:
    (string)[ (int)[ (int)[ baseAddress + 0x1F4 ] + 0x078 ]]
    (string)[ (int)[ baseAddress + 0x1F4 ] + 0x078]
    Last edited by miceiken; 04-06-2009 at 07:04 PM.

    Reading unit name
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Name's are derived differently for different objects. That's why the function to retrieve them is VIRTUAL.

    You're either going to have to implement retrieval for each type, or just call the function.

    Player names are stored in the cache, unit names in a struct, gameobject names in a different struct (I think... can't remember), etc.

  3. #3
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am aware of that, I am sorry if I didn't make my self clear (did I at all?).
    I am intending to implement retrievval for each type (this is not an issue with my object manager).
    This is for reading NPC name and all my searching says that these are the correct addresses.
    Last edited by miceiken; 04-06-2009 at 07:51 PM.

  4. #4
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could always, y'know, take a look for yourself. Crazy idea I know.

    Find an NPC, search for its name in memory, trace it backwards.

  5. #5
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The "UnitName" function is your friend, take a look at it in IDA/Olly.
    Anyway, pszName = [[UnitBaseAddress + 0x970] + 0x3C] // 3.0.9

  6. #6
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Belive me when I say I've tried tracing it in OllyDbg, thanks anyway SKU, will try.

  7. #7
    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 SKU View Post
    The "UnitName" function is your friend, take a look at it in IDA/Olly.
    Anyway, pszName = [[UnitBaseAddress + 0x970] + 0x3C] // 3.0.9
    Unitbase = ?

    Yeah, yeah, flame away.

  8. #8
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JetlagJad View Post
    Unitbase = ?

    Yeah, yeah, flame away.
    it's the pointer to the start of the class of a unit

  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JetlagJad View Post
    Unitbase = ?

    Yeah, yeah, flame away.
    Wtf? Seriously?


  10. #10
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im not suprised

  11. #11
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JetlagJad View Post
    Unitbase = ?

    Yeah, yeah, flame away.

    Seriously, if you don't understand the basics of classes/objects and polymorphism you really shouldn't be reversing WoW....

Similar Threads

  1. [Mac][3.2] Finding the object list & reading object names
    By flukes1 in forum WoW Memory Editing
    Replies: 12
    Last Post: 09-22-2009, 09:47 PM
  2. [Help] Reading Player Names
    By nopz in forum WoW Memory Editing
    Replies: 0
    Last Post: 09-15-2009, 05:59 PM
  3. 3.1.1 Reading Unit Names
    By tanis2000 in forum WoW Memory Editing
    Replies: 9
    Last Post: 05-28-2009, 11:12 AM
  4. [?] Reading Object Name
    By Smarter in forum WoW Memory Editing
    Replies: 4
    Last Post: 04-03-2009, 08:03 PM
  5. Can you read player names out of process?
    By sweeper18 in forum WoW Memory Editing
    Replies: 10
    Last Post: 07-06-2008, 08:54 PM
All times are GMT -5. The time now is 02:04 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