|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
gavrielsinvani Cheater Reputation: 0
Joined: 29 May 2019 Posts: 32
|
Posted: Fri Jun 19, 2020 2:36 pm Post subject: AA code to C++ |
|
|
hey i need help please, i want convert it's script to C++ ,
function with parameters x , y .
Anyone please ??
Code: | [ENABLE]
Alloc(addyy,32)
Alloc(addxx,32)
Label(goyy)
Label(goxx)
addyy:
mov [edi],#323 //X
mov ebx,[ebp+14]
jmp goyy
addxx:
mov [ebx],#484 //Y
mov edi,[ebp+10]
jmp goxx
009B6352:
jmp addyy
goyy:
009B62ED:
jmp addxx
goxx:
[DISABLE]
009B6352:
mov [edi],eax
mov ebx,[ebp+14]
009B62ED:
mov [ebx],eax
mov edi,[ebp+10]
Dealloc(addyy)
Dealloc(addxx) |
|
|
Back to top |
|
|
Banjo Patterson Cheater Reputation: 1
Joined: 15 May 2018 Posts: 36
|
Posted: Sun Jun 21, 2020 6:45 pm Post subject: |
|
|
You can write the equivelant C++ code for these instructions but it wouldn't be of much use in a standalone function without knowing the pointers / data the function would need to be referring to.
What is your goal for this one, maybe that'll help us arrive at something?
|
|
Back to top |
|
|
gavrielsinvani Cheater Reputation: 0
Joined: 29 May 2019 Posts: 32
|
Posted: Thu Jun 25, 2020 7:06 pm Post subject: |
|
|
Banjo Patterson wrote: | You can write the equivelant C++ code for these instructions but it wouldn't be of much use in a standalone function without knowing the pointers / data the function would need to be referring to.
What is your goal for this one, maybe that'll help us arrive at something? |
This code has 2 lines that are basically the x, y of the location,
I want to convert this code to C ++ with the option to change the X, Y, just like a function,
CSEAX (x, y);
I have a trainer that has ASM code, but I have no idea how to specifically convert that code,
Can you please help me?
|
|
Back to top |
|
|
Elodia-Bitcoin How do I cheat? Reputation: 0
Joined: 23 Jun 2020 Posts: 3
|
Posted: Fri Jun 26, 2020 4:51 am Post subject: |
|
|
hey, this is not in c++, is in c# but maybe it can help you to understand little bit how it works
i am using some old library called black magic, and it has methods to write your own ASM code
in this picture you will see how i inject a custome code, and create my own custom bool since the instruction share both dices
maybe with a pointer will be much more easier for me and you, but is more so you can understand how to control the ASM
you should try to make a pointer to address that holds X, Y and write FLOAT
HERE IS PICTURE >>>>>>>> postimg.cc/fk2Fk8FR
|
|
Back to top |
|
|
Arma103 How do I cheat? Reputation: 0
Joined: 25 Sep 2020 Posts: 6
|
Posted: Fri Sep 25, 2020 5:19 am Post subject: Re: AA code to C++ |
|
|
gavrielsinvani wrote: | hey i need help please, i want convert it's script to C++ ,
function with parameters x , y .
Anyone please ??
Code: | [ENABLE]
Alloc(addyy,32)
Alloc(addxx,32)
Label(goyy)
Label(goxx)
addyy:
mov [edi],#323 //X
mov ebx,[ebp+14]
jmp goyy
addxx:
mov [ebx],#484 //Y
mov edi,[ebp+10]
jmp goxx
009B6352:
jmp addyy
goyy:
009B62ED:
jmp addxx
goxx:
[DISABLE]
009B6352:
mov [edi],eax
mov ebx,[ebp+14]
009B62ED:
mov [ebx],eax
mov edi,[ebp+10]
Dealloc(addyy)
Dealloc(addxx) |
|
addyy and addxx changes into function with parameter x&y.
|
|
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
|
|