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 


Convert AAA script TO C+++ Scirpt

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Yu-Haxxx
How do I cheat?
Reputation: 0

Joined: 17 Aug 2016
Posts: 8
Location: dddd

PostPosted: Fri Aug 19, 2016 4:51 am    Post subject: Convert AAA script TO C+++ Scirpt Reply with quote

Code:

[ENABLE]
alloc(temp,4069)
createthread(temp)
temp:
mov eax,[game.dll+122BC9C]
push [ebp+08]
push string.dll+B33EB
mov esi,[eax]
call game.dll+523150
mov ecx,[game.dll+122BC9C]
add esp,08
push eax
push 00
call game.dll+223110
ret


ANy HElp?

_________________
ddddd
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Aug 19, 2016 5:20 am    Post subject: Reply with quote

It's actually pretty easy

alloc should VirtualAlloc(EX)
createthread(temp) should be CreateThread()

the rest of it is just modifying game code/offsets. You can either grab the bytes and do a WriteProcessMemory() or do inline asm.

I don't remember if Visual Studio allowed inline asm in 32-bit or not, my memory's kind of hazy (it was 3 or 4 years ago), it definitely didn't for 64-bit without some work-around. But you can use the embercardo's c++ (aka borland's c++), they support inline-asm. Their delphi compiler does so i am pretty sure c++ too.

If all of this sounds too complicated then i suggest learning c++ from scratch. You can't take shortcuts with c++ and even if someone spoon feeds you, you won't go far.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Fri Aug 19, 2016 5:34 am    Post subject: Reply with quote

STN wrote:

createthread(temp) should be CreateThread()


CreateRemoteThread : https://msdn.microsoft.com/en-us/library/windows/desktop/ms682437(v=vs.85).aspx

You'll find many tutorials on the web that will show you how to write data to an area of memory of another process.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Aug 19, 2016 5:48 am    Post subject: Reply with quote

Oops...i use it within my dll all the time, totally forgot the Remote variant for other processes.

Thanks for the correction Very Happy

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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