Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


A lua that adds similar groups in batches

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
etioplmld
Advanced Cheater
Reputation: 0

Joined: 09 Feb 2021
Posts: 74

PostPosted: Sat Aug 14, 2021 2:19 am    Post subject: A lua that adds similar groups in batches Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites