aboutsummaryrefslogtreecommitdiff
path: root/Patcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Patcher.cpp')
-rw-r--r--Patcher.cpp21
1 files changed, 20 insertions, 1 deletions
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<char>(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<char>(0x90);
+
+ // NPC attack animation when turning
+ wow_exe.clear();
+ wow_exe.seekg(0);
+ wow_exe.seekp(0x33D7C9);
+ wow_exe << static_cast<char>(0xEB);
+
+ // "ghost" attack when NPC evades from combat
+ wow_exe.clear();
+ wow_exe.seekg(0);
+ wow_exe.seekp(0x355BF);
+ wow_exe << static_cast<char>(0xEB);
+
std::cout << "World of Warcraft exe has been patched!\n";
return 0;
}