- 9
- 2
Please, help me. Lua to Asi.
Код:
local memory = require 'memory'
function main()
wait(-1)
end
function patch()
if memory.getuint8(0x748C2B) == 0xE8 then
memory.fill(0x748C2B, 0x90, 5, true)
elseif memory.getuint8(0x748C7B) == 0xE8 then
memory.fill(0x748C7B, 0x90, 5, true)
end
if memory.getuint8(0x5909AA) == 0xBE then
memory.write(0x5909AB, 1, 1, true)
end
if memory.getuint8(0x590A1D) == 0xBE then
memory.write(0x590A1D, 0xE9, 1, true)
memory.write(0x590A1E, 0x8D, 4, true)
end
if memory.getuint8(0x748C6B) == 0xC6 then
memory.fill(0x748C6B, 0x90, 7, true)
elseif memory.getuint8(0x748CBB) == 0xC6 then
memory.fill(0x748CBB, 0x90, 7, true)
end
if memory.getuint8(0x590AF0) == 0xA1 then
memory.write(0x590AF0, 0xE9, 1, true)
memory.write(0x590AF1, 0x140, 4, true)
end
end
patch()