|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
AlNexus How do I cheat? Reputation: 0
Joined: 30 Sep 2018 Posts: 3
|
Posted: Sun Sep 30, 2018 9:59 am Post subject: Number between X - Y |
|
|
I want to make it add a number between X and Y, (AOB Injection) like:
add [edx+00000340],(here, it's going to be a number between 10 and 20)
Is there any way to do it?
I'm a beginner and I don't know anything about these things, so please explain.
Here's the script
Code: | { Game : Terraria.exe
Version:
Date : 2018-06-28
Author : Xavier
This script does blah blah blah
}
[ENABLE]
aobscan(Healthy,29 82 40 03 00 00 83) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
add [edx+00000340],eax
jmp return
Healthy:
jmp newmem
nop
return:
registersymbol(Healthy)
[DISABLE]
Healthy:
db 29 82 40 03 00 00
unregistersymbol(Healthy)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 11EE1C96
""+11EE1C70: 0F B6 45 0C - movzx eax,byte ptr [ebp+0C]
""+11EE1C74: 50 - push eax
""+11EE1C75: 6A 00 - push 00
""+11EE1C77: F2 0F 10 45 E0 - movsd xmm0,[ebp-20]
""+11EE1C7C: F2 0F 2C D0 - cvttsd2si edx,xmm0
""+11EE1C80: 8B CE - mov ecx,esi
""+11EE1C82: E8 69 BA D4 FF - call 11C2D6F0
""+11EE1C87: F2 0F 10 45 E0 - movsd xmm0,[ebp-20]
""+11EE1C8C: F2 0F 2C C0 - cvttsd2si eax,xmm0
""+11EE1C90: 8B 95 08 FE FF FF - mov edx,[ebp-000001F8]
// ---------- INJECTING HERE ----------
""+11EE1C96: 29 82 40 03 00 00 - sub [edx+00000340],eax
// ---------- DONE INJECTING ----------
""+11EE1C9C: 83 7D 08 FF - cmp dword ptr [ebp+08],-01
""+11EE1CA0: 0F 85 95 00 00 00 - jne 11EE1D3B
""+11EE1CA6: 8B 85 08 FE FF FF - mov eax,[ebp-000001F8]
""+11EE1CAC: C6 80 51 05 00 00 01 - mov byte ptr [eax+00000551],01
""+11EE1CB3: DD 45 E0 - fld qword ptr [ebp-20]
""+11EE1CB6: D9 E8 - fld1
""+11EE1CB8: DF F1 - fcomip st(0),st(1)
""+11EE1CBA: DD D8 - fstp st(0)
""+11EE1CBC: 7A 30 - jp 11EE1CEE
""+11EE1CBE: 75 2E - jne 11EE1CEE
} |
I'm new to the forum...
_________________
Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy's first law of Equivalent Exchange. In those days, we really believed that to be the world's one, and only truth. |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sun Sep 30, 2018 10:23 am Post subject: |
|
|
are you asking for a random number? or you meant if EAX is > 10 and EAX < 20 then add it?
or ...
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
AlNexus How do I cheat? Reputation: 0
Joined: 30 Sep 2018 Posts: 3
|
Posted: Sun Sep 30, 2018 10:50 am Post subject: |
|
|
OldCheatEngineUser wrote: | are you asking for a random number? or you meant if EAX is > 10 and EAX < 20 then add it?
or ... |
> 10 and EAX < 20, yes. Please help
_________________
Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy's first law of Equivalent Exchange. In those days, we really believed that to be the world's one, and only truth. |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sun Sep 30, 2018 11:10 am Post subject: |
|
|
Code: | newmem:
cmp eax,0A
jae @F
jmp return
@@:
cmp eax,14
jbe code
jmp return |
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
AlNexus How do I cheat? Reputation: 0
Joined: 30 Sep 2018 Posts: 3
|
Posted: Sun Sep 30, 2018 11:13 am Post subject: |
|
|
OldCheatEngineUser wrote: | Code: | newmem:
cmp eax,0A
jae @F
jmp return
@@:
cmp eax,14
jbe code
jmp return |
|
Thank you! Keep the good work, you're amazing.
Have a good day.
_________________
Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy's first law of Equivalent Exchange. In those days, we really believed that to be the world's one, and only truth. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|