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 


Enable and freeze, disable and unfreeze

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

Joined: 14 Dec 2006
Posts: 2
Location: The Matrix

PostPosted: Tue May 28, 2013 7:26 pm    Post subject: Enable and freeze, disable and unfreeze Reply with quote

Hey,

I recently "got" AOB scanning, turns out I was doing it wrong before. I'm able to do that now and that's fine. But I don't know how I would go about doing this:

AOB scan into ammo,
on enable write a float value to ammo
freeze ammo
on disable write a float value to ammo
unfreeze ammo

So far, I've successfully been able to at least write to ammo using the db command. But I only got it to work once. In my AOB scan I'm forced to use the '*' character for 2 bytes because they're dynamic but I doubt that really effects the scan THAT much, I scan a 12 byte array which gives me 1 result in search so I figured it's good.

I've looked in the help section for cheat engine's program, I've looked on the forums but don't see a search text box anywhere. Could anyone help me with this?

what has worked:

[enable]
aobscan(ammo,long ass array of bytes)

ammo:
db long ass array of bytes changing my ammo to 99

[disable]
empty because I don't think I need to cleanup anything.

I figured it out..

Code:

[ENABLE]

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(myloop)
label(exit)
aobscan(ammo,00 00 00 00 00 etc.)// Gets the address to my ammo from a byte array.

newmem:
cmp [ammo],#99// Compares my current ammo to my desired amount
jl myloop//If it's less, goes to "myloop" to fix that
jmp exit

originalcode:
push ebx

myloop:
mov [ammo],C642//Moves 99 in hex to the value of my ammo address

exit:
jmp returnhere


ammo:
jmp newmem
nop
returnhere:


[DISABLE]


Edit: Nope, isn't working 100% either.. Anything would be helpful.. Even a slap in the head! I would love it if someone could at least respond..

_________________
Quote:
Results? Why man? I have gotten lots of results! If I find 10,000 ways something won't work, I haven't failed. I am not discouraged, because every wrong attempt discarded is often a step forward....
- Thomas Edison
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