GetName Function.

Results 1 to 7 of 7
  1. #1
    Enthusiast eduardo03 is offline
    MemberRank
    Feb 2011 Join Date
    36Posts

    happy GetName Function.

    Well, I'm trying make a function to get name, but I only managed to get name inside of stage.
    Can someone help me?


    Edit:

    I'm using 2008 July 21 version files.
    Vusion are you correct. I did a method but this works just inside stage.
    I need help. =/
    Last edited by eduardo03; 25-01-12 at 09:21 PM.


  2. #2
    Enthusiast Stahlix is offline
    MemberRank
    May 2011 Join Date
    43Posts

    Re: GetName Function.

    Could you be a little more specific? Where are you trying to use the function and are you sure you can't use the existing ones? File and function name you're trying to use it in?

  3. #3
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: GetName Function.

    Quote Originally Posted by Stahlix View Post
    Could you be a little more specific? Where are you trying to use the function and are you sure you can't use the existing ones? File and function name you're trying to use it in?
    He wants someone to help him code a function that when he calls it, it would return the current character name.

  4. #4
    Enthusiast Stahlix is offline
    MemberRank
    May 2011 Join Date
    43Posts

    Re: GetName Function.

    Quote Originally Posted by Vusion View Post
    He wants someone to help him code a function that when he calls it, it would return the current character name.
    Yeah, but I meant more like which version of gunz does he use/is he using the 2011 source since if he's using the 2011 source there's plenty of functions already implemented to get the character name.

  5. #5
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: GetName Function.

    Lets say 'Character info', if yes look at freebase source you will get awesome things from there and one of them GetCharName..

  6. #6
    Enthusiast eduardo03 is offline
    MemberRank
    Feb 2011 Join Date
    36Posts

    Re: GetName Function.

    And, which the address of 2008 version?

  7. #7
    Apprentice Pacifidlog is offline
    MemberRank
    Dec 2011 Join Date
    23Posts

    Re: GetName Function.

    Sorry I don't have the 2008 Runnable, but the way I did it for ijji's NA Gunz is:
    Code:
    char *GetCharacterName(DWORD ZCharacter) //IJJI Gunz - January 25, 2012
    {
     return (char*)(**(DWORD**)(ZCharacter + 0x578) - *(DWORD*)(ZCharacter + 0x578) - 0x66D6);
    } //This is IN-GAME only, not game room or lobby.
    // Also, the one from Snail's Freebase source is basically the same as this one.. IN-GAME.
    To get YOUR character name outside a game, in game room or lobby, you can find the instance to the ZMyInfo class and you will see in the Gunz 1.5 Source that was released, that your character name is a member of that class.

    To get other players' character name outside of a game, in game room or lobby, you could probably look for something related to the Player List Box, not really sure.



Advertisement