titomane How do I cheat?
Reputation: 0
Joined: 03 Nov 2023 Posts: 4
|
Posted: Sun May 18, 2025 1:49 pm Post subject: Sync table address to Lua scrip |
|
|
Hi
I have 2 questions about lua script
In my script I have an input address as
local inputAddress = 0x1234567
Every match this address change
Is it possible sync script with a value added to addresses table?
For example I added an address to Adresstable and put a description “my address”
Edit in the script something like :
local inputAddress = table”my address”
1ST [Solved]
local baseEntry = getAddressList().getMemoryRecordByDescription("InputBase")
if baseEntry then
inputAddress = baseEntry.CurrentAddress
print(string.format("Address found: 0x%X", inputAddress))
else
showMessage("Error: cant find 'InputBase' on address table.")
return
end
2nd question
Is it possible terminate script without close CE? At terminal console or a shortcut. I need close & reopen CE free every match.
2nd [Solved] adding a hot key
createHotkey(function()
if customTimer then
customTimer.destroy()
customTimer = bill
print (“Script Terminated”)
end
end, VK_F10)
Maybe this are a stupid easy question but I’m newbie scripting
Thanks in advance
|
|