alanze Advanced Cheater Reputation: 3
Joined: 03 Oct 2012 Posts: 50
|
Posted: Sun Apr 26, 2015 10:59 pm Post subject: |
|
|
Put this in the lua script window and execute:
Code: |
-- use numbers between 0 and 4294967295
-- do not use float numbers or text
-- else you get error
nr=28375657 -- put "number to replace" here
rw=99999999 -- put "replace with" here
function replaceAllInt()
local t1=""
local t2=string.format("%X",nr)
while (string.len(t2) < 8) do t2="0"..t2 end
for x=7, 0, -2 do t1=string.sub(t2,x,x+1).." " end
rs=AOBScan(t1,"+W-X-C",1,"4")
if (rs) then
local lngt=rs.getCount()
for x=0, lngt-1, 1 do writeInteger(rs[x],rw) end
rs.Destroy()
rs=nil
end
end
replaceAllInt()
|
Do not touch the function except +W-X-C (which memory area you want to search)
Also you can use "createMemScan(0)" as an alternative (if you know how to use it).
It's dangerous to replace all integer values found in memory,
at least 90% that the game will crash, depends how specific is the number, good luck.
Another user asked for the same, check out:
http://forum.cheatengine.org/viewtopic.php?p=5590937
|
|