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 


change value scan (HARD)

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

Joined: 09 Sep 2015
Posts: 48

PostPosted: Wed Oct 14, 2015 3:08 pm    Post subject: change value scan (HARD) Reply with quote

hi i need help ok so liek ammo hack you scan 1 in bytes then change it to 2 then 3 and keep going until you get 1 result but ya its very hard and it requires a cheat engine expert and not just that it may not even be possible because you need to use (next scan*) in cheat engine lua ( if there is even next scan )

ya heres what i has so far ( plz dont say im bad at ce lua )-:

and ya i dont really want to learn ce lua but its not because its too hard but its because cheat engine lua isnt popular and theres not alot of help on google

ya also liek when you press f2 it scans 01 and changes it to 02 and when you press f3 it scans 02 and changes it to 03

if (GetAsyncKeyState(VK_F2)) then
local a = AOBScan("01")
b = a.nextScan == AOBScan("01")
a.Value = 04 -- I HAS NO IDEA
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 14, 2015 5:12 pm    Post subject: Reply with quote

Code:
local memscan = createMemScan()
local foundlist = createFoundList(memscan)
if has_scan == false then
  memscan.firstScan(...)
  has_scan = true
else
  memscan.nextScan(...)
end
memscan.waitTillDone()
-- if you need to do something
foundlist.initialize()
local address = foundlist.Address
for i = 0, foundlist.Count-1 do
  print(address[i])
end
Back to top
View user's profile Send private message
zakusa
Cheater
Reputation: 0

Joined: 09 Sep 2015
Posts: 48

PostPosted: Wed Oct 14, 2015 6:13 pm    Post subject: Reply with quote

ya but liek i want it so if you press f2 then it scans 01 and if you press f3 it scans 02
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Oct 14, 2015 8:04 pm    Post subject: Reply with quote

Code:
function doScan1()
  -- blah blah blah
end
function doScan2()
  -- blah blah blah
end
createHotkey(doScan1, VK_F2)
createHotkey(doScan2, VK_F3)
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 Lua Scripting 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