| View previous topic :: View next topic |
| Author |
Message |
sss932 Newbie cheater
Reputation: 0
Joined: 18 Jul 2024 Posts: 16
|
Posted: Wed Jul 24, 2024 4:40 am Post subject: |
|
|
The code you provided doesn't return any values.
Is it possible to read all values 1 to 5 with Lua? |
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1535
|
Posted: Wed Jul 24, 2024 5:02 am Post subject: |
|
|
Ahh, this probably should have been done with your scanning code that found 5 results.
I should look at the code you first scanned.
The code below scans the given aob code and saves the results in a table and prints them.
| Code: | function multiAOB(from)
resultAddr = {}
local aob = AOBScan(tostring(from))
if (aob == nil) then
showMessage("Code not found!")
else
for i=0,aob.Count-1 do
local address=stringlist_getString(aob,i)
resultAddr[#resultAddr + 1] = address
end
aob.Destroy()
end
return resultAddr
end
local search = "00 00 80 41 00 00 00 00" -- your search code
local addrTbl = multiAOB(search)
for n,addr in pairs(addrTbl) do
print("Addres: "..addr.." --> Value: "..readFloat(addr))
end |
_________________
|
|
| Back to top |
|
 |
sss932 Newbie cheater
Reputation: 0
Joined: 18 Jul 2024 Posts: 16
|
Posted: Wed Jul 24, 2024 5:33 am Post subject: |
|
|
If I use all the codes you gave me, how can I fix it?
What I want to do is, when I click on the script that was written, all 5 codes are used, so that the values are automatically filled in without having to check "PositionBase" or "포지션" that is marked in red...
Last edited by sss932 on Wed Jul 24, 2024 5:48 am; edited 2 times in total |
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1535
|
Posted: Wed Jul 24, 2024 5:46 am Post subject: |
|
|
You wanted to read the results of 5 scan codes.
I've provided you with lua code that reads the results, prints them.
Put your own scan code in the > local search = "" < section and run the code.
Maybe you want to read a specific byte of these results.
I'm having trouble understanding exactly what you want.
Maybe you can watch the CE "PointerScan" videos and create a unique code and use it in the aa script. _________________
|
|
| Back to top |
|
 |
sss932 Newbie cheater
Reputation: 0
Joined: 18 Jul 2024 Posts: 16
|
Posted: Wed Jul 24, 2024 5:55 am Post subject: |
|
|
Sorry for the lack of communication...
What I want to do is, when I click on the script that was written, all 5 codes are used, so that the values are automatically filled in without having to check "PositionBase" or "포지션" that is marked in red... |
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1535
|
Posted: Wed Jul 24, 2024 6:39 am Post subject: |
|
|
For this reason, I wanted you to have a unique aob code.
This would allow you to continue with the correct and single result.
What is your scan code that produces 5 results?
Please send it. _________________
|
|
| Back to top |
|
 |
sss932 Newbie cheater
Reputation: 0
Joined: 18 Jul 2024 Posts: 16
|
Posted: Wed Jul 24, 2024 6:41 am Post subject: |
|
|
9A 19 47 43 9A 19 47 43 00 00 00 00 00 00 00 00 00 00 00
This is the aob code that generated 5 results. |
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1535
|
Posted: Wed Jul 24, 2024 7:54 am Post subject: |
|
|
| Code: | function crtScrpt(addr,name)
local mr = getAddressList().createMemoryRecord()
mr.Type = vtAutoAssembler
scrpt = ([==[[ENABLE] ]==]..[==[
define(]==]..name..[==[, ]==]..addr..[==[)]==]..[==[
registersymbol(]==]..name..[==[)]==]..[==[
[DISABLE]]==]..[==[
unregistersymbol(]==]..name..[==[)]==])
mr.Script = scrpt
mr.Description = name
end
function multiAOB(from)
resultAddr = {}
local aob = AOBScan(tostring(from))
if (aob == nil) then
showMessage("Code not found!")
else
for i=0,aob.Count-1 do
local address=stringlist_getString(aob,i)
resultAddr[#resultAddr + 1] = address
end
aob.Destroy()
end
return resultAddr
end
local search = "9A 19 47 43 9A 19 47 43 00 00 00 00 00 00 00 00 00 00 00"
local addrTbl = multiAOB(search)
for n,addr in pairs(addrTbl) do
--print("Addres: "..addr.." --> Value: "..readFloat(addr))
name = "PositionBase"..n
crtScrpt(addr,name)
end |
This code will take all the scan results and give you a script output for each result that looks like this;
| Code: | [ENABLE]
define(PositionBase1, 23411E80860)
registersymbol(PositionBase1)
[DISABLE]
unregistersymbol(PositionBase1) |
_________________
|
|
| Back to top |
|
 |
sss932 Newbie cheater
Reputation: 0
Joined: 18 Jul 2024 Posts: 16
|
Posted: Wed Jul 24, 2024 12:34 pm Post subject: |
|
|
| Is there a way to change PositionBase for multiple addresses at once? |
|
| Back to top |
|
 |
|