View previous topic :: View next topic |
Author |
Message |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sat Jan 16, 2016 8:17 am Post subject: |
|
|
////////////////////
It are for enable/disable?
Address Pointer for health is needed?
/////////////////////////
The "maxHP","currentHP","originalMaxHP" values are 0 because :
maxHP:
dd 00
Description: |
address values are 0.
It are for enable/disable?
Address Pointer for health is needed? |
|
Filesize: |
73.59 KB |
Viewed: |
4047 Time(s) |

|
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Sat Jan 16, 2016 8:39 am Post subject: |
|
|
They are initialized with a zero, but when the script is injected and gets executed then the values will be overwritten with the ones from [esi+4c] resp. [esi+48] ...
|
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Jan 16, 2016 8:45 am Post subject: |
|
|
You can initialize them like this:
Code: | currentHP:
dd (float)NaN
maxHP:
dd (float)NaN |
_________________
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Tue Jan 19, 2016 8:08 am Post subject: |
|
|
(In image1) I search in cheat engine forum site for this and find Dark byte Auto assembly script.
(In image2) I can do it.But for example Current HP not go to any value(fixed in his value and I can't change value of them).Help
Description: |
|
Filesize: |
3.19 KB |
Viewed: |
3974 Time(s) |

|
Description: |
|
Filesize: |
107.03 KB |
Viewed: |
3980 Time(s) |

|
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Jan 19, 2016 7:13 pm Post subject: |
|
|
Your script is only saving the VALUE of the health.
You want to save the ADDRESS of the health value.
Code: | mov [currentHP],esi |
Then, add a manual address to your table and check the Pointer option.
Give it a base address of "currentHP" and change the offset from 0 to 4C.
Set the type to Float.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Jan 19, 2016 7:42 pm Post subject: |
|
|
In addition to what Zanzer said, you can also save it with offset included:
Code: | push edx
lea edx,[esi+4c]
mov [currentHP],edx
pop edx |
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Tue Jan 19, 2016 9:28 pm Post subject: |
|
|
Thanks,now if we want originalMaxHP fixed Whilst maxHP changed?(for example if fisrt maxHP:3000 , originalMaxHP:3000 when we changed maxHP to:4000 , originalMaxHP to:3000 in fact originalMaxHP always fixed).
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4703
|
Posted: Tue Jan 19, 2016 9:58 pm Post subject: |
|
|
The easiest way would be to only store something into originalMaxHP if it hasn't been assigned yet (still default value of 0). If it isn't 0, then don't write to it. Use cmp or test to do this.
Make sure you always write 0 to it when you enable the script just in case (line 34/35 very first image).
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Wed Jan 20, 2016 2:16 am Post subject: |
|
|
Thanks again.
If we have "cmp dword ptr[esi+48],(float)25000" , "cmp dword ptr[esi+48],(float)3000" , "cmp dword ptr[esi+48],(float)100" ,.... how to make that script realized who unit is 25000 , 3000 , 100 max hp. then when we change unit max value to 26000 , 5000 , 300 when press a one key realized who unit max value is 25000 , 3000 , 100 and go max value that change to this stored value.
|
|
Back to top |
|
 |
Noobrzor Advanced Cheater
Reputation: 0
Joined: 19 May 2014 Posts: 74
|
Posted: Wed Jan 20, 2016 5:13 pm Post subject: |
|
|
Quote: | Max health is [eax+40], but all instructions are no good for injection purposes, but some random value at [eax+70] (inside the same structure) is only being accessed once every second, making a better injection point to read [eax+40]. |
That and all the other responses, so very helpful, so very clever. Thank you all for replying, great insight I'm having from this.
|
|
Back to top |
|
 |
|