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 


How to change an exact number of aobs?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
hemersonkla1
Cheater
Reputation: 0

Joined: 24 Jun 2015
Posts: 31

PostPosted: Wed Sep 13, 2017 5:25 pm    Post subject: How to change an exact number of aobs? Reply with quote

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
View user's profile Send private message
FreeER
Master Cheater
Reputation: 12

Joined: 09 Aug 2013
Posts: 345

PostPosted: Thu Sep 14, 2017 10:53 am    Post subject: Reply with quote

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
View user's profile Send private message
hemersonkla1
Cheater
Reputation: 0

Joined: 24 Jun 2015
Posts: 31

PostPosted: Thu Sep 14, 2017 1:05 pm    Post subject: Reply with quote

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. =) Smile
Back to top
View user's profile Send private message
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