Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Gunz Ingame HP and AP Displayer

Newbie Spellweaver
Joined
Jan 25, 2010
Messages
71
Reaction score
0
Hey Ragezone

I'm aware that there is a way to modify theduel so that when you press f9, your hp and ap is displayed, how do i achieve this, with out an injector
:?:
 
Joined
Apr 18, 2010
Messages
674
Reaction score
393
Hey Ragezone

I'm aware that there is a way to modify theduel so that when you press f9, your hp and ap is displayed, how do i achieve this, with out an injector
:?:

Um, there are a few ways.
1) Through Assembly
2) A C++ Dll
Code:
typedef void( __cdecl* ZChatOutputType ) ( const char*, int, int, DWORD );
ZChatOutputType ZChatOutput = (ZChatOutputType)0x0042A230; //Valid for '07 files

DWORD* dwCharacter = (DWORD*)0x00; //Find on your own
DWORD GetHPAddr = 0x00; //Find on your own

DWORD pCharacter( ) //valid for '07 files
{
    if( dwCharacter != NULL && *dwCharacter != NULL )
        return *(DWORD*) ( *dwCharacter + 0x50 );

    return NULL;
}

int GetHP( )
{
    int nHP;
    __asm
    {
        MOV ECX, EAX
        CALL GetHPAddr
        MOV nHP, EAX
    }
    return nHP;
}

void MainThread( void )
{
    for( ;;Sleep( 20 ) )
    {
        if( pCharacter( ) )
        {
            if( GetAsyncKeyState( VK_F9 )&0x8000 )
            {
                char szBuffer[60];
                sprintf_s( szBuffer, "HP: %i", GetHP( ) );
                ZChatOutput( szBuffer, 2, 0, 0xFFFFF );
                Sleep( 500 );
            }
        }
    }
}

//And the Dll entry point, do it on your own.
//I done this from memory, so yeah watch out.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Jan 25, 2010
Messages
71
Reaction score
0
Ok i like that better help me with the first way then please.
 
Upvote 0
Supreme Arcanarch
Loyal Member
Joined
Sep 7, 2008
Messages
972
Reaction score
81
Ok i like that better help me with the first way then please.

Just search for gunzexp.dll made by GUNZ2830 (search bar).
In the tutorial section are alot ways of how to auto inject a dll.
That's all.
 
Upvote 0
Supreme Arcanarch
Loyal Member
Joined
Sep 7, 2008
Messages
972
Reaction score
81
You could also make a dll with d3d drawing functions that will call info from zcharacter and output your current HP/AP in real time in your HP/AP bars. When I took over LG we had this :p

D3D is far to complex, I've never understood how to use it.
 
Upvote 0
Joined
Apr 18, 2010
Messages
674
Reaction score
393
Ok i like that better help me with the first way then please.

Um, no. Look at tutorials for x86 Assembly and C++, then try to merge the C++ code to a custom function in Gunz.

You could also make a dll with d3d drawing functions that will call info from zcharacter and output your current HP/AP in real time in your HP/AP bars. When I took over LG we had this :p

It is a good idea, cerealnp did the same thing but I don't think he ever released it. I would personally do this, but for my next project I need to learn and use SDL w/ OpenGL. =\
 
Upvote 0
Newbie Spellweaver
Joined
Jun 23, 2010
Messages
68
Reaction score
4
Do you mean this

With Direct3D.



I can give you some addresses:
Code:
ZCharacter Class
----------------

ZCharacter::PositionEncrypter : 0x00402BA0
ZCharacter::Die               : 0x00473770
ZCharacter::SetHP             : 0x00473750
ZCharacter::SetAP             : 0x00473760
ZCharacter::GetHP             : 0x00473730
ZCharacter::GetAP             : 0x00473740
ZCharacter::InitHPAP          : 0x00474950
ZCharacter::LevelUp           : 0x00473970
ZCharacter::LevelDown         : 0x00473980
ZCharacter::SetDirection      : 0x00473780
ZCharacter::InitProperties    : 0x00474B70
ZCharacter::IsAdminName       : 0x00473920
ZCharacter::ActDead           : 0x00477530
ZCharacter::UpdateSpWeapon    : 0x004761A0
ZCharacter::Destroy           : 0x004750A0
ZCharacter::InitRound         : 0x00475250
ZCharacter::InitBullet        : 0x00000000
ZCharacter::IsAttackable      : 0x004739E0
ZMyCharacter::InitBullet      : 0x0047D890
Credits to whoever made it =P.

The percentage thingie is a great idea, I'm gonna think about it.
Thanks!

Direct Link: http://forum.ragezone.com/f496/ingame-hp-ap-displayer-624249/
 
Upvote 0
Back
Top