| View previous topic :: View next topic |
| Author |
Message |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 169
|
Posted: Fri Jun 27, 2008 8:20 am Post subject: calling a registered symbol from other AA script? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 26002 Location: The netherlands
|
Posted: Fri Jun 27, 2008 9:48 am Post subject: |
|
|
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 |
|
 |
guy960915 Expert Cheater
Reputation: 2
Joined: 17 Sep 2007 Posts: 169
|
Posted: Sat Jun 28, 2008 4:19 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 26002 Location: The netherlands
|
Posted: Sat Jun 28, 2008 8:26 am Post subject: |
|
|
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 |
|
 |
|