| View previous topic :: View next topic |
| Author |
Message |
cocoarush How do I cheat?
Reputation: 0
Joined: 23 Aug 2013 Posts: 1
|
Posted: Wed Sep 04, 2013 9:44 pm Post subject: How do I change a fixed address with a script? |
|
|
I have found static addresses for numerous game values. When I load the table of static addresses they change to the games current values and I have to change each one manually to the values I want. I'd like to use a script to automate the changing of the static address values.
Currently I'm using "mov [02302060],#10000" in a "default" cheat-table-framework-code script where 02302060 is the static address and #100000 is the decimal value I'd like to automatically change the static address to, but it isn't working. Can anyone help me with the proper syntax to change a fixed address in my address table or point me to a relevant thread?
Thanks in advance.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Thu Sep 05, 2013 2:29 am Post subject: |
|
|
02302060:
DD #10000
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
low_density Expert Cheater
Reputation: 1
Joined: 08 Aug 2009 Posts: 156
|
Posted: Sun Sep 08, 2013 3:57 am Post subject: |
|
|
hi, sorry for hijacking this thread, but how do you add values to a fixed address? I know that setting the value of a fixed address can be done by:
address:
dd #value
but, for example, how do you add 10 to the value?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Sun Sep 08, 2013 4:16 am Post subject: |
|
|
| Code: |
luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
low_density Expert Cheater
Reputation: 1
Joined: 08 Aug 2009 Posts: 156
|
Posted: Sun Sep 08, 2013 4:41 am Post subject: |
|
|
| Dark Byte wrote: | | Code: |
luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))
|
|
sorry, how do I put this into the script? just like normal?
[ENABLE]
luacall(writeInteger(0x02302060, readInteger(0x02302060)+10))
like this? and if i want to add only to a byte, not the entire 4 bytes, how do I do so? sorry, I'm only familiar with AA scripting and not LUA.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Sun Sep 08, 2013 5:19 am Post subject: |
|
|
yes
for single bytes it's a big more annoying as there's no single byte reading but then you do:
| Code: |
[enable]
luacall(writeBytes(0x00400500,readBytes(0x00400500,1)+10))
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
low_density Expert Cheater
Reputation: 1
Joined: 08 Aug 2009 Posts: 156
|
Posted: Sun Sep 08, 2013 6:14 am Post subject: |
|
|
| Dark Byte wrote: | yes
for single bytes it's a big more annoying as there's no single byte reading but then you do:
| Code: |
[enable]
luacall(writeBytes(0x00400500,readBytes(0x00400500,1)+10))
|
|
thank you so much DarkByte! just one more question, if i do like this, does it add by Hex or Decimal?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Sun Sep 08, 2013 6:30 am Post subject: |
|
|
decimal.
If you wish hex, then make it 0x10
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
low_density Expert Cheater
Reputation: 1
Joined: 08 Aug 2009 Posts: 156
|
Posted: Sun Sep 08, 2013 7:23 am Post subject: |
|
|
| alright thanks a lot Dark Byte!
|
|
| Back to top |
|
 |
|