[Lua] 纯文本查看 复制代码
openProcess ("MuMuVMMHeadless.exe")
local atk = 500000
local np = 0
local hp = 500000
local search_num = string.format("4:等级 4:攻击")
local Scan = createMemScan();
Scan.OnlyOneResult=true;
Scan.firstScan(soExactValue, vtGrouped, rtRounded, search_num, "", 0, 0x00007fffffffffff, "", fsmAligned, "4", false, false, false, false);
Scan.waitTillDone();
a=Scan.getOnlyResult()
local search_num = string.format("4:等级 4:攻击")
local Scan = createMemScan();
Scan.OnlyOneResult=true;
Scan.firstScan(soExactValue, vtGrouped, rtRounded, search_num, "", 0, 0x00007fffffffffff, "", fsmAligned, "4", false, false, false, false);
Scan.waitTillDone();
b=Scan.getOnlyResult()
local search_num = string.format("4:等级 4:攻击")
local Scan = createMemScan();
Scan.OnlyOneResult=true;
Scan.firstScan(soExactValue, vtGrouped, rtRounded, search_num, "", 0, 0x00007fffffffffff, "", fsmAligned, "4", false, false, false, false);
Scan.waitTillDone();
c=Scan.getOnlyResult()
if a == nil
then
else
writeInteger(a+0x4, atk)
writeInteger(a+0x30, np)
writeInteger(a+0x10, hp)
writeInteger(a+0x14, hp)
end
if b == nil
then
else
writeInteger(b+0x4, atk)
writeInteger(b+0x30, np)
writeInteger(b+0x10, hp)
writeInteger(b+0x14, hp)
end
if c == nil
then
else
writeInteger(c+0x4, atk)
writeInteger(c+0x30, np)
writeInteger(c+0x10, hp)
writeInteger(c+0x14, hp)
end
print("修改完成")