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 


aobscan only once!?

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

Joined: 02 Jan 2012
Posts: 23
Location: Deutschland

PostPosted: Sat Aug 01, 2015 1:02 pm    Post subject: aobscan only once!? Reply with quote

Is it possible aobscanning only once? In ONE Script.

I meant it like this example:
Code:

[ENABLE]
if (registersymbol(placing)):     // First, check if the registered symbol is found.
// Nothing to do

else:     // Registered Symbol not found -> aobscan and register it
aobscan(placing,FF 88 80000000 8B 85 58FAFFFF)
registersymbol(placing)

endif

placing:
db 90 90 90 90 90 90
[DISABLE]
placing:
db FF 88 80 00 00 00

ya ya.. there's no "if" in the assembler code but in c#/c++

I know how i can do that in two scripts. But it would looking stupid if i have 2 or more scripts like this.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Sat Aug 01, 2015 2:24 pm    Post subject: Reply with quote

something like this:
Code:

[ENABLE]
{$lua}
errorOnLookupFailure(false) --without this the script would just fail to enable
if (getAddress("placing")==0) then --not yet defined
  return [[
aobscan(placing,FF 88 80000000 8B 85 58FAFFFF)
registersymbol(placing) 
]] --the returned string in lua sections get executed by the auto assembler. In this case, and aobscan line and it's registersymbol part are placed here  (no return means an empty string)
end
{$asm}

placing:
db 90 90 90 90 90 90
[DISABLE]
placing:
db FF 88 80 00 00 00


Also, you could have the code in a main entry that scans both aob's, and then have children under it that use it. (aobscan's in a script get grouped into one single scan, which is faster than multiple scans over and over)

_________________
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
View user's profile Send private message MSN Messenger
Palimpalim
Newbie cheater
Reputation: 0

Joined: 02 Jan 2012
Posts: 23
Location: Deutschland

PostPosted: Sat Aug 01, 2015 3:52 pm    Post subject: Fuck yeah! Reply with quote

THIS is it! Very Happy
Thanks Dark Byte. This solves my problems.

Better have to learn lua too and not only c# Rolling Eyes
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