From 91148e23e82ce7a70c98c27a49bf8144e27a106c Mon Sep 17 00:00:00 2001 From: robinsch Date: Fri, 24 Nov 2023 11:19:53 +0100 Subject: Added: melee swing on right-click, NPC attack animation when turning, "ghost" attack when NPC evades from combat --- Patcher.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Patcher.cpp') diff --git a/Patcher.cpp b/Patcher.cpp index c37c631..d0d75d1 100644 --- a/Patcher.cpp +++ b/Patcher.cpp @@ -22,10 +22,29 @@ int main(int argc, char** argv) return 1; } - // replace binary in exe (offset: 0xE94) + // windowed mode to full screen wow_exe.seekp(0xE94); wow_exe << static_cast(0xEB); + // melee swing on right-click + wow_exe.clear(); + wow_exe.seekg(0); + wow_exe.seekp(0x2E1C67); + for (size_t i = 0; i < 11; ++i) + wow_exe << static_cast(0x90); + + // NPC attack animation when turning + wow_exe.clear(); + wow_exe.seekg(0); + wow_exe.seekp(0x33D7C9); + wow_exe << static_cast(0xEB); + + // "ghost" attack when NPC evades from combat + wow_exe.clear(); + wow_exe.seekg(0); + wow_exe.seekp(0x355BF); + wow_exe << static_cast(0xEB); + std::cout << "World of Warcraft exe has been patched!\n"; return 0; } -- cgit v1.2.3