Gamers.F How do I cheat?
Reputation: 0
Joined: 09 Oct 2024 Posts: 4
|
Posted: Tue Oct 15, 2024 12:06 am Post subject: How to hook address? |
|
|
Recently I'm researching on how to hook an address in a game.
But I'm not sure how to script it in Lua, below is the example in C++
Code: | ULONG enterCSAddr = 0x00A04DCA;
ULONG exitCSAddr = 0x0047C108;
typedef void(__stdcall *pfnCWvsContext__SendMigrateToShopRequest)(PVOID, PVOID, int); // Enters Cash Shop
auto CWvsContext__SendMigrateToShopRequest = reinterpret_cast<pfnCWvsContext__SendMigrateToShopRequest>(enterCSAddr);
typedef void(__stdcall *pfnCCashShop__SendTransferFieldPacket)(); // Exits Cash Shop
auto CCashShop__SendTransferFieldPacket = reinterpret_cast<pfnCCashShop__SendTransferFieldPacket>(exitCSAddr); |
Do I need ffi in order to do it?
|
|