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 


PLS HELP GUYS

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

Joined: 19 May 2018
Posts: 1

PostPosted: Sat May 19, 2018 8:48 am    Post subject: PLS HELP GUYS Reply with quote

function CECheckbox17Change(sender)
if sender checked==true then
-- enable hack
autoAssemble[[
alloc(newmem,2048,"Growtopia.exe"+1EB4DD)
label(originalcode)
label(returnhere)
label(exit)

originalcode:
je Growtopia.exe+1EB4AC
mov al,[rdi+0C]

exit:
jmp returnhere

"Growtopia.exe"+1EB4DD:
jmp newmem
returnhere:
]]
else
-- disable hack
autoAssemble[[
dealloc(newmem)
"Growtopia.exe"+1EB4DD:
jne Growtopia.exe+1EB4AC
mov al,[rdi+0C]
]]
end




WHATS WRONG GUYS !!!

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"Growtopia.exe"+1EB4DD)
label(returnhere)
label(originalcode)
label(exit)

originalcode:
je Growtopia.exe+1EB4AC
mov al,[rdi+0C]

exit:
jmp returnhere

"Growtopia.exe"+1EB4DD:
jmp newmem
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Growtopia.exe"+1EB4DD:
jne Growtopia.exe+1EB4AC
mov al,[rdi+0C]
//Alt: db 75 CD 8A 47 0C


I GOT AN ERROR ABOUT THAT
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sat May 19, 2018 9:46 am    Post subject: Reply with quote

Use the disableInfo returned from the first call to autoAssemble.

Code:
local script = [[
[ENABLE]
alloc(foo,4096)
registersymbol(foo)

foo:
  db 5

[DISABLE]
dealloc(foo)
unregistersymbol(foo)
]]

-- enable
local success, disableInfo = autoAssemble(script)
assert(success, 'could not enable script')

-- do stuff
print(('%08X'):format(getAddress'foo'))

-- disable
success = autoAssemble(script, disableInfo)
assert(success, 'could not disable script')

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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