View previous topic :: View next topic |
Author |
Message |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Sat Feb 18, 2017 9:29 am Post subject: Execute AA script regardless of any instruction |
|
|
Hello,
Is it possible to make AA script that executes only with enable disable keys ?
for example :
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
alloc(myvar,4)
registersymbol(myvar)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [[[["Game.exe"+006C0080]+134]+3c]+80],(float)999
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
unregistersymbol(myvar)
dealloc(myvar)
dealloc(newmem)
|
Is this possible ?
Thanks, |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 18, 2017 9:58 am Post subject: |
|
|
Yes, but why not just add the address to your table and set hotkeys that way?
If you insist on using a script, here is one example:
Code: | [ENABLE]
[[["xul.dll"+0023F680]+560]+4CC]+604:
dd #999
[DISABLE]
[[["xul.dll"+0023F680]+560]+4CC]+604:
dd #2 |
|
|
Back to top |
|
 |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Sat Feb 18, 2017 11:40 am Post subject: |
|
|
its a good question ...
So if i have multiple values to update then script is the better way ? |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 18, 2017 11:48 am Post subject: |
|
|
Not necessarily. I suppose, it depends on what you are trying to do. Adding the individual addresses to your table will give you more control and allow you to see all of the current values, in real-time (assuming that your needs are simple and that you are only looking to write a very basic script).
You can establish a parent entry and drag all of the addresses underneath that, or, use an Lua extension to batch-assign hotkeys.
If, however, the addresses are all being handled by the same instruction, then I would say that injection is probably the way to go. Then again, injection is typically the way to go, in my opinion. But, if you are working with a bunch of pointer addresses and are not familiar with injection, then you may opt to combine them all under one script, or, add them all, individually, to your table. |
|
Back to top |
|
 |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Sat Feb 18, 2017 2:52 pm Post subject: |
|
|
Well in my case its population limit which has global limit and houses limit.
Both limits are found in the base pointer with different offset. I need to raise both of them to some high value. I think its better with script since they values need to be set simultaneously, correct ? |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 18, 2017 5:28 pm Post subject: |
|
|
You do not need a script. However, I do recommend injection in most cases (including this one).
That said, if you add those addresses to your table, as-is, you can assign the same hotkey for both, that will set the same (or different) values to both, simultaneously. |
|
Back to top |
|
 |
thefreestyle Cheater
Reputation: 0
Joined: 29 Oct 2015 Posts: 35
|
Posted: Sun Feb 19, 2017 11:31 am Post subject: |
|
|
Very good points. Thank you very much ! |
|
Back to top |
|
 |
|