GetPing

Mako is insane.
Decennium
Joined
Sep 10, 2007
Messages
968
Reaction score
815
Code:
int GetPing(MUID *uidPlayer)
{
    unsigned int nObj = NULL; 
    int pPing = 0;
    __asm {
        pushad
            mov eax, ZGetGameClientAddr
            call eax
            mov ecx, eax
            push uidPlayer
            call MMatchClient_FindPeerAddr
            mov nObj, eax
            popad
    }
    if(nObj != 0)
    {
        __asm {
            pushad
                mov eax, pZGame
                mov ecx, dword ptr ds:[eax+0x24]
                mov edx, dword ptr ds:[eax+0x28]
                add eax, 0x20
                add edx, ecx
                mov ecx, nObj
                push edx
                call MMatchInfo_GetPingAddr
                mov pPing, eax
                popad
        }
    }
    return pPing;
}

kk
 
Hello! This Structure is for runnable, is dll or xml.? or is C++?

I want to know how to apply this to my client, but not where to put these codes, it will be that anyone can give me the link of a guide here on RaGEZONE would greatly appreciate it. :(:
 
hello! This structure is for runnable, is dll or xml.? Or is c++?

I want to know how to apply this to my client, but not where to put these codes, it will be that anyone can give me the link of a guide here on ragezone would greatly appreciate it. :(:
C++ (dll), you can just add it as commande like /ping <username>. The /ping get uid from username then applying it on GetPing function and result to a chatoutput... Before all that you'll need to find right offsets. But i think it will be hard for you because you just don't know how programming.
 
Last edited:
C++ (dll), you can just add it as commande like /ping <username>. The /ping get uid from username then applying it on GetPing function and result to a chatoutput... Before all that you'll need to find right offsets. But i think it will be hard for you because you just don't know how programming.
Or add to the game-tab
 
Code:
int GetPing(MUID *uidPlayer)
{
    unsigned int nObj = NULL; 
    int pPing = 0;
    __asm {
        pushad
            mov eax, ZGetGameClientAddr
            call eax
            mov ecx, eax
            push uidPlayer
            call MMatchClient_FindPeerAddr
            mov nObj, eax
            popad
    }
    if(nObj != 0)
    {
        __asm {
            pushad
                mov eax, pZGame
                mov ecx, dword ptr ds:[eax+0x24]
                mov edx, dword ptr ds:[eax+0x28]
                add eax, 0x20
                add edx, ecx
                mov ecx, nObj
                push edx
                call MMatchInfo_GetPingAddr
                mov pPing, eax
                popad
        }
    }
    return pPing;
}

kk

this is for 2007 files
and for client? or server?
 
Back