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 


Having truble to make script for that address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
M.MoRsE
How do I cheat?
Reputation: 0

Joined: 31 Dec 2020
Posts: 4

PostPosted: Sat Sep 03, 2022 5:48 am    Post subject: Having truble to make script for that address Reply with quote

[b]hi everybody how can solve this wrong in script to use not make grlith the game and stop it Rolling Eyes
i want to make script for enemies not die easly until you shoot on head

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
nop
nop
nop
nop
nop

exit:
jmp returnhere

"The Lord of the Necropolis Overhaul.exe"+561E8:
jmp newmem
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"The Lord of the Necropolis Overhaul.exe"+561E8:
nop
nop
nop
nop
nop
//Alt: db 90 90 90 90 90
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Sat Sep 03, 2022 2:54 pm    Post subject: Reply with quote

Perhaps we could assist more if you had not have overwritten the original code with several no-operation instructions. There is a reason why you should place new code under "newmem:", because it helps discern the difference between the original instructions and the ones you added.
Back to top
View user's profile Send private message
M.MoRsE
How do I cheat?
Reputation: 0

Joined: 31 Dec 2020
Posts: 4

PostPosted: Sat Sep 03, 2022 3:57 pm    Post subject: Reply with quote

LeFiXER wrote:
Perhaps we could assist more if you had not have overwritten the original code with several no-operation instructions. There is a reason why you should place new code under "newmem:", because it helps discern the difference between the original instructions and the ones you added.


hi LeFiXER
This is the original code, I didn't write anything. As it appeared to me I sent it
I tried to send you a private message, but the site refuses to contact you, why?!
As I told you this is the original code and there are no additions from me
Back to top
View user's profile Send private message
M.MoRsE
How do I cheat?
Reputation: 0

Joined: 31 Dec 2020
Posts: 4

PostPosted: Sun Sep 04, 2022 5:41 am    Post subject: Reply with quote

ok man. that's original code before replace with code that does nothing
[code]
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
sub [esi+000000CC],dx

exit:
jmp returnhere

"The Lord of the Necropolis Overhaul.exe"+561E8:
jmp newmem
nop 2
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"The Lord of the Necropolis Overhaul.exe"+561E8:
sub [esi+000000CC],dx
//Alt: db 66 29 96 CC 00 00 00
====
I replaced it to make enemy not die but failed

===

now how can i make script for infinte health to enemy?
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Mon Sep 05, 2022 10:57 am    Post subject: Reply with quote

I don't have the game so I can't test things personally. At a quick glance it appears that [ESI+CC] could point to the health of the entity (which can also be the player). It is down to you to investigate this by setting a breakpoint on the instruction "sub [esi+000000CC],dx" by selecting that instruction in the memory viewer window and pressing F5 (or via the right-click context menu).

Once the instruction is accessed/written to, the breakpoint will trigger.
Back to top
View user's profile Send private message
M.MoRsE
How do I cheat?
Reputation: 0

Joined: 31 Dec 2020
Posts: 4

PostPosted: Mon Sep 05, 2022 5:46 pm    Post subject: Reply with quote

LeFiXER wrote:
I don't have the game so I can't test things personally. At a quick glance it appears that [ESI+CC] could point to the health of the entity (which can also be the player). It is down to you to investigate this by setting a breakpoint on the instruction "sub [esi+000000CC],dx" by selecting that instruction in the memory viewer window and pressing F5 (or via the right-click context menu).

Once the instruction is accessed/written to, the breakpoint will trigger.

-----
Yes, as you said, it is the health of the enemy and I almost reached it approximately
Thank you very much for the help
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 Gamehacking 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