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 


Solved Tx a Zanzer

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

Joined: 01 Mar 2017
Posts: 7

PostPosted: Sun Dec 10, 2017 3:46 pm    Post subject: Solved Tx a Zanzer Reply with quote

SOLVED thanks to Zanzer

Last edited by FIRESKY on Sun Dec 10, 2017 8:34 pm; edited 4 times in total
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 122

Joined: 09 Jun 2013
Posts: 3279

PostPosted: Sun Dec 10, 2017 5:42 pm    Post subject: Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"game.exe"+131AAE)
label(returnhere)
label(originalcode)
label(isplayer)

newmem:
cmp [rcx+0],#0
je isplayer
cmp [rcx+0],#1 //My Player from 0 at 5
je isplayer
cmp [rcx+0],#2
je isplayer
cmp [rcx+0],#3
je isplayer
cmp [rcx+0],#4
je isplayer
cmp [rcx+0],#5
je isplayer
jmp originalcode

isplayer:
sub [rcx+28],#99999 //My Attack
// don't want the original instruction to execute for the player???
//mov [rcx+48],eax
jmp returnhere

originalcode:
sub [rcx+28],#1 //Enemy Attack
mov [rcx+48],eax

"game.exe"+131AAE:
jmp newmem
nop
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"game.exe"+131AAE:
mov [rcx+28],eax
mov [rcx+48],eax
//Alt: db 89 41 28 89 41 48
Back to top
View user's profile Send private message
FIRESKY
How do I cheat?
Reputation: 0

Joined: 01 Mar 2017
Posts: 7

PostPosted: Sun Dec 10, 2017 8:30 pm    Post subject: Solved ZANZER are the Best! Reply with quote

Tx mile realy.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 140

Joined: 25 Jan 2006
Posts: 7405
Location: 127.0.0.1

PostPosted: Mon Dec 11, 2017 5:08 am    Post subject: Reply with quote

For future reference, please do not edit your main post after you have been helped. Others may have similar questions to yours and removing the original post removes context and information about the topic.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
FIRESKY
How do I cheat?
Reputation: 0

Joined: 01 Mar 2017
Posts: 7

PostPosted: Mon Dec 11, 2017 5:42 am    Post subject: Reply with quote

K sir, I had thought this to prevent anyone from clicking on this post and trying to read to help me wasting time.
it will be done next tx for the tip.
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 Lua Scripting 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