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 


Help. How to put delay auto assemble?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rajada1
Newbie cheater
Reputation: 0

Joined: 02 Jan 2017
Posts: 12

PostPosted: Mon Jan 30, 2017 5:01 pm    Post subject: Help. How to put delay auto assemble? Reply with quote

I created a cheat monster vac.
So the monsters stay in only one place on the screen, and using autokill the items will always fall in the same place and I can catch them getting stopped.
The problem is this, if I am using autokill it does not take time for the monitors to move completely in the programmed place, so the items fall into the other place where they die. I was wondering how can I add a delay of at least 2 sec script using auto assemble, here is the autokill script

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:
fld dword ptr [esi+04]
fucompp
cmp [esi], 1676
jge autokill
jmp returnhere


autokill:

cmp [esi], 1789
je returnhere

mov [esi+04], 0

exit:
jmp returnhere

"epic.exe"+15222:
jmp newmem
returnhere:


[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"epic.exe"+15222:
fld dword ptr [esi+04]
fucompp
//Alt: db D9 46 04 DA E9
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Jan 30, 2017 8:35 pm    Post subject: Reply with quote

I'm totally guessing here as far as what this code does and what you're trying to achieve, but you can set up a hotkey that will set a value to your timer as soon as you activate the cheat. For example:

Code:
label(trigger)
label(timer_value)

registersymbol(trigger)
registersymbol(timer_value)

newmem:
cmp byte ptr [trigger],1
je @f
jmp originalcode

@@:
cmp [esi], 1676
jge @f
jmp originalcode

@@:
cmp [timer_value],1
jge @f
mov byte ptr [trigger],0
mov [esi+04], 0
jmp originalcode

@@:
sub [timer_value],1
cmp [esi], 1789
je returnhere
jmp originalcode

originalcode:
fld dword ptr [esi+04]
fucompp
jmp returnhere

trigger:
db 0
timer_value:
dd 0

//code here

unregistersymbol(trigger)
unregistersymbol(timer_value)


In this case, you set up the same hotkey for trigger and timer_value. The hotkey for trigger should set the value to 1 and the hotkey for timer_value can set a value of your choosing.
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