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 


ramdomizing string using loop

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

Joined: 17 Mar 2024
Posts: 1

PostPosted: Sun Mar 17, 2024 1:31 pm    Post subject: ramdomizing string using loop Reply with quote

hi there guys. I would like to use CheatEngine and create someting where I input (on a window) my nickname and then it finds its memory value automaticly.

also randomize nickname changing only a value in it.

thanks in advance!

the script I have so far is this:

Code:
local string_to_find = 'o(*_*)o'
local string_to_write = '^1o(*_*)o'

ms = createMemScan()
ms.firstScan(soExactValue, vtString, 0, string_to_find, "" , 0, 0xffffffffffffffff, "", fsmNotAligned, "1", false, false, false, false)
ms.waitTillDone()

f=createFoundList(ms);
f.initialize();

resultToWrite = stringToByteTable(string_to_write .. string.char(0))

for i = 0, f.Count - 1 do
writeString(f.Address[i], string_to_write)
writeBytes(("0x" .. f.Address[i]) + 4, 0)
end

f.destroy()
ms.destroy()
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