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 


Some help please

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Auto Assembler tutorials
View previous topic :: View next topic  
Author Message
souleaper
Newbie cheater
Reputation: 0

Joined: 08 Jul 2012
Posts: 22

PostPosted: Thu Apr 11, 2019 4:27 pm    Post subject: Some help please Reply with quote

Hi,
I am trying to call this eat medicine function. ESI and EDX holds the item id.
I am guessing call loginp.exe+40AE2C is the item usage function.



Code:
[enable]
alloc(mycode,4096)
CREATETHREAD(mycode);

mycode:
push C8
push 11
mov edx, 6D90
mov eax,[loginp.exe+19475A8]
call loginp.exe+40AE2C

[disable]


I am bad at asm. Can this work? I tried but it doesn't do anything. At least the game doesn't crash.

Thanks. Appreciate any feedback.
Back to top
View user's profile Send private message
Vortexian
How do I cheat?
Reputation: 0

Joined: 18 Jul 2018
Posts: 2

PostPosted: Fri Jun 14, 2019 6:46 pm    Post subject: Reply with quote

So, you've done *almost* all of this right. When you're creating your own functions / calling them in allocated memory, you ALWAYS need a "ret" at the very end. So you'll just add a
Code:
ret
below
Code:
call loginp.exe+40AE2C
and it should work.
_________________
im kinda edgy
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 Tutorials -> Auto Assembler tutorials 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