{$lua} if syntaxcheck then return end LaunchMonoDataCollector() [ENABLE] scan = "Terraria.Player::Hurt+DCF" --001 address to scan here registerSymbol("hSub",scan) --002 hsub = register symbol for the scan address mem = allocateMemory(0x1000) registerSymbol("newmem",mem) --003 newmem = new injection memory --your AA Script starts here script = [[ label(return) newmem: //sub [edx+00000340],eax jmp return hSub: jmp newmem nop return: ]] autoAssemble(script) [DISABLE] writeBytes(scan, 0x29, 0x82, 0x40, 0x03, 0x00, 0x00)--the bytes to restore the original code unregisterSymbol("newmem") unregisterSymbol("hSub") deAlloc(mem,0x1000) scan = nil mem = nil