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 


How to use this AA script in C#?

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

Joined: 11 Jun 2013
Posts: 547

PostPosted: Fri Oct 11, 2013 11:39 am    Post subject: How to use this AA script in C#? Reply with quote

Hi , So i just started learning C# and i done some stuff like database connections , reading bytes writing bytes some other stuff but i wanna know how this simple AA would look like in C# ? specially the aobscan with wildcards , Thanks .

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
aobscan(sHealth,89 87 34 01 00 00 ?? ?? 00 00 00 8D 65 FC)
registersymbol(sHealth)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [edi+00000134],#200
exit:
jmp returnhere
sHealth:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
sHealth:
mov [edi+00000134],eax
//Alt: db 89 87 34 01 00 00
unregistersymbol(sHealth)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Mon Oct 14, 2013 5:59 pm    Post subject: Reply with quote

You could look into using managed FASM:
https://github.com/ZenLulz/Fasm.NET

As for array of byte scanning, check out my old post from here:
http://www.gamedeception.net/index.php?threads/findpattern-in-c.14470/

You can use WriteProcessMemory to write the raw instruction bytes as well.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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