local baseAddress='AST_GAIDEN.exe+180AA68'
local num=12
function addMoreAddresses(baseAddress, num, step, pro_name)
local al = getAddressList()
local base = al.createMemoryRecord()
base.setAddress(baseAddress)
base.setDescription(string.format("风格盘信息"))
base.Type = 0
base.String.Size = 0
local pro_names = {"探求者","剑士","魔法使","守护者","盗贼","野蛮人","骑士","枪兵","舞者","忍者","武士","重装战士","刺客","魔女","无名英雄"}
local pros = {}
for k, v in pairs(pro_names) do
pros[v]=k-1
end
for k=0, 1 do
local pro = al.createMemoryRecord()
pro_index = pros[pro_name]
local str_address = string.format("+%X", pro_index * 0x48 + k * 0x24)
local str = string.format("%s风格盘第%d排", pro_name, k + 1)
pro.setAddress(str_address)
pro.setDescription(str)
pro.Type = 0
pro.appendToEntry(base)
for i=0, num-1 do
local rec = al.createMemoryRecord()
local str_address = string.format("+%X", i * 0x3)
local str = string.format("第%d格", i+1)
rec.setAddress(str_address)
rec.setDescription(str)
rec.Type = 8
rec.ShowAsHex = 1
rec.Aob.Size = 3
rec.appendToEntry(pro)
end
end
end
addMoreAddresses(baseAddress, num, step, "剑士")