Biosupremacy write MAX to Address

Kalas

Cat'n America!
Fearless Donors
Mar 3, 2017
499
28
28
#1
Hello,

I found out that at offset of 18 the value of 100 is the MAX Stamina,
How can I write a Script so it will write 100 always to my Stamina?

This is the Script without modifications:
Code:
[ENABLE]

aobscan(aobStaminaMAX,ERROR: Could not find unique AOB, tried code "F3 0F 11 68 1C")
alloc(newmem,$100,15A60EA5)

label(code)
label(return)

newmem:

code:
  movss [rax+1C],xmm5
  jmp return

aobStaminaMAX+B20268:
  jmp newmem
return:
registersymbol(aobStaminaMAX)

[DISABLE]

aobStaminaMAX+B20268:
  db F3 0F 11 68 1C

unregistersymbol(aobStaminaMAX)
dealloc(newmem)
Also, how do I add more Array of bytes, any tutorials about that please?
 

++METHOS

Expert Cheater
Mar 2, 2017
201
1
18
#2
Assuming current stamina is at [rax+1C] and the original instruction is not accessing any other addresses:
newmem:
movss xmm5,[rax+18]

code:
movss [rax+1C],xmm5
jmp return
 
Top Bottom