how can i get player name? menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    bisfs's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can i get player name?

    in some other's work, they use namemask and namebase offset, and then do some calculation, lastly got an address and use it to get GUID to compare with the player's who we want to get the name.

    pseudo code:
    nameMask nameBase

    some calculate
    ...
    got an address

    while(mem[address] != player.GUI)
    {
    do some address calculate
    }
    palyer.name = mem[address + nameoffset]

    can any one explain those "some address calculate" for me.
    any help would be nice for me.

    CONTEXT:i have known how to get uint's name.
    Last edited by bisfs; 08-06-2014 at 03:31 AM.

    how can i get player name?
  2. #2
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Just use the lua api or revers it. Its really simple And I think if you search you will find a topic just like this.

  3. #3
    bone91's Avatar Contributor
    Reputation
    91
    Join Date
    Feb 2008
    Posts
    157
    Thanks G/R
    17/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm fairly certain the playername is actually a static address. So once you have the process, you just have to search for the name adress in it. In fact, you can easily figure this one out by using CheatEngine.
    If you want to access something that's dependant on the player base, you have to first receive the actual playerbase's address, which is always different. However, the playerbase pointer is static. Therefore if you read a uint of the playerbase pointer, you will receive the actual playerbase address. You can then add thing onto it. For example, playerbase+x = playerHP, playerbase+y = playermaxHP etc.

    In C#, using blackmagic, for the TBC client, this can look like this.
    Code:
    int playerCurrentHP = (int)wow.ReadUInt(wow.ReadUInt(PlayerBase) + 0x2698);
    int playerMaxHP = (int)wow.ReadUInt(wow.ReadUInt(PlayerBase) + 0x26B0);

  4. #4
    bisfs's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    Just use the lua api or revers it. Its really simple And I think if you search you will find a topic just like this.
    for using lua api or those script functions, should i need to inject dll or get lua unlocked?
    because wow and my program are two process and they have individual memory space. so i think i should use those address in wow process.
    i am very new here, and never use those functions before.

    thanks a lot.

  5. #5
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Search ihook or I think it was ohook. That will allow you tocall ingame lua apis externally. And no you dont need an unlocked.

  6. #6
    bisfs's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    Search ihook or I think it was ohook. That will allow you tocall ingame lua apis externally. And no you dont need an unlocked.
    can you give an illustration about how to use this tech to call those apis, and pseudo code is ok.

    GIVEN:script_funcA offset:0xaaaaaa.

  7. #7
    danwins's Avatar Contributor
    Reputation
    189
    Join Date
    Mar 2013
    Posts
    143
    Thanks G/R
    6/62
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bisfs View Post
    can you give an illustration about how to use this tech to call those apis, and pseudo code is ok.

    GIVEN:script_funcA offset:0xaaaaaa.
    iirc ihook/ohook or whatever was just a wrapper for DoString/ExecuteBuffer and GetLocalizedText, you could technically modify it to work with other functions as well but you need to be aware of calling conventions and appropriate stack cleanup.

    you can simply use GetLocalizedText to return the value you want if there's a LUA API call capable of getting the data you need.

    an example would be something like calling Lua_Dostring("varname = GetUnitName("player"));
    then calling GetLocalizedText to retrieve the "varname" arg.

  8. #8
    bisfs's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by danwins View Post
    iirc ihook/ohook or whatever was just a wrapper for DoString/ExecuteBuffer and GetLocalizedText, you could technically modify it to work with other functions as well but you need to be aware of calling conventions and appropriate stack cleanup.

    you can simply use GetLocalizedText to return the value you want if there's a LUA API call capable of getting the data you need.

    an example would be something like calling Lua_Dostring("varname = GetUnitName("player"));
    then calling GetLocalizedText to retrieve the "varname" arg.
    thank you for your reply
    i think i should get some hook tech to study
    Last edited by bisfs; 08-08-2014 at 03:00 AM.

Similar Threads

  1. How can i get more people to join my server properly ?
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-24-2007, 12:15 AM
  2. How can i get account info with secret question?
    By Matador in forum World of Warcraft General
    Replies: 2
    Last Post: 08-23-2007, 12:50 PM
  3. How can I get glider to bandage?
    By lohkies in forum World of Warcraft General
    Replies: 1
    Last Post: 03-26-2007, 10:55 AM
  4. How can I get a transportation?
    By laineter in forum World of Warcraft General
    Replies: 3
    Last Post: 03-01-2007, 08:40 PM
  5. How can i get my screen like this
    By Mike3667 in forum World of Warcraft General
    Replies: 4
    Last Post: 09-09-2006, 07:31 PM
All times are GMT -5. The time now is 09:19 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