Author Topic: My auto assembly script - help  (Read 357 times)

0 Members and 1 Guest are viewing this topic.


  • Online Villain
  • ***
  • Posts: 244
  • Strategist
    • View Profile
My auto assembly script - help
« on: December 28, 2015, 08:00:55 pm »
I have written auto assembly code for one game(in cheat engine AA) the script is:

mov [edi+00000140],64
mov ecx,64

mov ecx,[edi+00000140]

jmp returnhere

jmp newmem

As you see, it changes all statistics connected with code mov [edi+00000140]( which is responsible for one specific statistic in game) to 100 because 64 in hexadecimal is 100 in decimal. And what i want to do is, change code to 100 but only when statistic equals for example 80 or 60. How can i do it? And how can i change it to 100 but only for "units" who i control, not all players?
IF something is unclear then write what so i can explain it better.
"Strategy is a system of expedients; it is more than a mere scholarly discipline. It is the translation of knowledge to practical life, the improvement of the original leading thought in accordance with continually changing situations."


  • Village Idiot of TKC
  • Quarantine
  • Heckler Apprentice
  • ****
  • Posts: 1456
  • Banned from TKC forever
    • View Profile
Re: My auto assembly script - help
« Reply #1 on: December 28, 2015, 08:14:36 pm »
cmp..jumps(uncond/cond)..labels.structures. read about these.

I remain moderatedBanned from TKC forever as I keep posting porn 2 piss off the Staff.


  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: My auto assembly script - help
« Reply #2 on: December 28, 2015, 08:15:47 pm »
compare this [edi+00000140]

mov statistic,edi
if (*(float*)(statistic+0x140)==0x50) *(float*)(statistic+0x140)=0x64;

for units under your control edi will point to base offset , look at base + whatever stores team address , compare team number with your team then 
if (*(float*)(statistic+0x140)==0x50) *(float*)(statistic+0x140)=0x64;
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z
you need a paypal account for the private versions.


Teamspeak 3: