Find Offset DWORD FindOffset(char *String, DWORD Pos, bool PointerFunc) { static char search[6] = "\x68\x00\x00\x00\x00"; DWORD Clear = Hacks.FindPattern(Base_CShellDLL, GetFileSize("CShell.dll", 0), (PBYTE)String, String); if (Clear) { *(DWORD*)(search + 1) = Clear; DWORD loc = Hacks.FindPattern(Base_CShellDLL, GetFileSize("CShell.dll", 0), (PBYTE)search, "xxxxx"); if (loc) { return *(DWORD*)(loc + Pos) + PointerFunc * (loc + Pos + 4); } } return NULL; } Someone can help me how to use this ??? I've try with this: DWORD Addy_Reload1 = FindOffset("ReloadAnimRatio", 0xC647A4, false); DWORD Addy_Reload2 = FindOffset("ReloadAnimRatio", 0xC647A4, true); The Addy1 is 0 and Addy2 is not like what i found by ollydebug Someone help me how to use this function
Originally Posted by Nemo[4ever] Someone can help me how to use this ??? I've try with this: The Addy1 is 0 and Addy2 is not like what i found by ollydebug Someone help me how to use this function This is a litel code (not the full one) for a find Pattern Scan. Search for "Pattern Scan"
do you mean this?? bool cHacks::bCompare(const BYTE *pData, const BYTE *bMask, const char *szMask) { for (; *szMask; ++szMask, ++pData, ++bMask) { if (*szMask == 'x' && *pData != *bMask) return 0; } return *szMask == NULL; } DWORD cHacks::FindPattern(DWORD dwStartAddress, DWORD dwSize, BYTE *bMask, char *szMask) { for (DWORD i = 0; i < dwSize; i++) { if (bCompare((BYTE*)(dwStartAddress + i), bMask, szMask)) return (DWORD)(dwStartAddress + i); } return NULL; }
Originally Posted by Ryzz @Nemo[4ever] read this carefully it will help you Let me google that for you u r right
you think i'm noob??? Her so you don't know who am i... No problem, if you don't help just don't type anything in here. You want to joke other people??? Go home and joke with your mother