rendered paste body#ifndef _PATCH_H
#define _PATCH_H
PatchHook pHooks[] =
{
////1.13D
{PatchBytes, GetDllOffset("D2Client.dll", 0x2ACA7), 0x01, 1}, //Updated 1.13d //6FADACA7-BASE
{PatchBytes, GetDllOffset("D2Client.dll", 0xA74C4), 0xEB, 1}, //Updated 1.13d //6FB574C4-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x276B0), (DWORD)GameLoop_STUB, 6}, //Updated 1.13d //6FAD76B0-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0x1D7B4), (DWORD)GameDraw_STUB, 6}, //Updated 1.13d //6FACD7B4-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0x73469), (DWORD)GameDrawAutomapInfo_STUB, 5}, //Updated 1.13d //6FB23469-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x72FA9), (DWORD)GameDrawUnitBlob_STUB,5}, //Updated 1.13d //6FB22FA9-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x87FDD), (DWORD)GameDrawPartyName_STUB ,5}, //Updated 1.13d //6FB37FDD-BASE
{PatchJmp, GetDllOffset("D2Client.dll", 0xD13C), (DWORD)SendPacketIntercept_STUB, 6}, //Updated 1.13d //6FABD13C-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x83301), (DWORD)ReceivePacketIntercept_STUB, 5}, //Updated 1.13d //6FB33301-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x96736), (DWORD)GameItemName_STUB,6}, //Updated 1.13d //6FB46736-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0xB5FA6), (DWORD)ShakeSTUB, 6}, //Updated 1.13d //6FB65FA6-BASE //Correct
{PatchCall, GetDllOffset("D2Client.dll", 0x452F2), (DWORD)GameShake, 5}, //Updated 1.13d //6FAF52F2-BASE //Correct
{PatchCall, GetDllOffset("D2Client.dll", 0xB2342), (DWORD)GameInput_Interception, 5}, //Updated 1.13d //6FB62342-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x48F80), (DWORD)CreateMissile_STUB,5}, //Updated 1.13d //6FAF8F80-BASE
{PatchCall, GetDllOffset("D2Client.dll", 0x23397), (DWORD)GameLightRadius_STUB, 5}, //Updated 1.13d //6FAD3397-BASE
{PatchCall, GetDllOffset("D2Multi.dll", 0xADAB), (DWORD)NextGameNamePatch, 5}, //Updated 1.13d
{PatchCall, GetDllOffset("D2Multi.dll", 0xADE6), (DWORD)NextGamePasswordPatch, 5},//Updated 1.13d
{PatchCall, GetDllOffset("D2Multi.dll", 0xB5E9), (DWORD)NextGameNamePatch, 5},//Updated 1.13d
{PatchCall, GetDllOffset("D2Multi.dll", 0xB6BC), (DWORD)NextGamePasswordPatch, 5}, //Updated 1.13d
{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x727B3), (DWORD)AddShrine_STUB, 6}, //Updated 1.13d //6FB227B3-BASE
{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x70FAA), (DWORD)AutomapCells, 5}, //Updated 1.13d //6FB20FAA-BASE
{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x71ED4), (DWORD)OverrideShrine_STUB, 7}, //Updated 1.13d //6FB21ED4-BASE
{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x1D4A1), (DWORD)DrawEnteringLevelText_STUB, 5}, //Updated 1.13d //6FACD4A1-BASE
{PatchJmp, GetDllOffset("D2COMMON.DLL", 0x30C96), (DWORD)WeatherSTUB, 5,}, //Updated 1.13d //6FD80C96-BASE
//1.13C
//{PatchBytes, GetDllOffset("D2Client.dll", 0x1B7A7), 0x01, 1},
//{PatchBytes, GetDllOffset("D2Client.dll", 0x3E8E4), 0xEB, 1},
//{PatchCall, GetDllOffset("D2Client.dll", 0x3CB20), (DWORD)GameLoop_STUB, 6},
//{PatchJmp, GetDllOffset("D2Client.dll", 0xC3DB4), (DWORD)GameDraw_STUB, 6},
//{PatchJmp, GetDllOffset("D2Client.dll", 0x626C9), (DWORD)GameDrawAutomapInfo_STUB, 5},
//{PatchCall, GetDllOffset("D2Client.dll", 0x61B49), (DWORD)GameDrawUnitBlob_STUB,5},
//{PatchCall, GetDllOffset("D2Client.dll", 0x7692D), (DWORD)GameDrawPartyName_STUB ,5},
//{PatchJmp, GetDllOffset("D2Client.dll", 0xD252), (DWORD)SendPacketIntercept_STUB, 6},
//{PatchCall, GetDllOffset("D2Client.dll", 0xACE61), (DWORD)ReceivePacketIntercept_STUB, 5},
//{PatchCall, GetDllOffset("D2Client.dll", 0x92366), (DWORD)GameItemName_STUB,6},
//{PatchCall, GetDllOffset("D2Client.dll", 0x8B096), (DWORD)ShakeSTUB, 6},
//{PatchCall, GetDllOffset("D2Client.dll", 0x442A2), (DWORD)GameShake, 5},
//{PatchCall, GetDllOffset("D2Client.dll", 0x70B75), (DWORD)GameInput_Interception, 5},
//{PatchCall, GetDllOffset("D2Client.dll", 0xA3030), (DWORD)CreateMissile_STUB,5},
//{PatchCall, GetDllOffset("D2Client.dll", 0xA9A27), (DWORD)GameLightRadius_STUB, 5},
//{PatchCall, GetDllOffset("D2Multi.dll", 0x14A0B), (DWORD)NextGameNamePatch, 5},
//{PatchCall, GetDllOffset("D2Multi.dll", 0x14A46), (DWORD)NextGamePasswordPatch, 5},
//{PatchCall, GetDllOffset("D2Multi.dll", 0x14D29), (DWORD)NextGameNamePatch, 5},
//{PatchCall, GetDllOffset("D2Multi.dll", 0x14D64), (DWORD)NextGamePasswordPatch, 5},
//{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x61D83), (DWORD)AddShrine_STUB, 6},
//{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x604EA), (DWORD)AutomapCells, 5},
//{PatchCall, GetDllOffset("D2CLIENT.DLL", 0x61354), (DWORD)OverrideShrine_STUB, 7},
//{PatchCall, GetDllOffset("D2CLIENT.DLL", 0xC3AA1), (DWORD)DrawEnteringLevelText_STUB, 5},
//{PatchJmp, GetDllOffset("D2COMMON.DLL", 0x6CCB6), (DWORD)WeatherSTUB, 5,},
};
#endif