I HATE gamemaker for CE... but anyway, can you make this code properly?
This one works... but with bugs and very poorly optimized...
INSTA MINE/CHOP
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>105583</ID>
<Description>"INSTA MINE/CHOP - DON'T ACTIVATE MANUALLY! Hold "Shift" or "Left Trigger""</Description>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : FieldsOfMistria.exe
Version:
Date : 2024-08-14
Author : Pongossinha
This script does blah blah blah
}
define(address,"FieldsOfMistria.exe"+120F223)
define(bytes,48 89 03 48 8B 9C 24 90 00 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,"FieldsOfMistria.exe"+120F223)
label(code)
label(cody)
label(return)
newmem:
cmp rdx,rdi
jne code
cmp rdx,r12
jne code
cmp rdx,r14
jne code
cmp r10,2
jg code
cmp rcx,0
jne code
cmp rsi,1
jne code
cmp rbp,r9
jne code
cmp r15,r13
jne code
cmp rax,0
je code
cmp [rbx+4],40140000
je cody
cmp [rbx+4],40180000
je cody
cmp [rbx+4],40240000
je cody
cmp [rbx+4],40080000
je cody
jmp code
cody:
mov [rbx+4],0
jmp return
//RAX=3FF0000000000000
//RBX=000001D239F7ECC0
//RCX=0000000000000000
//RDX=000000A75732D9E0
//RSI=0000000000000001
//RDI=000000A75732D9E0
//RBP=0000000080000000
//RSP=000000A75732D4C0
//R8=000001D243FD7300
//R9=0000000080000000
//R10=0000000000000000
//R11=000000A75732D538
//R12=000000A75732D9E0
//R13=FFFFFFFF80000000
//R14=000000A75732D9E0
//R15=FFFFFFFF80000000
//RIP=00007FF65647F226
code:
mov [rbx],rax
mov rbx,[rsp+00000090]
jmp return
address:
jmp newmem
nop 6
return:
[DISABLE]
address:
db bytes
// mov [rbx],rax
// mov rbx,[rsp+00000090]
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: FieldsOfMistria.exe+120F223
FieldsOfMistria.exe+120F203: 74 1B - je FieldsOfMistria.exe+120F220
FieldsOfMistria.exe+120F205: 48 8B D7 - mov rdx,rdi
FieldsOfMistria.exe+120F208: 48 8B CB - mov rcx,rbx
FieldsOfMistria.exe+120F20B: 48 8B 9C 24 90 00 00 00 - mov rbx,[rsp+00000090]
FieldsOfMistria.exe+120F213: 48 83 C4 60 - add rsp,60
FieldsOfMistria.exe+120F217: 41 5F - pop r15
FieldsOfMistria.exe+120F219: 5F - pop rdi
FieldsOfMistria.exe+120F21A: 5E - pop rsi
FieldsOfMistria.exe+120F21B: E9 40 DA FF FF - jmp FieldsOfMistria.exe+120CC60
FieldsOfMistria.exe+120F220: 48 8B 07 - mov rax,[rdi]
// ---------- INJECTING HERE ----------
FieldsOfMistria.exe+120F223: 48 89 03 - mov [rbx],rax
// ---------- DONE INJECTING ----------
FieldsOfMistria.exe+120F226: 48 8B 9C 24 90 00 00 00 - mov rbx,[rsp+00000090]
FieldsOfMistria.exe+120F22E: 48 83 C4 60 - add rsp,60
FieldsOfMistria.exe+120F232: 41 5F - pop r15
FieldsOfMistria.exe+120F234: 5F - pop rdi
FieldsOfMistria.exe+120F235: 5E - pop rsi
FieldsOfMistria.exe+120F236: C3 - ret
FieldsOfMistria.exe+120F237: CC - int 3
FieldsOfMistria.exe+120F238: CC - int 3
FieldsOfMistria.exe+120F239: CC - int 3
FieldsOfMistria.exe+120F23A: CC - int 3
}
</AssemblerScript>
<Hotkeys>
<Hotkey OnlyWhileDown="1">
<Action>Toggle Activation</Action>
<Keys>
<Key>22534</Key>
</Keys>
<ID>0</ID>
</Hotkey>
<Hotkey OnlyWhileDown="1">
<Action>Toggle Activation</Action>
<Keys>
<Key>16</Key>
</Keys>
<ID>1</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
</CheatEntries>
</CheatTable>