Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


AA code to C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
gavrielsinvani
Cheater
Reputation: 0

Joined: 29 May 2019
Posts: 32

PostPosted: Fri Jun 19, 2020 2:36 pm    Post subject: AA code to C++ Reply with quote

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
View user's profile Send private message
Banjo Patterson
Cheater
Reputation: 1

Joined: 15 May 2018
Posts: 36

PostPosted: Sun Jun 21, 2020 6:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
gavrielsinvani
Cheater
Reputation: 0

Joined: 29 May 2019
Posts: 32

PostPosted: Thu Jun 25, 2020 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Elodia-Bitcoin
How do I cheat?
Reputation: 0

Joined: 23 Jun 2020
Posts: 3

PostPosted: Fri Jun 26, 2020 4:51 am    Post subject: Reply with quote

hey, this is not in c++, is in c# but maybe it can help you to understand little bit how it works Smile
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 Smile

you should try to make a pointer to address that holds X, Y and write FLOAT Smile

HERE IS PICTURE >>>>>>>> postimg.cc/fk2Fk8FR
Back to top
View user's profile Send private message
Arma103
How do I cheat?
Reputation: 0

Joined: 25 Sep 2020
Posts: 6

PostPosted: Fri Sep 25, 2020 5:19 am    Post subject: Re: AA code to C++ Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites