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 


Execute AA script regardless of any instruction

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Sat Feb 18, 2017 9:29 am    Post subject: Execute AA script regardless of any instruction Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 18, 2017 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Sat Feb 18, 2017 11:40 am    Post subject: Reply with quote

its a good question ...
So if i have multiple values to update then script is the better way ?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 18, 2017 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Sat Feb 18, 2017 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 18, 2017 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Sun Feb 19, 2017 11:31 am    Post subject: Reply with quote

Very good points. Thank you very much !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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