Tsproggy How do I cheat?
Reputation: 0
Joined: 14 Dec 2006 Posts: 2 Location: The Matrix
|
Posted: Tue May 28, 2013 7:26 pm Post subject: Enable and freeze, disable and unfreeze |
|
|
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 |
|