| View previous topic :: View next topic |
| Author |
Message |
lamburger Newbie cheater
Reputation: 0
Joined: 01 Dec 2015 Posts: 16 Location: U.S
|
Posted: Wed Dec 02, 2015 3:39 am Post subject: Script to change value. |
|
|
So, i need to write a script to change a value as soon as the address for the value is written to. I need the value of a certain address to change to 30 when written to. I have looked up a multitude of scripting topics to try and understand how i would go of writing my own script, but i can't seem to comprehend how i would write what I am aiming for. This may seem like an extremely noob question, but if i can get some help, it would be more appreciated than you know.
_________________
Someone who never wants to stop learning.
Did he fury swipes you? |
|
| Back to top |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Wed Dec 02, 2015 10:25 am Post subject: |
|
|
1 - Find the address.
2 - Right-click it, choose find what writes to this address.
3 - Find the things that write to it and figure out what writes to it and when.
4 - Show us.
_________________
|
|
| Back to top |
|
 |
lamburger Newbie cheater
Reputation: 0
Joined: 01 Dec 2015 Posts: 16 Location: U.S
|
Posted: Wed Dec 02, 2015 1:12 pm Post subject: |
|
|
So I am unable to post picture attachments as my browser freezes up when i try to, so i am going to have to type out the address and what not.
The address is 154C9A6C
0062BFF9 - 88 43 18 - mov [ebx+18],al is what writes to the address, and is written to whenever the value of the address lowers.
Ex: Base value of address is 30, when it lowers, is written to because the value has decreased in-game.
I hope i have given what you asked for.
_________________
Someone who never wants to stop learning.
Did he fury swipes you? |
|
| Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Wed Dec 02, 2015 1:25 pm Post subject: |
|
|
In memory viewer go there 0062BFF9.
(Press ctrl+G and enter 0062BFF9).
then press CTRL+A, then press CTRL+i.
Then find the "original code:" and replace
mov [ebx+18],al
by
mov [ebx+18],30
not sure if u meant hexa or decimal 30. Also assuming your variable is 4 bytes long.
Could be worth it to make sure this instruction doesn't write other address:
at 0062BFF9 in memory viewer, right click opcode and chose 'find out what address this instruction access'.
If it's more than 1 address the code i posted might cause troubles
|
|
| Back to top |
|
 |
lamburger Newbie cheater
Reputation: 0
Joined: 01 Dec 2015 Posts: 16 Location: U.S
|
Posted: Wed Dec 02, 2015 1:49 pm Post subject: |
|
|
Thank you, that works, but one last thing. I need to know how i would make it so that the script is in the cheat engine interface, so i am able to just check it and it would trigger the script rather than having to continuously execute it manually. How would i go of doing that?
_________________
Someone who never wants to stop learning.
Did he fury swipes you? |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4718
|
Posted: Wed Dec 02, 2015 2:03 pm Post subject: |
|
|
- Open up AA window (Ctrl+Alt+A)
- Paste this in:
| Code: | [ENABLE]
assert(0062BFF9,88 43 18)
0062BFF9:
mov [ebx+18],30
[DISABLE]
0062BFF9:
mov [ebx+18],al |
File -> Assign to Cheat Table
Enable the script
If the script doesn't enable, then the address 0062BFF9 is dynamic (changes location when the game is restarted). Give us more bytes after that instruction if that's the case.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
lamburger Newbie cheater
Reputation: 0
Joined: 01 Dec 2015 Posts: 16 Location: U.S
|
Posted: Wed Dec 02, 2015 2:18 pm Post subject: |
|
|
The script was enabled, but when the value of the address decreased, the game crashed.
_________________
Someone who never wants to stop learning.
Did he fury swipes you? |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4718
|
Posted: Wed Dec 02, 2015 2:28 pm Post subject: |
|
|
Oh, nevermind, I forgot that takes up more bytes than the original mov.
If you follow the other instructions, go to Template -> "Cheat table framework code" right before hitting Ctrl+I, then assign it to your cheat table.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
lamburger Newbie cheater
Reputation: 0
Joined: 01 Dec 2015 Posts: 16 Location: U.S
|
Posted: Wed Dec 02, 2015 2:52 pm Post subject: |
|
|
Works perfectly folks, thanks for all the help!
_________________
Someone who never wants to stop learning.
Did he fury swipes you? |
|
| Back to top |
|
 |
|