etioplmld Advanced Cheater Reputation: 0
Joined: 09 Feb 2021 Posts: 74
|
Posted: Sat Aug 14, 2021 2:19 am Post subject: A lua that adds similar groups in batches |
|
|
It may have some syntax error,anyway ,it can run.Maybe someone has a gui extension that can do this ?
Code: |
function tjd(jza,pya,pyb,msu,ztu)
local duqu = getAddressList()
local xru = duqu.createMemoryRecord()
xru.setAddress(jza)
xru.setOffsetCount(2)
xru.setOffset(0, pya)
xru.setOffset(1, pyb)
xru.setDescription(msu)
xru.appendToEntry(ztu)
end
local al = getAddressList()
local rtt = al.createMemoryRecord()
rtt.Description = "Character data"
rtt.isGroupHeader = true
rtt.options = "[moHideChildren]"
for i=0,73,1 do
local bgn = al.createMemoryRecord()
local zxg1 = al.createMemoryRecord()
local zxg2 = al.createMemoryRecord()
local zxg3 = al.createMemoryRecord()
bgn.Description = ("Character"..i)
bgn.isGroupHeader = true
bgn.options = "[moHideChildren]"
bgn.appendToEntry(rtt)
zxg1.Description = "currentvalue"
zxg1.isGroupHeader = true
zxg1.options = "[moHideChildren]"
zxg1.appendToEntry(bgn)
zxg2.Description = "maxvalue"
zxg2.isGroupHeader = true
zxg2.options = "[moHideChildren]"
zxg2.appendToEntry(bgn)
zxg3.Description = "Item bonus"
zxg3.isGroupHeader = true
zxg3.options = "[moHideChildren]"
zxg3.appendToEntry(bgn)
tjd("270990",(i*4+0x82164),0x5D708,"currentFS",zxg1)
tjd("270990",(i*4+0x82484),0x5D708,"currentHP",zxg1)
tjd("270990",(i*4+0x827A4),0x5D708,"currentMP",zxg1)
tjd("270990",(i*4+0x82AC4),0x5D708,"currentTP",zxg1)
tjd("270990",(i*4+0x81E44),0x5D708,"currentLV",zxg2)
tjd("270990",(i*4+0x81FD4),0x5D708,"experience value",zxg2)
tjd("270990",(i*4+0x822F4),0x5D708,"maxFS",zxg2)
tjd("270990",(i*4+0x82614),0x5D708,"maxHP",zxg2)
tjd("270990",(i*4+0x82934),0x5D708,"maxMP",zxg2)
tjd("270990",(i*4+0x82C54),0x5D708,"maxTP",zxg2)
tjd("270990",(i*0x48+0x83148),0x5D708,"HP",zxg3)
tjd("270990",(i*0x48+0x8314C),0x5D708,"MP",zxg3)
tjd("270990",(i*0x48+0x83150),0x5D708,"TP",zxg3)
tjd("270990",(i*0x48+0x83154),0x5D708,"physics atk",zxg3)
tjd("270990",(i*0x48+0x83158),0x5D708,"physics Def",zxg3)
tjd("270990",(i*0x48+0x8315C),0x5D708,"atk speed",zxg3)
tjd("270990",(i*0x48+0x83160),0x5D708,"Def speed",zxg3)
tjd("270990",(i*0x48+0x83164),0x5D708,"magic atk",zxg3)
tjd("270990",(i*0x48+0x83168),0x5D708,"magic Def",zxg3)
end
|
|
|