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 


calling a registered symbol from other AA script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 169

PostPosted: Fri Jun 27, 2008 8:20 am    Post subject: calling a registered symbol from other AA script? Reply with quote

i registered a symbol on my first script which store my value
on my second script can i call the registered symbol on my first script?

note: the two script must be separate.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Fri Jun 27, 2008 9:48 am    Post subject: Reply with quote

if it is a registered symbol yes, that's the main point for using them

e.g:
script1: (called when displaying the user's health on the gui. Called once a second, and setting hp here to max is sometimes too late)
Code:

alloc(newmem1,1024)
alloc(myregisteredsymbol,4)
registersymbol(myregisteredsymbol)

label(originalcode)
label(return1)

myregisteredsymbol:
dd 0

newmem1:
mov [myregisteredsymbol],ecx
mov [ecx+45],eax //original code
mov edx,edi //original code
jmp return1


originalcode1:
jmp newmem1
return1:



script2: //called when the decrease health routine is called. Used by all objects in the game
Code:

alloc(newmem1,1024)
label(itstheplayer)

label(originalcode)
label(return1)

newmem1:
cmp edi,[myregisteredsymbol]
je itstheplayer

sub [edi+45],eax //original code

itstheplayer:
xor eax,eax //original code, done here since it's not part of the sub, but needs to be called nonetheless
call return1

originalcode1:
jmp newmem1
return1:


_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 169

PostPosted: Sat Jun 28, 2008 4:19 am    Post subject: Reply with quote

okay thanks,

other thing, is this posible in CE trainer maker
i have this address and i made two scripts of it sort of making choices out of it .
button1 will reload fast
button2 will no longer (rapid fire)

now, heres what i want to do , when i enable one button the other must automatically disable?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Jun 28, 2008 8:26 am    Post subject: Reply with quote

automatically disabling isn't in yet, but if you make a userdefined trainer layout you can change the active color to the same as deactive, and have your scripts deactivate the others
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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