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 


Found List... from add other address??

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

Joined: 04 Dec 2011
Posts: 25

PostPosted: Wed Apr 12, 2017 10:22 am    Post subject: Found List... from add other address?? Reply with quote

-- how to result saddress range + hex 0x10 ???

Code:

function TestFunction()
  ms=createMemScan()
  memscan_firstScan(ms, soExactValue, vtByteArray, rtRounded, "** ** 00 00 ** 00 00 00 ** 00 00 00 ** 00 00 00 01 00 00 00 04 00 00 00 ff ff ff ff", "", 0x0000000000200000, 0x7fffffffffffffff, "", fsmLastDigits , 8, false, false, false, true)
  memscan_waitTillDone(ms)
  fl=createFoundList(ms)
  foundlist_initialize(fl)
  local count=foundlist_getCount(fl)

  if (count>0) then
    for i = 0, count -1 do
        local saddress=foundlist_getAddress(fl, i)
        writeInteger(saddress, 11) --how to this range + hex 0x10 ???
    end
  else
  end
  object_destroy(fl)
  object_destroy(ms)
end



If saddress value is 45007600 then

I want 45007610 value change.

Help me please.



[/code]
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 120

Joined: 09 Jun 2013
Posts: 3260

PostPosted: Wed Apr 12, 2017 1:47 pm    Post subject: Reply with quote

Code:
local saddress = tonumber(fl.Address[i], 16)
writeInteger(saddress + 0x10, 11)
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