|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
hemersonkla1 Cheater Reputation: 0
Joined: 24 Jun 2015 Posts: 34
|
Posted: Wed Sep 13, 2017 5:25 pm Post subject: How to change an exact number of aobs? |
|
|
Hello friends. one more cruel doubt. I have an aob in the game and she makes an option to harvest seeds in a set of all seeds at a value. But the scan of it of the 15000 aobs more in the scan I want to change only the first 10,000 aobs. Well if I change the 15000 of bug and bug to flasplayer. has it like me to have write write only upon a value of aobs in the case in the first 10,000? Thank you.
Code: | function SearchChange(search, change)
aobs = AOBScan(search)
if(aobs ~= nil) then
j = stringlist_getCount(aobs)
for i = 1, j do
address=stringlist_getString(aobs,i-1)
for i = 1, string.len(change), 3 do
z = string.sub(change, i, i+2)
x, y = string.find(z, "%?+")
if (x == nil) then
script=[[
]]..address.."+"..(DEC_HEX((i-1)/3))..[[:
db ]]..z..[[
]]
autoAssemble(script)
end
end
end
object_destroy(aobs);
aobs=nil
end
end |
Code: | function CEButton5Click(sender)
FBE1.CEButton5.Caption = ("10%")
search=("00 00 ?? ?? ?? ?? ff ?? ?? F5 05 00 00 00 00 01 00 00 00 00 00 00 00")
change="64 00 ?? ?? ?? ?? ?? ?? ?? F5 05 00 00 00 00 01 00 00 00 00 00 00 00")
SearchChange(search,change)
FBE1.CEButton5.Caption = ("ON")
beep()
end |
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Thu Sep 14, 2017 10:53 am Post subject: |
|
|
instead of
Code: | j = stringlist_getCount(aobs)
for i = 1, j do |
use
Code: | j = stringlist_getCount(aobs)
-- limit to 10000
j = j < 10000 and j or 10000
for i = 1, j do |
|
|
Back to top |
|
|
hemersonkla1 Cheater Reputation: 0
Joined: 24 Jun 2015 Posts: 34
|
Posted: Thu Sep 14, 2017 1:05 pm Post subject: |
|
|
FreeER wrote: | instead of
Code: | j = stringlist_getCount(aobs)
for i = 1, j do |
use
Code: | j = stringlist_getCount(aobs)
-- limit to 10000
j = j < 10000 and j or 10000
for i = 1, j do |
|
OMG! that's exactly what I wanted. Thank you very much for your help. Very happy with the things I'm learning here. =)
|
|
Back to top |
|
|
|
|
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
|
|