This is a patch for the "Stage Hack"
Code:#include <windows.h> #include <iostream> #include "Functions.h" #include "Structures.h" #include "Detour/CDetour.h" char sBuffer[4096]; DWORD OnStageCreate = 0x0045EEF0; CDetour OnStageCreateDet; void __stdcall OnStageCreateHook(struct MUID &uidChar, char *sStagename, bool bIsPrivate, char *sPassword){ unsigned long uHighID; _asm { MOV EAX, DWORD PTR DS:[ESI+0x0C] MOV uHighID, EAX } if (uidChar.uHighID != uHighID) { OnStageCreateDet.Ret(false); MUID uidHacker; uidHacker.uLowID = 0; uidHacker.uHighID = uHighID; sprintf(sBuffer, "[%u-%u] (%s) has attempted to create a stage for [%u-%u] (%s).", uidHacker.uLowID, uidHacker.uHighID, GetPlayerName(uidHacker), uidChar.uLowID, uidChar.uHighID, GetPlayerName(uidChar)); WriteMatchServerLog(sBuffer); sprintf(sBuffer, "UPDATE Account SET UGradeID = 253, PGradeID = 253 WHERE AID = %i", GetPlayerAID(uidHacker)); ExecQuery(sBuffer); DisconnectPlayer(uidHacker); } } bool WINAPI DllMain(HMODULE hModule, DWORD dwReason, PVOID pvReserved) { if(dwReason == DLL_PROCESS_ATTACH) { OnStageCreateDet.Detour((BYTE*)OnStageCreate, (BYTE*)OnStageCreateHook, true); OnStageCreateDet.Apply(); } return true; }
Download Stage Patch.rar - Copyright Stroumpf
EDIT: Download StagePatch.dll - Copyright Stroumpf



Reply With Quote


