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 


lua script groupscan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
kentpachi2
How do I cheat?
Reputation: 0

Joined: 03 Feb 2020
Posts: 8

PostPosted: Mon May 25, 2020 12:36 am    Post subject: lua script groupscan Reply with quote

good day CE veterans and users,

Ive been trying to make a groupscan lua script not got no knowledge how to do it.

this is the Groupscan:

f:4 f:1 f:1 f:0 f:0 f:3 f:0.3000000119


Change to this:

f:30000 f:.0003 f:1 f:0 f:0 f:3 f:0.3000000119



change the first and second float value in in group

how do you do it in Lua script?

I only know a simple Aob replace using lua script

example of my code
Code:

<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="29">
  <CheatEntries/>
  <UserdefinedSymbols/>
     <LuaScript>

----------------HACK MENU START----------------
      


function CHAM()
   searchV = '00 00 00 40 40 9A 99 99 3E 00 00 00'
   replaceV = '00 00 00 40 40 00 00 4a 3F 00 00 00'
   AOBRep(searchV,replaceV)
   
   end
   
   MyForm = createForm(true)
   MyForm.Caption = 'Version 1'
   MyForm.Width = 400
   MyForm.Height = 280
   MyForm.top  = 500
   MyForm.right  = 500
   
   
      
   btn5 = createButton(MyForm)
   btn5.Left = 250
   btn5.Top = 150
   btn5.Width = 140
   btn5.Height = 40
   btn5.onClick = esp
   btn5.Caption = 'CHAM ON'
   
   
      ----------------HACK MENU FINISH----------------
   
   end
   end
</LuaScript>
</CheatTable>


its a lua script with form that when i click the button it will automatically search the aob and replace it.

is it possible with groupscan? Can you help me construct a script for groupscan please?

Thank you for your time and consideration, Stay home Stay safe everyone
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon May 25, 2020 11:52 am    Post subject: Reply with quote

Are you sure this is floating values?. Maybe something like this:

Code:
local ms=createMemScan()
ms.OnlyOneResult=true
ms.FirstScan(soExactValue, vtGrouped, rtRounded, "f:4 f:1 f:1 f:0 f:0 f:3 f:0.3000000119","", 0, 0xffffffffffffffff,"", fsmNotAligned,"1", false, false, false, false)
ms.waitTillDone()

if ms.Result then
  writeFloat(ms.Result+.......)  --- calculating your replace values
else
  error('not found')
end

ms.destroy()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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