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 


Trigger for AutoAssembly

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jul 02, 2016 12:56 pm    Post subject: Trigger for AutoAssembly Reply with quote

Hi
I make this script for Trigger for any player(Cheat Engine Tutorial), my script have bug. Can help me?

This script:

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

Registersymbol(Enemy_Flag)
Registersymbol(Player_Flag)

Player_Flag:
 dd 0
Enemy_Flag:
 dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [Player_Flag],1
cmp [ebx+10],0
jne Enemy_Kill
mov dword ptr [ebx+04],(float)5000
jmp originalcode
je exit

Enemy_Kill:
mov dword ptr [ebx+04],(float)0
cmp [Enemy_Flag],1
je exit

originalcode:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]

exit:
jmp returnhere

"Tutorial-i386.exe"+27D7D:
jmp newmem
nop
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-i386.exe"+27D7D:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]

Unregistersymbol(Enemy_Flag)
Unregistersymbol(Player_Flag)
//Alt: db D8 6B 04 D9 5D D0


In Cheat Engine we can't enable two scripts are similar to. Thus i want find a way that make Trigger in this script for Enemy health and player health Separately.

Thanks for your helps & answers
*SJL002*
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jul 02, 2016 10:24 pm    Post subject: Reply with quote

Problem solved. Idea
I learned Trigger script.
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