I'm attempting to get a player's CID from the MMatchObject class (MMatchObject->MMatchCharInfo).
I've reversed it, however, I'm getting garbage data from the code below:
Code:unsigned long GetCharCID(const struct MUID &uidObject) { unsigned long CID = 0; __asm { pushad mov eax, MMATCHSERVER_GETINSTANCE call eax mov ecx, eax push uidObject mov eax, MMATCHSERVER_GETOBJECTA call eax mov eax, dword ptr ds:[eax+0x58] mov CID, eax popad } return CID; }


Reply With Quote


