<?xml version="1.0" encoding="utf-8"?>
<CheatTable FullClientAddressList="1" CheatEngineTableVersion="52">
  <CheatEntries>
    <CheatEntry>
      <ID>27033</ID>
      <Description>"[ Framework ] Dynamic Process Engine (RTTI &amp; Introspection)"</Description>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

-- Initialize the global DynamicProcessEngine framework class
local DynamicProcessEngine = {}
DynamicProcessEngine.__index = DynamicProcessEngine

function DynamicProcessEngine.new()
  local self = setmetatable({}, DynamicProcessEngine)
  self.is64Bit = targetIs64Bit()
  self.pointerSize = self.is64Bit and 8 or 4
  self.moduleBase = nil
  self.sections = {}
  self.vtableCache = {}
  self.activeTrackers = {}
  
  self:resolveModuleLayout()
  self:buildRttiRegistry()
  return self
end

function DynamicProcessEngine:resolveModuleLayout()
  local processId = getOpenedProcessID()
  local loadedModules = enumModules()
  
  if loadedModules and #loadedModules &gt; 0 then
    self.moduleBase = loadedModules[1].Address
  else
    self.moduleBase = getAddress(getProcesslist()[processId])
  end
  
  local dosHeaderOffset = 0x3C
  local peHeaderRva = readInteger(self.moduleBase + dosHeaderOffset)
  local peHeader = self.moduleBase + peHeaderRva
  
  local fileHeaderOffset = 4
  local numberOfSections = readSmallInteger(peHeader + fileHeaderOffset + 2)
  local sizeOfOptionalHeader = readSmallInteger(peHeader + fileHeaderOffset + 16)
  local sectionTable = peHeader + fileHeaderOffset + 20 + sizeOfOptionalHeader
  
  local sectionEntrySize = 40
  for i = 0, numberOfSections - 1 do
    local entry = sectionTable + (i * sectionEntrySize)
    local rawSectionName = readString(entry, 8) or ""
    local cleanName = rawSectionName:gsub("%z.*", "")
    
    local virtualSize = readInteger(entry + 8)
    local virtualAddress = readInteger(entry + 12)
    
    self.sections[cleanName] = {
      base = self.moduleBase + virtualAddress,
      size = virtualSize,
      endAddress = self.moduleBase + virtualAddress + virtualSize
    }
  end
end

function DynamicProcessEngine:buildRttiRegistry()
  local rdata = self.sections[".rdata"]
  local text = self.sections[".text"]
  local data = self.sections[".data"]
  
  if not (rdata and text and data) then return 0 end
  
  local indexedCount = 0
  local step = self.pointerSize
  
  for cursor = rdata.base + step, rdata.endAddress - (step * 4), step do
    local func0 = readInteger(cursor)
    local func1 = readInteger(cursor + step)
    
    if func0 and func1 and func0 &gt;= text.base and func0 &lt;= text.endAddress and func1 &gt;= text.base and func1 &lt;= text.endAddress then
      local completeObjectLocator = readInteger(cursor - step)
      
      if completeObjectLocator and completeObjectLocator &gt;= rdata.base and completeObjectLocator &lt;= rdata.endAddress then
        local typeDescriptorOffset = 12
        local typeDescriptor = readInteger(completeObjectLocator + typeDescriptorOffset)
        
        if typeDescriptor and typeDescriptor &gt;= data.base and typeDescriptor &lt;= data.endAddress then
          local mangledNameOffset = 8
          local mangledString = readString(typeDescriptor + mangledNameOffset, 80) or ""
          mangledString = mangledString:gsub("%z.*", "")
          
          if mangledString:sub(1, 4) == ".?AV" or mangledString:sub(1, 4) == ".?AU" then
            local className = mangledString:sub(5):gsub("@@.*", "")
            self.vtableCache[className] = cursor
            indexedCount = indexedCount + 1
          end
        end
      end
    end
  end
  return indexedCount
end

function DynamicProcessEngine:getVtable(className)
  return self.vtableCache[className]
end

function DynamicProcessEngine:isMemoryValid(address, expectedVtable)
  if not address or address == 0 then return false end
  local readSuccess, currentVtable = pcall(readInteger, address)
  if not readSuccess or not currentVtable then return false end
  if expectedVtable then
    return currentVtable == expectedVtable
  end
  return true
end

function DynamicProcessEngine:findActiveInstance(className)
  local targetVtable = self:getVtable(className)
  if not targetVtable then return nil end
  
  local memoryScan = createMemScan()
  memoryScan.firstScan(
    soExactValue, vtDword, rtTruncated,
    string.format("$%X", targetVtable), "",
    0x00400000, 0x7FFFFFFF,
    "+W*X*C*R*", fsmAligned, tostring(self.pointerSize),
    false, false, false, false
  )
  memoryScan.waitTillDone()
  
  local foundList = createFoundList(memoryScan)
  foundList.initialize()
  local matchCount = foundList.getCount()
  local activeInstance = nil
  
  if matchCount &gt; 0 then
    activeInstance = tonumber(foundList.getAddress(0), 16)
  end
  
  foundList.destroy()
  memoryScan.destroy()
  return activeInstance
end

function DynamicProcessEngine:findFieldByCriteria(objectAddress, maxSearchBytes, criteriaFunction)
  if not self:isMemoryValid(objectAddress) then return nil end
  local step = self.pointerSize
  for offset = step, maxSearchBytes, step do
    local candidateAddress = objectAddress + offset
    local value = readInteger(candidateAddress)
    if criteriaFunction(value, offset, candidateAddress) then
      return offset
    end
  end
  return nil
end

function DynamicProcessEngine:trackInstance(trackerId, className, updateIntervalMs, onInstanceAcquired, onInstanceLost)
  local targetVtable = self:getVtable(className)
  if not targetVtable then
    print(string.format("[DynamicEngine] Class '%s' not found in RTTI registry.", className))
    return nil
  end
  
  local trackerState = {
    className = className,
    expectedVtable = targetVtable,
    currentAddress = nil,
    isActive = true
  }
  
  local trackerTimer = createTimer(nil, false)
  trackerTimer.Interval = updateIntervalMs or 250
  
  trackerTimer.OnTimer = function(timer)
    if not trackerState.isActive then
      timer.destroy()
      return
    end
    
    local isValid = self:isMemoryValid(trackerState.currentAddress, trackerState.expectedVtable)
    if not isValid then
      if trackerState.currentAddress ~= nil then
        trackerState.currentAddress = nil
        if onInstanceLost then onInstanceLost() end
      end
      
      local newAddress = self:findActiveInstance(trackerState.className)
      if newAddress then
        trackerState.currentAddress = newAddress
        if onInstanceAcquired then onInstanceAcquired(newAddress) end
      end
    end
  end
  
  trackerTimer.setEnabled(true)
  self.activeTrackers[trackerId] = { timer = trackerTimer, state = trackerState }
  return trackerState
end

function DynamicProcessEngine:stopTracker(trackerId)
  local tracker = self.activeTrackers[trackerId]
  if tracker then
    tracker.state.isActive = false
    tracker.timer.destroy()
    self.activeTrackers[trackerId] = nil
  end
end

function DynamicProcessEngine:cleanup()
  for trackerId, tracker in pairs(self.activeTrackers) do
    tracker.state.isActive = false
    tracker.timer.destroy()
  end
  self.activeTrackers = {}
  self.vtableCache = {}
end

-- Instantiate global singleton
_G.DynamicEngine = DynamicProcessEngine.new()
print("[DynamicEngine] Core framework initialized and active in Cheat Engine.")
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.DynamicEngine then
  _G.DynamicEngine:cleanup()
  _G.DynamicEngine = nil
  print("[DynamicEngine] Core framework deactivated and cleaned up.")
end
{$asm}
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>27036</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite SP (Auto-Switch Support)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine or not _G.DynamicEngine.vtableCache then
  error("[Infinite SP] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local vtable = _G.DynamicEngine.vtableCache["FieldMap"]
if not vtable then
  error("[Infinite SP] FieldMap class not found in RTTI registry!")
end

local function readDword(addr)
  local b = readBytes(addr, 4, true)
  if b and #b == 4 then
    return b[1] + b[2] * 256 + b[3] * 65536 + b[4] * 16777216
  end
  return nil
end

local vfn0 = readDword(vtable)
if not vfn0 then
  error("[Infinite SP] Could not resolve FieldMap virtual method table!")
end

local codeBytes = readBytes(vfn0, 0x50000, true)
if not codeBytes then
  error("[Infinite SP] Failed to read FieldMap code segment!")
end

local injectionSite = nil
local memberOffset = nil

-- Pure structural introspection: find the FieldMap member function that reads
-- [ecx + offset] and updates that exact same [ecx + offset]
for i = 1, #codeBytes - 35 do
  if codeBytes[i] == 0x55 and codeBytes[i+1] == 0x8B and codeBytes[i+2] == 0xEC then
    -- movss xmm0, [ecx + offset]
    if codeBytes[i+3] == 0xF3 and codeBytes[i+4] == 0x0F and codeBytes[i+5] == 0x10 and codeBytes[i+6] == 0x81 then
      local readOff = codeBytes[i+7] + codeBytes[i+8] * 256 + codeBytes[i+9] * 65536 + codeBytes[i+10] * 16777216
      
      -- Locate matching store instruction within function body
      for j = i + 15, i + 40 do
        if codeBytes[j] == 0xF3 and codeBytes[j+1] == 0x0F and codeBytes[j+2] == 0x11 and (codeBytes[j+3] == 0x89 or codeBytes[j+3] == 0x91) then
          local writeOff = codeBytes[j+4] + codeBytes[j+5] * 256 + codeBytes[j+6] * 65536 + codeBytes[j+7] * 16777216
          if writeOff == readOff then
            injectionSite = vfn0 + j - 1
            memberOffset = writeOff
            break
          end
        end
      end
      if injectionSite then break end
    end
  end
end

if not injectionSite then
  error("[Infinite SP] Could not dynamically locate SP update function in FieldMap code!")
end

local patchAddress = injectionSite + 3
_G.InfiniteSpPatchState = {
  address = patchAddress,
  originalByte = 0x89,
  offset = memberOffset
}

-- Patch movss [ecx+offset], xmm1 -&gt; movss [ecx+offset], xmm2 (maximum)
writeBytes(patchAddress, 0x91)
print(string.format("[Infinite SP] Active: resolved FieldMap member +0x%X at 0x%X, patched instruction to xmm2", memberOffset, patchAddress))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.InfiniteSpPatchState then
  writeBytes(_G.InfiniteSpPatchState.address, _G.InfiniteSpPatchState.originalByte)
  print(string.format("[Infinite SP] Disabled: restored instruction at 0x%X to original", _G.InfiniteSpPatchState.address))
  _G.InfiniteSpPatchState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27037</ID>
          <Description>"&gt;&gt; [ Feature ] God Mode (Auto-Switch Support)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine or not _G.DynamicEngine.vtableCache then
  error("[God Mode] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local fmVtable = _G.DynamicEngine.vtableCache["FieldMap"]
local cwVtable = _G.DynamicEngine.vtableCache["CharWork"]
if not fmVtable or not cwVtable then
  error("[God Mode] Required engine classes (FieldMap / CharWork) not found in RTTI registry!")
end

local function readDword(addr)
  local b = readBytes(addr, 4, true)
  if b and #b == 4 then
    return b[1] + b[2] * 256 + b[3] * 65536 + b[4] * 16777216
  end
  return nil
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Introspect CharWork to resolve character type offset and IsDead function
local vfn8 = readDword(cwVtable + 8 * 4)
if not vfn8 then
  error("[God Mode] Failed to read CharWork virtual method table!")
end

local cwBytes = readBytes(vfn8, 0x200, true)
local typeOffset = nil
local isDeadFunc = nil

for i = 1, #cwBytes - 12 do
  -- Match: push esi (56), mov esi, ecx (8B F1), mov al, [esi + offset] (8A 86 ..), cmp al, 1 (3C 01)
  if cwBytes[i] == 0x56 and cwBytes[i+1] == 0x8B and cwBytes[i+2] == 0xF1 and
     cwBytes[i+3] == 0x8A and cwBytes[i+4] == 0x86 and
     cwBytes[i+9] == 0x3C and cwBytes[i+10] == 0x01 then
    typeOffset = cwBytes[i+5] + cwBytes[i+6]*256 + cwBytes[i+7]*65536 + cwBytes[i+8]*16777216
    isDeadFunc = vfn8 + i - 1
    break
  end
end

if not typeOffset or not isDeadFunc then
  error("[God Mode] Failed to dynamically introspect CharWork::IsDead and typeOffset!")
end

-- 2. Introspect FieldMap code stream to locate combat hit dispatch and exit
local fmVfn0 = readDword(fmVtable)
if not fmVfn0 then
  error("[God Mode] Failed to read FieldMap virtual method table!")
end

local fmBytes = readBytes(fmVfn0, 0x15000, true)
if not fmBytes then
  error("[God Mode] Failed to read FieldMap code segment!")
end

local injectionSite = nil
local exitCombatHitAddr = nil
local returnContinue = nil
local prevCallSite = nil

for i = 1, #fmBytes - 20 do
  if fmBytes[i] == 0xE8 then
    local rel = fmBytes[i+1] + fmBytes[i+2]*256 + fmBytes[i+3]*65536 + fmBytes[i+4]*16777216
    if rel &gt; 0x7FFFFFFF then rel = rel - 0x100000000 end
    local target = fmVfn0 + i - 1 + 5 + rel
    if target == isDeadFunc then
      if prevCallSite and (fmVfn0 + i - 1 - prevCallSite &lt; 30) then
        local callAddr = fmVfn0 + i - 1
        -- Defender check: preceded by mov ecx, edi (8B CF)
        if fmBytes[i-2] == 0x8B and fmBytes[i-1] == 0xCF then
          injectionSite = callAddr - 2
          -- Followed by test al, al (84 C0) and jne exitCombatHitAddr (0F 85 rel32)
          if fmBytes[i+5] == 0x84 and fmBytes[i+6] == 0xC0 and
             fmBytes[i+7] == 0x0F and fmBytes[i+8] == 0x85 then
            local jneRel = fmBytes[i+9] + fmBytes[i+10]*256 + fmBytes[i+11]*65536 + fmBytes[i+12]*16777216
            if jneRel &gt; 0x7FFFFFFF then jneRel = jneRel - 0x100000000 end
            exitCombatHitAddr = callAddr + 5 + 2 + 6 + jneRel
            returnContinue = callAddr + 5 + 2 + 6
            break
          end
        end
      end
      prevCallSite = fmVfn0 + i - 1
    end
  end
end

if not injectionSite or not exitCombatHitAddr or not returnContinue then
  error("[God Mode] Failed to locate combat hit processing routine in FieldMap!")
end

-- 3. Allocate codecave and construct detoured inspection logic
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[God Mode] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- cmp byte ptr [edi + typeOffset], 01
table.insert(caveBytes, 0x80)
table.insert(caveBytes, 0xBF)
local toBytes = toDwordBytes(typeOffset)
for _, b in ipairs(toBytes) do table.insert(caveBytes, b) end
table.insert(caveBytes, 0x01)

-- je exitCombatHitAddr (skip hit handling completely for party members)
local jeRel = exitCombatHitAddr - (cave + #caveBytes + 6)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x84)
local jeBytes = toDwordBytes(jeRel)
for _, b in ipairs(jeBytes) do table.insert(caveBytes, b) end

-- mov ecx, edi (restore target for monsters)
table.insert(caveBytes, 0x8B)
table.insert(caveBytes, 0xCF)

-- call isDeadFunc
local callRel = isDeadFunc - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE8)
local callBytes = toDwordBytes(callRel)
for _, b in ipairs(callBytes) do table.insert(caveBytes, b) end

-- test al, al
table.insert(caveBytes, 0x84)
table.insert(caveBytes, 0xC0)

-- jne exitCombatHitAddr
local jneRel = exitCombatHitAddr - (cave + #caveBytes + 6)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x85)
local jneBytes = toDwordBytes(jneRel)
for _, b in ipairs(jneBytes) do table.insert(caveBytes, b) end

-- jmp returnContinue (continue normal combat hit processing for alive monsters)
local jmpRel = returnContinue - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
local jmpBytes = toDwordBytes(jmpRel)
for _, b in ipairs(jmpBytes) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 4. Hook injectionSite: jmp cave + NOP padding to replace exactly 15 bytes
local originalBytes = readBytes(injectionSite, 15, true)
_G.PartyGodModeState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
local hookRelBytes = toDwordBytes(hookRel)
for _, b in ipairs(hookRelBytes) do table.insert(hookBytes, b) end
while #hookBytes &lt; 15 do
  table.insert(hookBytes, 0x90) -- NOP
end

writeBytes(injectionSite, hookBytes)

print(string.format("[God Mode] Active: detoured combat hit at 0x%X (party type +0x%X) -&gt; codecave 0x%X", injectionSite, typeOffset, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyGodModeState then
  writeBytes(_G.PartyGodModeState.injectionSite, _G.PartyGodModeState.originalBytes)
  deAlloc(_G.PartyGodModeState.cave)
  print(string.format("[God Mode] Disabled: restored original instructions at 0x%X and deallocated codecave", _G.PartyGodModeState.injectionSite))
  _G.PartyGodModeState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27038</ID>
          <Description>"&gt;&gt; [ Feature ] One-Hit Kill / Safe Instant Elimination (Boss &amp; Script Safe)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine or not _G.DynamicEngine.vtableCache then
  error("[One-Hit Kill] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local fmVtable = _G.DynamicEngine.vtableCache["FieldMap"]
local cwVtable = _G.DynamicEngine.vtableCache["CharWork"]
if not fmVtable or not cwVtable then
  error("[One-Hit Kill] Required engine classes (FieldMap / CharWork) not found in RTTI registry!")
end

local function readDword(addr)
  local b = readBytes(addr, 4, true)
  if b and #b == 4 then
    return b[1] + b[2] * 256 + b[3] * 65536 + b[4] * 16777216
  end
  return nil
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Introspect CharWork virtual method table to dynamically resolve character category offset (typeOffset)
local vfn8 = readDword(cwVtable + 8 * 4)
if not vfn8 then
  error("[One-Hit Kill] Failed to read CharWork virtual method table!")
end

local cwBytes = readBytes(vfn8, 0x200, true)
local typeOffset = nil
for i = 1, #cwBytes - 12 do
  if cwBytes[i] == 0x56 and cwBytes[i+1] == 0x8B and cwBytes[i+2] == 0xF1 and
     cwBytes[i+3] == 0x8A and cwBytes[i+4] == 0x86 and
     cwBytes[i+9] == 0x3C and cwBytes[i+10] == 0x01 then
    typeOffset = cwBytes[i+5] + cwBytes[i+6]*256 + cwBytes[i+7]*65536 + cwBytes[i+8]*16777216
    break
  end
end

if not typeOffset then
  error("[One-Hit Kill] Failed to dynamically introspect CharWork::IsDead and typeOffset!")
end

-- 2. Introspect FieldMap code segment to locate combat damage application and threshold clamping logic
local fmVfn0 = readDword(fmVtable)
if not fmVfn0 then
  error("[One-Hit Kill] Failed to read FieldMap virtual method table!")
end

local fmBytes = readBytes(fmVfn0, 0x15000, true)
if not fmBytes then
  error("[One-Hit Kill] Failed to read FieldMap code segment!")
end

local injectionSite = nil
local dmgDisp = nil

for i = 1, #fmBytes - 35 do
  if fmBytes[i] == 0xF3 and fmBytes[i+1] == 0x0F and fmBytes[i+2] == 0x10 and fmBytes[i+3] == 0x9D and
     fmBytes[i+8] == 0x85 and fmBytes[i+9] == 0xD2 and fmBytes[i+10] == 0x75 and
     fmBytes[i+18] == 0xF3 and fmBytes[i+19] == 0x0F and fmBytes[i+20] == 0x10 and fmBytes[i+21] == 0x00 and
     fmBytes[i+22] == 0xF3 and fmBytes[i+23] == 0x0F and fmBytes[i+24] == 0x10 and fmBytes[i+25] == 0x48 and fmBytes[i+26] == 0x20 and
     fmBytes[i+27] == 0xF3 and fmBytes[i+28] == 0x0F and fmBytes[i+29] == 0x5C and fmBytes[i+30] == 0xC3 then
    injectionSite = fmVfn0 + i - 1
    dmgDisp = fmBytes[i+4] + fmBytes[i+5]*256 + fmBytes[i+6]*65536 + fmBytes[i+7]*16777216
    break
  end
end

if not injectionSite or not dmgDisp then
  error("[One-Hit Kill] Failed to locate damage application pipeline in FieldMap!")
end

local retAddr = injectionSite + 10 -- replacing 10 bytes (movss xmm3, [ebp+dmgDisp] + test edx, edx)

-- 3. Allocate codecave and construct detoured execution logic
local cave = allocateMemory(128)
if not cave or cave == 0 then
  error("[One-Hit Kill] Failed to allocate executable memory for codecave!")
end

local floatAddr = cave + 0x60
local caveBytes = {}

-- Step 1: movss xmm3, [ebp + dmgDisp] (F3 0F 10 9D ..)
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x10)
table.insert(caveBytes, 0x9D)
for _, b in ipairs(toDwordBytes(dmgDisp)) do table.insert(caveBytes, b) end

-- Step 2: xorps xmm0, xmm0 (0F 57 C0)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x57)
table.insert(caveBytes, 0xC0)

-- Step 3: comiss xmm3, xmm0 (0F 2F D8)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x2F)
table.insert(caveBytes, 0xD8)

-- Step 4: jbe normal_exit (76 rel8) - preserve 0.0f damage (misses or invulnerability frames)
local jbeIdx = #caveBytes + 1
table.insert(caveBytes, 0x76)
table.insert(caveBytes, 0x00)

-- Step 5: mov eax, [ebp+08] (8B 45 08) - Attacker CharWork*
table.insert(caveBytes, 0x8B)
table.insert(caveBytes, 0x45)
table.insert(caveBytes, 0x08)

-- Step 6: test eax, eax (85 C0)
table.insert(caveBytes, 0x85)
table.insert(caveBytes, 0xC0)

-- Step 7: jz normal_exit (74 rel8)
local jz1Idx = #caveBytes + 1
table.insert(caveBytes, 0x74)
table.insert(caveBytes, 0x00)

-- Step 8: mov cl, [eax + typeOffset] (8A 88 ..)
table.insert(caveBytes, 0x8A)
table.insert(caveBytes, 0x88)
for _, b in ipairs(toDwordBytes(typeOffset)) do table.insert(caveBytes, b) end

-- Step 9: cmp cl, 01 (80 F9 01) - Active Party Leader
table.insert(caveBytes, 0x80)
table.insert(caveBytes, 0xF9)
table.insert(caveBytes, 0x01)

-- Step 10: je check_defender (74 05)
table.insert(caveBytes, 0x74)
table.insert(caveBytes, 0x05)

-- Step 11: cmp cl, 0B (80 F9 0B) - Active Party Secondary / Partner
table.insert(caveBytes, 0x80)
table.insert(caveBytes, 0xF9)
table.insert(caveBytes, 0x0B)

-- Step 12: jne normal_exit (75 rel8)
local jne1Idx = #caveBytes + 1
table.insert(caveBytes, 0x75)
table.insert(caveBytes, 0x00)

-- check_defender:
-- Step 13: test edi, edi (85 FF) - Defender CharWork*
table.insert(caveBytes, 0x85)
table.insert(caveBytes, 0xFF)

-- Step 14: jz normal_exit (74 rel8)
local jz2Idx = #caveBytes + 1
table.insert(caveBytes, 0x74)
table.insert(caveBytes, 0x00)

-- Step 15: mov cl, [edi + typeOffset] (8A 8F ..)
table.insert(caveBytes, 0x8A)
table.insert(caveBytes, 0x8F)
for _, b in ipairs(toDwordBytes(typeOffset)) do table.insert(caveBytes, b) end

-- Step 16: cmp cl, 02 (80 F9 02) - Monster / Boss
table.insert(caveBytes, 0x80)
table.insert(caveBytes, 0xF9)
table.insert(caveBytes, 0x02)

-- Step 17: jne normal_exit (75 rel8)
local jne2Idx = #caveBytes + 1
table.insert(caveBytes, 0x75)
table.insert(caveBytes, 0x00)

-- Step 18: Amplify damage! (Attacker is Party, Defender is Monster, Damage &gt; 0)
-- movss xmm3, [floatAddr] (F3 0F 10 1D ..)
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x10)
table.insert(caveBytes, 0x1D)
for _, b in ipairs(toDwordBytes(floatAddr)) do table.insert(caveBytes, b) end

-- movss [ebp + dmgDisp], xmm3 (F3 0F 11 9D ..)
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x11)
table.insert(caveBytes, 0x9D)
for _, b in ipairs(toDwordBytes(dmgDisp)) do table.insert(caveBytes, b) end

-- normal_exit label:
local normalExitOffset = #caveBytes
caveBytes[jbeIdx + 1] = normalExitOffset - (jbeIdx + 1)
caveBytes[jz1Idx + 1] = normalExitOffset - (jz1Idx + 1)
caveBytes[jne1Idx + 1] = normalExitOffset - (jne1Idx + 1)
caveBytes[jz2Idx + 1] = normalExitOffset - (jz2Idx + 1)
caveBytes[jne2Idx + 1] = normalExitOffset - (jne2Idx + 1)

-- Step 19: test edx, edx (85 D2) - restore original instruction
table.insert(caveBytes, 0x85)
table.insert(caveBytes, 0xD2)

-- Step 20: jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

-- Step 21: Pad to floatAddr (0x60)
while #caveBytes &lt; 0x60 do
  table.insert(caveBytes, 0x90)
end

-- Step 22: Store huge damage float (9999999.0f -&gt; 0x4B18967F -&gt; 7F 96 18 4B)
table.insert(caveBytes, 0x7F)
table.insert(caveBytes, 0x96)
table.insert(caveBytes, 0x18)
table.insert(caveBytes, 0x4B)

writeBytes(cave, caveBytes)

-- 4. Hook injectionSite: jmp cave + 5 NOPs to replace exactly 10 bytes
local originalBytes = readBytes(injectionSite, 10, true)
_G.PartyOneHitKillState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 10 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[One-Hit Kill] Active: hooked damage pipeline at 0x%X (party type +0x%X, dmgDisp 0x%X) -&gt; codecave 0x%X",
  injectionSite, typeOffset, dmgDisp, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyOneHitKillState then
  writeBytes(_G.PartyOneHitKillState.injectionSite, _G.PartyOneHitKillState.originalBytes)
  deAlloc(_G.PartyOneHitKillState.cave)
  print(string.format("[One-Hit Kill] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.PartyOneHitKillState.injectionSite))
  _G.PartyOneHitKillState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27039</ID>
          <Description>"&gt;&gt; [ Feature ] Perfect Combo (Instant 999 Hits &amp; Infinite Chain Timer)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine or not _G.DynamicEngine.vtableCache then
  error("[Perfect Combo] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local fmVtable = _G.DynamicEngine.vtableCache["FieldMap"]
if not fmVtable then
  error("[Perfect Combo] Required engine class (FieldMap) not found in RTTI registry!")
end

local function readDword(addr)
  local b = readBytes(addr, 4, true)
  if b and #b == 4 then
    return b[1] + b[2] * 256 + b[3] * 65536 + b[4] * 16777216
  end
  return nil
end

local fmVfn0 = readDword(fmVtable)
if not fmVfn0 then
  error("[Perfect Combo] Failed to read FieldMap virtual method table!")
end

local fmBytes = readBytes(fmVfn0, 0x20000, true)
if not fmBytes then
  error("[Perfect Combo] Failed to read FieldMap code segment!")
end

-- 1. Locate 999 Hits cap instruction (cmova eax, edi -&gt; cmovb eax, edi)
local hitsPatchAddr = nil
for i = 1, #fmBytes - 30 do
  if fmBytes[i] == 0xBF and fmBytes[i+1] == 0xE7 and fmBytes[i+2] == 0x03 and fmBytes[i+3] == 0x00 and fmBytes[i+4] == 0x00 and
     fmBytes[i+23] == 0x0F and fmBytes[i+24] == 0x47 and fmBytes[i+25] == 0xC7 and
     fmBytes[i+26] == 0x89 and fmBytes[i+27] == 0x86 then
    hitsPatchAddr = fmVfn0 + i - 1 + 24
    break
  end
end

-- 2. Locate Combo Chain Timer drain instruction (subss xmm0, xmm1 -&gt; 4 NOPs)
local timerPatchAddr = nil
for i = 1, #fmBytes - 25 do
  if fmBytes[i] == 0xF3 and fmBytes[i+1] == 0x0F and fmBytes[i+2] == 0x10 and fmBytes[i+3] == 0x87 and
     fmBytes[i+8] == 0xF3 and fmBytes[i+9] == 0x0F and fmBytes[i+10] == 0x59 and fmBytes[i+11] == 0xCA and
     fmBytes[i+12] == 0xF3 and fmBytes[i+13] == 0x0F and fmBytes[i+14] == 0x5C and fmBytes[i+15] == 0xC1 and
     fmBytes[i+16] == 0xF3 and fmBytes[i+17] == 0x0F and fmBytes[i+18] == 0x11 and fmBytes[i+19] == 0x87 then
    timerPatchAddr = fmVfn0 + i - 1 + 12
    break
  end
end

if not hitsPatchAddr or not timerPatchAddr then
  error("[Perfect Combo] Failed to dynamically locate combo hit cap or timer routines in FieldMap!")
end

-- 3. Save original bytes for clean restoration
local originalHitsByte = readBytes(hitsPatchAddr, 1, false)
local originalTimerBytes = readBytes(timerPatchAddr, 4, true)

_G.PartyPerfectComboState = {
  hitsPatchAddr = hitsPatchAddr,
  originalHitsByte = originalHitsByte,
  timerPatchAddr = timerPatchAddr,
  originalTimerBytes = originalTimerBytes
}

-- 4. Apply patches
-- Patch cmova (0x47) to cmovb (0x42)
writeBytes(hitsPatchAddr, 0x42)

-- Patch subss xmm0, xmm1 (F3 0F 5C C1) to 4 NOPs
writeBytes(timerPatchAddr, { 0x90, 0x90, 0x90, 0x90 })

print(string.format("[Perfect Combo] Active: patched 999 Hits at 0x%X and froze combo timer at 0x%X",
  hitsPatchAddr, timerPatchAddr))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyPerfectComboState then
  writeBytes(_G.PartyPerfectComboState.hitsPatchAddr, _G.PartyPerfectComboState.originalHitsByte)
  writeBytes(_G.PartyPerfectComboState.timerPatchAddr, _G.PartyPerfectComboState.originalTimerBytes)
  print(string.format("[Perfect Combo] Disabled: restored original instructions at 0x%X and 0x%X",
    _G.PartyPerfectComboState.hitsPatchAddr, _G.PartyPerfectComboState.timerPatchAddr))
  _G.PartyPerfectComboState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27040</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite Shield / Barrier"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite Shield] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x200000, true)
if not code then
  error("[Infinite Shield] Failed to read process code segment!")
end

-- Locate instruction: movss [eax+edi+04], xmm0 (F3 0F 11 44 38 04)
-- Preceded by movss xmm3, [maxShieldFloat] ... shl eax, 04 ... subss xmm0, xmm1
local patchAddr = nil
for i = 1, #code - 30 do
  if code[i] == 0xF3 and code[i+1] == 0x0F and code[i+2] == 0x10 and code[i+3] == 0x1D and
     code[i+8] == 0x8B and code[i+9] == 0xC6 and
     code[i+10] == 0xC1 and code[i+11] == 0xE0 and code[i+12] == 0x04 and
     code[i+13] == 0xF3 and code[i+14] == 0x0F and code[i+15] == 0x10 and code[i+16] == 0x44 and code[i+17] == 0x38 and code[i+18] == 0x04 and
     code[i+19] == 0xF3 and code[i+20] == 0x0F and code[i+21] == 0x5C and code[i+22] == 0xC1 and
     code[i+34] == 0xF3 and code[i+35] == 0x0F and code[i+36] == 0x11 and code[i+37] == 0x44 and code[i+38] == 0x38 and code[i+39] == 0x04 then
    patchAddr = base + i - 1 + 37 -- points to 0x44 in F3 0F 11 44 38 04
    break
  end
end

if not patchAddr then
  error("[Infinite Shield] Failed to dynamically locate shield deduction instruction!")
end

local originalByte = readBytes(patchAddr, 1, false)
_G.PartyInfiniteShieldState = {
  patchAddr = patchAddr,
  originalByte = originalByte
}

-- Patch 0x44 (movss [eax+edi+04], xmm0) to 0x5C (movss [eax+edi+04], xmm3 = 100.0f)
writeBytes(patchAddr, 0x5C)

print(string.format("[Infinite Shield] Active: patched shield write at 0x%X (0x44 -&gt; 0x5C)", patchAddr))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyInfiniteShieldState then
  writeBytes(_G.PartyInfiniteShieldState.patchAddr, _G.PartyInfiniteShieldState.originalByte)
  print(string.format("[Infinite Shield] Disabled: restored original byte 0x%02X at 0x%X",
    _G.PartyInfiniteShieldState.originalByte, _G.PartyInfiniteShieldState.patchAddr))
  _G.PartyInfiniteShieldState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27041</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite Items / Set Checked Items Quantity to 80 (Safe Stack)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite Items] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x300000, true)
if not code then
  error("[Infinite Items] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate Inventory::GetItemCount return routine
-- Pattern: add eax, eax (03 C0) followed by mov ax, [edi+eax*8+04] (66 8B 44 C7 04) and function epilogue (5F 5E 5D C2 08 00)
local injectionSite = nil
for i = 1, #code - 15 do
  if code[i] == 0x03 and code[i+1] == 0xC0 and
     code[i+2] == 0x66 and code[i+3] == 0x8B and code[i+4] == 0x44 and code[i+5] == 0xC7 and code[i+6] == 0x04 and
     code[i+7] == 0x5F and code[i+8] == 0x5E and code[i+9] == 0x5D and
     code[i+10] == 0xC2 and code[i+11] == 0x08 and code[i+12] == 0x00 then
    injectionSite = base + i - 1 + 2 -- points to 66 8B 44 C7 04
    break
  end
end

if not injectionSite then
  error("[Infinite Items] Failed to dynamically locate inventory quantity retrieval routine!")
end

local retAddr = injectionSite + 5 -- replacing 5 bytes

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Infinite Items] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- mov dword ptr [edi+eax*8+04], 00000050 (sets item quantity to 80 / 0x50)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x44)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x04)
table.insert(caveBytes, 0x50)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)

-- mov ax, [edi+eax*8+04]
table.insert(caveBytes, 0x66)
table.insert(caveBytes, 0x8B)
table.insert(caveBytes, 0x44)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x04)

-- jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 3. Install 5-byte jmp hook
local originalBytes = readBytes(injectionSite, 5, true)
_G.InfiniteItemsState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end

writeBytes(injectionSite, hookBytes)

print(string.format("[Infinite Items] Active: hooked inventory quantity at 0x%X -&gt; codecave 0x%X (quantity set to 80)",
  injectionSite, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.InfiniteItemsState then
  writeBytes(_G.InfiniteItemsState.injectionSite, _G.InfiniteItemsState.originalBytes)
  deAlloc(_G.InfiniteItemsState.cave)
  print(string.format("[Infinite Items] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.InfiniteItemsState.injectionSite))
  _G.InfiniteItemsState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27042</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite EX Points / EX Skills"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite EX Points] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x300000, true)
if not code then
  error("[Infinite EX Points] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate EX Points update routine
-- Pattern: call [GetFieldMap] (E8 ..) followed by movss xmm0, [eax + exOffset] (F3 0F 10 80 ..)
local injectionSite = nil
local exOffset = nil
for i = 1, #code - 25 do
  if code[i] == 0xE8 and
     code[i+5] == 0xF3 and code[i+6] == 0x0F and code[i+7] == 0x10 and code[i+8] == 0x80 and
     code[i+13] == 0xF3 and code[i+14] == 0x0F and code[i+15] == 0x11 and code[i+16] == 0x45 and code[i+17] == 0xFC and
     code[i+18] == 0xF3 and code[i+19] == 0x0F and code[i+20] == 0x58 and code[i+21] == 0x83 then
    injectionSite = base + i - 1 + 5
    exOffset = code[i+9] + code[i+10]*256 + code[i+11]*65536 + code[i+12]*16777216
    break
  end
end

if not injectionSite or not exOffset then
  error("[Infinite EX Points] Failed to dynamically locate EX Points routine!")
end

local retAddr = injectionSite + 8 -- replacing 8 bytes

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Infinite EX Points] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- movss xmm0, [eax + exOffset]
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x10)
table.insert(caveBytes, 0x80)
for _, b in ipairs(toDwordBytes(exOffset)) do table.insert(caveBytes, b) end

-- mov dword ptr [eax + exOffset], 42100000 ((float)36.0)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x80)
for _, b in ipairs(toDwordBytes(exOffset)) do table.insert(caveBytes, b) end
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x10)
table.insert(caveBytes, 0x42)

-- jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 3. Install 8-byte hook (jmp cave + 3 NOPs)
local originalBytes = readBytes(injectionSite, 8, true)
_G.PartyInfiniteEXState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 8 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Infinite EX Points] Active: hooked EX Points at 0x%X (offset +0x%X) -&gt; codecave 0x%X",
  injectionSite, exOffset, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyInfiniteEXState then
  writeBytes(_G.PartyInfiniteEXState.injectionSite, _G.PartyInfiniteEXState.originalBytes)
  deAlloc(_G.PartyInfiniteEXState.cave)
  print(string.format("[Infinite EX Points] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.PartyInfiniteEXState.injectionSite))
  _G.PartyInfiniteEXState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27043</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite X-Drive Gauge"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite X-Drive] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x300000, true)
if not code then
  error("[Infinite X-Drive] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate X-Drive gauge update routine
-- Pattern: call [GetFieldMap] (E8 ..) followed by cvttss2si eax, [eax + xDriveOffset] (F3 0F 2C 80 ..)
local injectionSite = nil
local xDriveOffset = nil
for i = 1, #code - 25 do
  if code[i] == 0xE8 and
     code[i+5] == 0xF3 and code[i+6] == 0x0F and code[i+7] == 0x2C and code[i+8] == 0x80 and
     code[i+13] == 0x50 and code[i+14] == 0x68 and
     code[i+19] == 0x8D and code[i+20] == 0x45 and code[i+21] == 0xDC then
    injectionSite = base + i - 1 + 5
    xDriveOffset = code[i+9] + code[i+10]*256 + code[i+11]*65536 + code[i+12]*16777216
    break
  end
end

if not injectionSite or not xDriveOffset then
  error("[Infinite X-Drive] Failed to dynamically locate X-Drive routine!")
end

local retAddr = injectionSite + 8 -- replacing 8 bytes

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Infinite X-Drive] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- mov dword ptr [eax + xDriveOffset], 42C80000 ((float)100.0)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x80)
for _, b in ipairs(toDwordBytes(xDriveOffset)) do table.insert(caveBytes, b) end
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0xC8)
table.insert(caveBytes, 0x42)

-- cvttss2si eax, [eax + xDriveOffset]
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x2C)
table.insert(caveBytes, 0x80)
for _, b in ipairs(toDwordBytes(xDriveOffset)) do table.insert(caveBytes, b) end

-- jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 3. Install 8-byte hook (jmp cave + 3 NOPs)
local originalBytes = readBytes(injectionSite, 8, true)
_G.PartyInfiniteXDriveState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 8 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Infinite X-Drive] Active: hooked X-Drive at 0x%X (offset +0x%X) -&gt; codecave 0x%X",
  injectionSite, xDriveOffset, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyInfiniteXDriveState then
  writeBytes(_G.PartyInfiniteXDriveState.injectionSite, _G.PartyInfiniteXDriveState.originalBytes)
  deAlloc(_G.PartyInfiniteXDriveState.cave)
  print(string.format("[Infinite X-Drive] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.PartyInfiniteXDriveState.injectionSite))
  _G.PartyInfiniteXDriveState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27044</ID>
          <Description>"&gt;&gt; [ Feature ] Max Soul Points / Soul Level (Auto-Update on Inspection)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Soul Points] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x400000, true)
if not code then
  error("[Soul Points] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate PartyManager::GetSoulPoints routine
-- Pattern: mov ax, [ebp+08] ... cmp ax, 18 ... movzx eax, ax ... mov eax, [ecx+eax*4+soulOffset] ... pop ebp
local injectionSite = nil
local soulOffset = nil
for i = 1, #code - 25 do
  if code[i] == 0x66 and code[i+1] == 0x8B and code[i+2] == 0x45 and code[i+3] == 0x08 and
     code[i+4] == 0x66 and code[i+5] == 0x83 and code[i+6] == 0xF8 and code[i+7] == 0x18 and
     code[i+8] == 0x72 and code[i+9] == 0x06 and
     code[i+10] == 0x33 and code[i+11] == 0xC0 and code[i+12] == 0x5D and
     code[i+13] == 0xC2 and code[i+14] == 0x04 and code[i+15] == 0x00 and
     code[i+16] == 0x0F and code[i+17] == 0xB7 and code[i+18] == 0xC0 and
     code[i+19] == 0x8B and code[i+20] == 0x44 and code[i+21] == 0x81 and
     code[i+23] == 0x5D then
    injectionSite = base + i - 1 + 19
    soulOffset = code[i+22]
    break
  end
end

if not injectionSite or not soulOffset then
  error("[Soul Points] Failed to dynamically locate Soul Points routine!")
end

local retAddr = injectionSite + 5 -- replacing 5 bytes (mov eax, [ecx+eax*4+18] + pop ebp)

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Soul Points] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- mov dword ptr [ecx+eax*4+soulOffset], 00002710 (10000 Soul Points)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x44)
table.insert(caveBytes, 0x81)
table.insert(caveBytes, soulOffset)
table.insert(caveBytes, 0x10)
table.insert(caveBytes, 0x27)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)

-- mov eax, [ecx+eax*4+soulOffset]
table.insert(caveBytes, 0x8B)
table.insert(caveBytes, 0x44)
table.insert(caveBytes, 0x81)
table.insert(caveBytes, soulOffset)

-- pop ebp
table.insert(caveBytes, 0x5D)

-- jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 3. Install 5-byte hook (exact fit, zero NOPs needed)
local originalBytes = readBytes(injectionSite, 5, true)
_G.SoulPointsState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end

writeBytes(injectionSite, hookBytes)

print(string.format("[Soul Points] Active: hooked Soul Points at 0x%X (offset +0x%X) -&gt; codecave 0x%X",
  injectionSite, soulOffset, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.SoulPointsState then
  writeBytes(_G.SoulPointsState.injectionSite, _G.SoulPointsState.originalBytes)
  deAlloc(_G.SoulPointsState.cave)
  print(string.format("[Soul Points] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.SoulPointsState.injectionSite))
  _G.SoulPointsState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27045</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite X-Strike Gauge (Max Points)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite X-Strike] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x300000, true)
if not code then
  error("[Infinite X-Strike] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate X-Strike gauge update routine
-- Pattern: call [GetFieldMap] (E8 ..) followed by cvttss2si esi, [eax + xStrikeOffset] (F3 0F 2C B0 ..) then mov eax, [ebp-44] (8B 45 BC)
local injectionSite = nil
local xStrikeOffset = nil
for i = 1, #code - 30 do
  if code[i] == 0xE8 and
     code[i+5] == 0xF3 and code[i+6] == 0x0F and code[i+7] == 0x2C and code[i+8] == 0xB0 and
     code[i+13] == 0x8B and code[i+14] == 0x45 and code[i+15] == 0xBC and
     code[i+16] == 0x66 and code[i+17] == 0x85 and code[i+18] == 0xC0 then
    injectionSite = base + i - 1 + 5
    xStrikeOffset = code[i+9] + code[i+10]*256 + code[i+11]*65536 + code[i+12]*16777216
    break
  end
end

if not injectionSite or not xStrikeOffset then
  error("[Infinite X-Strike] Failed to dynamically locate X-Strike routine!")
end

local retAddr = injectionSite + 8 -- replacing 8 bytes

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Infinite X-Strike] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- mov dword ptr [eax + xStrikeOffset], 41C00000 ((float)24.0)
table.insert(caveBytes, 0xC7)
table.insert(caveBytes, 0x80)
for _, b in ipairs(toDwordBytes(xStrikeOffset)) do table.insert(caveBytes, b) end
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0xC0)
table.insert(caveBytes, 0x41)

-- cvttss2si esi, [eax + xStrikeOffset]
table.insert(caveBytes, 0xF3)
table.insert(caveBytes, 0x0F)
table.insert(caveBytes, 0x2C)
table.insert(caveBytes, 0xB0)
for _, b in ipairs(toDwordBytes(xStrikeOffset)) do table.insert(caveBytes, b) end

-- jmp retAddr (E9 rel32)
local jmpRel = retAddr - (cave + #caveBytes + 5)
table.insert(caveBytes, 0xE9)
for _, b in ipairs(toDwordBytes(jmpRel)) do table.insert(caveBytes, b) end

writeBytes(cave, caveBytes)

-- 3. Install 8-byte hook (jmp cave + 3 NOPs)
local originalBytes = readBytes(injectionSite, 8, true)
_G.PartyInfiniteXStrikeState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 8 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Infinite X-Strike] Active: hooked X-Strike at 0x%X (offset +0x%X) -&gt; codecave 0x%X",
  injectionSite, xStrikeOffset, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyInfiniteXStrikeState then
  writeBytes(_G.PartyInfiniteXStrikeState.injectionSite, _G.PartyInfiniteXStrikeState.originalBytes)
  deAlloc(_G.PartyInfiniteXStrikeState.cave)
  print(string.format("[Infinite X-Strike] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.PartyInfiniteXStrikeState.injectionSite))
  _G.PartyInfiniteXStrikeState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27184</ID>
          <Description>"&gt;&gt; [ Feature ] Free Crafting &amp; Upgrades (Bypass Material Requirements / Infinite Materials)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Free Crafting] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x400000, true)
if not code then
  error("[Free Crafting] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate Inventory::GetItemCount "not found" exit
-- Pattern: cmp [ecx], si (66 39 31) -&gt; je +10 (74 10) -&gt; inc eax (40) -&gt; add ecx, 10 (83 C1 10) -&gt; cmp eax, edx (3B C2) -&gt; jb -0D (72 F3)
local injectionSite = nil
for i = 1, #code - 20 do
  if code[i] == 0x66 and code[i+1] == 0x39 and code[i+2] == 0x31 and
     code[i+3] == 0x74 and code[i+4] == 0x10 and
     code[i+5] == 0x40 and
     code[i+6] == 0x83 and code[i+7] == 0xC1 and code[i+8] == 0x10 and
     code[i+9] == 0x3B and code[i+10] == 0xC2 and
     code[i+11] == 0x72 and code[i+12] == 0xF3 then
    injectionSite = base + i - 1 + 13 -- points to pop edi (5F 33 C0 5E 5D C2 08 00)
    break
  end
end

if not injectionSite then
  error("[Free Crafting] Failed to dynamically locate GetItemCount routine!")
end

-- 2. Allocate codecave
local cave = allocateMemory(64)
if not cave or cave == 0 then
  error("[Free Crafting] Failed to allocate executable memory for codecave!")
end

local caveBytes = {}

-- pop edi (5F)
table.insert(caveBytes, 0x5F)

-- mov eax, 00000050 (B8 50 00 00 00) -&gt; returns 80 for any queried unowned material
table.insert(caveBytes, 0xB8)
table.insert(caveBytes, 0x50)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)
table.insert(caveBytes, 0x00)

-- pop esi (5E)
table.insert(caveBytes, 0x5E)

-- pop ebp (5D)
table.insert(caveBytes, 0x5D)

-- ret 0008 (C2 08 00)
table.insert(caveBytes, 0xC2)
table.insert(caveBytes, 0x08)
table.insert(caveBytes, 0x00)

writeBytes(cave, caveBytes)

-- 3. Install 8-byte hook (jmp cave + 3 NOPs)
local originalBytes = readBytes(injectionSite, 8, true)
_G.FreeCraftingState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 8 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Free Crafting] Active: hooked GetItemCount at 0x%X -&gt; codecave 0x%X (all material checks set to 80)",
  injectionSite, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.FreeCraftingState then
  writeBytes(_G.FreeCraftingState.injectionSite, _G.FreeCraftingState.originalBytes)
  deAlloc(_G.FreeCraftingState.cave)
  print(string.format("[Free Crafting] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.FreeCraftingState.injectionSite))
  _G.FreeCraftingState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27185</ID>
          <Description>"&gt;&gt; [ Feature ] Movement Speed Multiplier (Protagonists Only)"</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Movement Speed] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x600000, true)
if not code then
  error("[Movement Speed] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate character movement commit routine
-- Pattern: comiss xmm0, xmm4 (0F 2F C4) -&gt; jbe +A1 (0F 86 A1 00 00 00) -&gt; movss xmm0, [ebp-4C] (F3 0F 10 45 B4)
local matchSite = nil
for i = 1, #code - 20 do
  if code[i] == 0x0F and code[i+1] == 0x2F and code[i+2] == 0xC4 and
     code[i+3] == 0x0F and code[i+4] == 0x86 and code[i+5] == 0xA1 and code[i+6] == 0x00 and code[i+7] == 0x00 and code[i+8] == 0x00 and
     code[i+9] == 0xF3 and code[i+10] == 0x0F and code[i+11] == 0x10 and code[i+12] == 0x45 and code[i+13] == 0xB4 then
    matchSite = base + i - 1
    break
  end
end

if not matchSite then
  error("[Movement Speed] Failed to dynamically locate character movement routine!")
end

local injectionSite = matchSite + 14 -- 0x004C6350 (movss [esi+1EC], xmm0)
local returnContinue = injectionSite + 21 -- 0x004C6365 (movss xmm0, [ebp-3C])

-- 2. Allocate codecave
local cave = allocateMemory(256)
if not cave or cave == 0 then
  error("[Movement Speed] Failed to allocate executable memory for codecave!")
end

-- Default multiplier: 2.2f
writeFloat(cave, 2.2)
registerSymbol("fProtagonistSpeedMult", cave, true)

local caveCode = cave + 16
local bytes = {}

-- cmp byte ptr [esi + 0x584], 01 (Protagonist test)
table.insert(bytes, 0x80)
table.insert(bytes, 0xBE)
for _, b in ipairs(toDwordBytes(0x584)) do table.insert(bytes, b) end
table.insert(bytes, 0x01)

-- jne @normal
local jneNormalIdx = #bytes + 1
table.insert(bytes, 0x75)
table.insert(bytes, 0x00)

-- PROTAGONIST PATH:
-- 1. X coordinate:
-- movss xmm1, [esi+000001EC]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x10); table.insert(bytes, 0x8E)
for _, b in ipairs(toDwordBytes(0x1EC)) do table.insert(bytes, b) end
-- subss xmm0, xmm1
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x5C); table.insert(bytes, 0xC1)
-- mulss xmm0, [cave]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x59); table.insert(bytes, 0x05)
for _, b in ipairs(toDwordBytes(cave)) do table.insert(bytes, b) end
-- addss xmm0, xmm1
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x58); table.insert(bytes, 0xC1)
-- movss [esi+000001EC], xmm0
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x11); table.insert(bytes, 0x86)
for _, b in ipairs(toDwordBytes(0x1EC)) do table.insert(bytes, b) end

-- 2. Z coordinate:
-- movss xmm0, [ebp-44]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x10); table.insert(bytes, 0x45); table.insert(bytes, 0xBC)
-- movss xmm1, [esi+000001F4]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x10); table.insert(bytes, 0x8E)
for _, b in ipairs(toDwordBytes(0x1F4)) do table.insert(bytes, b) end
-- subss xmm0, xmm1
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x5C); table.insert(bytes, 0xC1)
-- mulss xmm0, [cave]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x59); table.insert(bytes, 0x05)
for _, b in ipairs(toDwordBytes(cave)) do table.insert(bytes, b) end
-- addss xmm0, xmm1
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x58); table.insert(bytes, 0xC1)
-- movss [esi+000001F4], xmm0
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x11); table.insert(bytes, 0x86)
for _, b in ipairs(toDwordBytes(0x1F4)) do table.insert(bytes, b) end

-- jmp returnContinue
local relRet = returnContinue - (caveCode + #bytes + 5)
table.insert(bytes, 0xE9)
for _, b in ipairs(toDwordBytes(relRet)) do table.insert(bytes, b) end

-- @normal:
local normalPos = #bytes
bytes[jneNormalIdx + 1] = normalPos - (jneNormalIdx + 1)

-- movss [esi+000001EC], xmm0
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x11); table.insert(bytes, 0x86)
for _, b in ipairs(toDwordBytes(0x1EC)) do table.insert(bytes, b) end
-- movss xmm0, [ebp-44]
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x10); table.insert(bytes, 0x45); table.insert(bytes, 0xBC)
-- movss [esi+000001F4], xmm0
table.insert(bytes, 0xF3); table.insert(bytes, 0x0F); table.insert(bytes, 0x11); table.insert(bytes, 0x86)
for _, b in ipairs(toDwordBytes(0x1F4)) do table.insert(bytes, b) end

-- jmp returnContinue
local relRet2 = returnContinue - (caveCode + #bytes + 5)
table.insert(bytes, 0xE9)
for _, b in ipairs(toDwordBytes(relRet2)) do table.insert(bytes, b) end

writeBytes(caveCode, bytes)

-- 3. Install 21-byte hook at injectionSite
local originalBytes = readBytes(injectionSite, 21, true)
_G.PartyMovementSpeedState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local relHook = caveCode - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(relHook)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 21 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Movement Speed] Active: hooked position update at 0x%X -&gt; codecave 0x%X (multiplier symbol: fProtagonistSpeedMult = 2.2)",
  injectionSite, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyMovementSpeedState then
  writeBytes(_G.PartyMovementSpeedState.injectionSite, _G.PartyMovementSpeedState.originalBytes)
  unregisterSymbol("fProtagonistSpeedMult")
  deAlloc(_G.PartyMovementSpeedState.cave)
  print(string.format("[Movement Speed] Disabled: restored original instructions at 0x%X and deallocated codecave",
    _G.PartyMovementSpeedState.injectionSite))
  _G.PartyMovementSpeedState = nil
end
{$asm}
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>27186</ID>
              <Description>"&gt;&gt; Speed Multiplier (1.0 = Normal | 1.85 = Recommended | 2.5 = Fast)"</Description>
              <VariableType>Float</VariableType>
              <Address>fProtagonistSpeedMult</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>27188</ID>
          <Description>"&gt;&gt; [ Feature ] Infinite Air Jump (Multi-Jump / Fly)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Infinite Air Jump] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x400000, true)
if not code then
  error("[Infinite Air Jump] Failed to read process code segment!")
end

local function toDwordBytes(val)
  if val &lt; 0 then val = val + 0x100000000 end
  return {
    val % 256,
    math.floor(val / 256) % 256,
    math.floor(val / 65536) % 256,
    math.floor(val / 16777216) % 256
  }
end

-- 1. Locate jump permission check routine
-- Pattern: test dl, dl (84 D2) -&gt; je +12A (0F 84 2A 01 00 00) -&gt; inc eax (40) -&gt; cmp byte ptr [esp+70], 00 (80 7C 24 70 00) -&gt; mov [ecx+1240], eax (89 81 40 12 00 00)
local injectionSite = nil
for i = 1, #code - 20 do
  if code[i] == 0x84 and code[i+1] == 0xD2 and
     code[i+2] == 0x0F and code[i+3] == 0x84 and code[i+4] == 0x2A and code[i+5] == 0x01 and code[i+6] == 0x00 and code[i+7] == 0x00 and
     code[i+8] == 0x40 and
     code[i+9] == 0x80 and code[i+10] == 0x7C and code[i+11] == 0x24 and code[i+12] == 0x70 then
    injectionSite = base + i - 1
    break
  end
end

if not injectionSite then
  error("[Infinite Air Jump] Failed to dynamically locate jump controller routine!")
end

-- 2. Resolve dynamic targets
local targetAccept = injectionSite + 20     -- 0x0051E79C (mov eax, [edi+00034868])
local targetCont   = injectionSite + 8      -- 0x0051E790 (inc eax)
local targetReject = injectionSite + 8 + 0x12A -- 0x0051E8BA (mov ecx, [edi+00034868])

local typeOffset = 0x584
if _G.DynamicEngine.typeOffset then
  typeOffset = _G.DynamicEngine.typeOffset
end

-- 3. Allocate executable codecave
local cave = allocateMemory(128)
if not cave or cave == 0 then
  error("[Infinite Air Jump] Failed to allocate executable memory for codecave!")
end

local bytes = {}

-- cmp byte ptr [ecx + typeOffset], 01
table.insert(bytes, 0x80)
table.insert(bytes, 0xB9)
for _, b in ipairs(toDwordBytes(typeOffset)) do table.insert(bytes, b) end
table.insert(bytes, 0x01)

-- jne @normal (placeholder)
local jneIdx = #bytes + 1
table.insert(bytes, 0x75)
table.insert(bytes, 0x00)

-- mov dword ptr [ecx + 0x1240], 00000001
table.insert(bytes, 0xC7)
table.insert(bytes, 0x81)
for _, b in ipairs(toDwordBytes(0x1240)) do table.insert(bytes, b) end
table.insert(bytes, 0x01)
table.insert(bytes, 0x00)
table.insert(bytes, 0x00)
table.insert(bytes, 0x00)

-- jmp targetAccept (E9 rel)
table.insert(bytes, 0xE9)
local jmpAcceptIdx = #bytes + 1
for _, b in ipairs(toDwordBytes(0)) do table.insert(bytes, b) end

-- @normal:
local normalPos = #bytes
bytes[jneIdx + 1] = normalPos - (jneIdx + 1)

-- test dl, dl
table.insert(bytes, 0x84)
table.insert(bytes, 0xD2)

-- je targetReject (0F 84 rel)
table.insert(bytes, 0x0F)
table.insert(bytes, 0x84)
local jmpRejectIdx = #bytes + 1
for _, b in ipairs(toDwordBytes(0)) do table.insert(bytes, b) end

-- jmp targetCont (E9 rel)
table.insert(bytes, 0xE9)
local jmpContIdx = #bytes + 1
for _, b in ipairs(toDwordBytes(0)) do table.insert(bytes, b) end

-- Patch relative jumps
local relAccept = targetAccept - (cave + jmpAcceptIdx + 4 - 1)
local acceptBytes = toDwordBytes(relAccept)
for k = 1, 4 do bytes[jmpAcceptIdx + k - 1] = acceptBytes[k] end

local relReject = targetReject - (cave + jmpRejectIdx + 4 - 1)
local rejectBytes = toDwordBytes(relReject)
for k = 1, 4 do bytes[jmpRejectIdx + k - 1] = rejectBytes[k] end

local relCont = targetCont - (cave + jmpContIdx + 4 - 1)
local contBytes = toDwordBytes(relCont)
for k = 1, 4 do bytes[jmpContIdx + k - 1] = contBytes[k] end

writeBytes(cave, bytes)

-- 4. Install 8-byte hook (jmp cave + 3 NOPs)
local originalBytes = readBytes(injectionSite, 8, true)
_G.PartyInfiniteAirJumpState = {
  injectionSite = injectionSite,
  originalBytes = originalBytes,
  cave = cave
}

local hookBytes = { 0xE9 }
local hookRel = cave - (injectionSite + 5)
for _, b in ipairs(toDwordBytes(hookRel)) do table.insert(hookBytes, b) end
while #hookBytes &lt; 8 do
  table.insert(hookBytes, 0x90)
end

writeBytes(injectionSite, hookBytes)

print(string.format("[Infinite Air Jump] Active: hooked 0x%X -&gt; cave 0x%X (Isolated to protagonists)",
  injectionSite, cave))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.PartyInfiniteAirJumpState then
  writeBytes(_G.PartyInfiniteAirJumpState.injectionSite, _G.PartyInfiniteAirJumpState.originalBytes)
  deAlloc(_G.PartyInfiniteAirJumpState.cave)
  print(string.format("[Infinite Air Jump] Disabled: restored original instructions at 0x%X",
    _G.PartyInfiniteAirJumpState.injectionSite))
  _G.PartyInfiniteAirJumpState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27189</ID>
          <Description>"&gt;&gt; [ Feature ] Slot Machine Always Jackpot (Always 6 Stars / Max Rare Rewards)"</Description>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("[Slot Machine Jackpot] DynamicEngine framework is not active! Please activate the framework entry first.")
end

local base = _G.DynamicEngine.moduleBase or 0x00400000
local code = readBytes(base, 0x400000, true)
if not code then
  error("[Slot Machine Jackpot] Failed to read process code segment!")
end

-- 1. Locate slot machine stop evaluation routine
-- Pattern: push 00 (6A 00) -&gt; push 01 (6A 01) -&gt; push ecx (51) -&gt; mov [esp], 00000000 (C7 04 24 00 00 00 00) -&gt; jna +14 (76 14)
local patchSite = nil
for i = 1, #code - 30 do
  if code[i] == 0x6A and code[i+1] == 0x00 and
     code[i+2] == 0x6A and code[i+3] == 0x01 and
     code[i+4] == 0x51 and
     code[i+5] == 0xC7 and code[i+6] == 0x04 and code[i+7] == 0x24 and code[i+8] == 0x00 and code[i+9] == 0x00 and code[i+10] == 0x00 and code[i+11] == 0x00 and
     code[i+12] == 0x76 then
    patchSite = base + i - 1 + 12
    break
  end
end

if not patchSite then
  error("[Slot Machine Jackpot] Failed to dynamically locate slot machine routine!")
end

-- 2. Locate 6-star rating instruction: mov [ebp-??], 00000006
local targetJackpot = nil
for i = 0, 300 do
  local a = patchSite + i
  if readByte(a) == 0xC7 and readByte(a+1) == 0x85 and readInteger(a+6) == 6 then
    targetJackpot = a - 7 -- points to push [string "6"]
    break
  end
end

if not targetJackpot then
  error("[Slot Machine Jackpot] Failed to dynamically locate jackpot outcome block!")
end

local rel = targetJackpot - (patchSite + 2)
if rel &lt; -128 or rel &gt; 127 then
  error("[Slot Machine Jackpot] Relative jump distance out of 8-bit range!")
end

-- 3. Install 2-byte patch: jmp targetJackpot (EB rel)
local originalBytes = readBytes(patchSite, 2, true)
_G.SlotMachineJackpotState = {
  patchSite = patchSite,
  originalBytes = originalBytes
}

writeBytes(patchSite, { 0xEB, rel })

print(string.format("[Slot Machine Jackpot] Active: patched 0x%X -&gt; jumps directly to 6-star Jackpot at 0x%X",
  patchSite, targetJackpot))
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.SlotMachineJackpotState then
  writeBytes(_G.SlotMachineJackpotState.patchSite, _G.SlotMachineJackpotState.originalBytes)
  print(string.format("[Slot Machine Jackpot] Disabled: restored original instructions at 0x%X",
    _G.SlotMachineJackpotState.patchSite))
  _G.SlotMachineJackpotState = nil
end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>27187</ID>
          <Description>""</Description>
          <GroupHeader>1</GroupHeader>
        </CheatEntry>
        <CheatEntry>
          <ID>27046</ID>
          <Description>"&gt;&gt; [ Pointers ]"</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
// Pointers Header
[DISABLE]
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>27047</ID>
              <Description>"Characters"</Description>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
local base = getAddress("TokyoXanadu.exe") or 0x00400000
registerSymbol("pCharacters", base + 0xCE27DC, true)
registerSymbol("pMoney", base + 0xCE43FC, true)
registerSymbol("pGem", base + 0xCE4408, true)
registerSymbol("pMedals", base + 0xCE4410, true)
registerSymbol("pAffinity", base + 0x74D274, true)
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end
unregisterSymbol("pCharacters")
unregisterSymbol("pMoney")
unregisterSymbol("pGem")
unregisterSymbol("pMedals")
unregisterSymbol("pAffinity")
{$asm}
</AssemblerScript>
              <CheatEntries>
                <CheatEntry>
                  <ID>27048</ID>
                  <Description>"Kou"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Kou
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27049</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27DC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27050</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27E0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27051</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27E4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27052</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27E6</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27053</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27E8</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27054</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27EA</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27055</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27EC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27056</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27F0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27057</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE27F4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27058</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2800</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27059</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2802</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27060</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2804</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27061</ID>
                  <Description>"Asuka"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Asuka
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27062</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE280C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27063</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2810</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27064</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2814</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27065</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2816</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27066</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2818</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27067</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE281A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27068</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE281C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27069</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2820</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27070</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2824</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27071</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2830</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27072</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2832</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27073</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2834</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27074</ID>
                  <Description>"Sora"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Sora
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27075</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE283C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27076</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2840</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27077</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2844</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27078</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2846</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27079</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2848</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27080</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE284A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27081</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE284C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27082</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2850</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27083</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2854</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27084</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2860</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27085</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2862</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27086</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2864</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27087</ID>
                  <Description>"Yuuki"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Yuuki
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27088</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE286C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27089</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2870</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27090</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2874</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27091</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2876</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27092</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2878</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27093</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE287A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27094</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE287C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27095</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2880</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27096</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2884</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27097</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2890</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27098</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2892</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27099</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2894</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27100</ID>
                  <Description>"Shio"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Shio
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27101</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE289C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27102</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28A0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27103</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28A4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27104</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28A6</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27105</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28A8</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27106</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28AA</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27107</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28AC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27108</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28B0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27109</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28B4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27110</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28C0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27111</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28C2</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27112</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28C4</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27113</ID>
                  <Description>"Mitsuki"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Mitsuki
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27114</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28CC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27115</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28D0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27116</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28D4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27117</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28D6</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27118</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28D8</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27119</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28DA</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27120</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28DC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27121</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28E0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27122</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28E4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27123</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28F0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27124</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28F2</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27125</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28F4</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27126</ID>
                  <Description>"Rion"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Rion
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27127</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE28FC</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27128</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2900</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27129</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2904</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27130</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2906</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27131</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2908</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27132</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE290A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27133</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE290C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27134</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2910</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27135</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2914</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27136</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2920</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27137</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2922</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27138</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2924</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27139</ID>
                  <Description>"Man in Battle Suit (Gorou)"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// Man in Battle Suit (Gorou)
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27140</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE292C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27141</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2930</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27142</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2934</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27143</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2936</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27144</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2938</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27145</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE293A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27146</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE293C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27147</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2940</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27148</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2944</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27149</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2950</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27150</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2952</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27151</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2954</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27152</ID>
                  <Description>"???"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// ???
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27153</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE295C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27154</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2960</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27155</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2964</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27156</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2966</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27157</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2968</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27158</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE296A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27159</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE296C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27160</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2970</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27161</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2974</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27162</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2980</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27163</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2982</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27164</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2984</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
                <CheatEntry>
                  <ID>27165</ID>
                  <Description>"White Shroud"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
// White Shroud
[DISABLE]
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27166</ID>
                      <Description>"currentHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE298C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27167</ID>
                      <Description>"maxHP"</Description>
                      <VariableType>Float</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2990</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27168</ID>
                      <Description>"ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2994</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27169</ID>
                      <Description>"DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2996</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27170</ID>
                      <Description>"M ATK"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE2998</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27171</ID>
                      <Description>"M DEF"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE299A</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27172</ID>
                      <Description>"Crit (%)"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE299C</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27173</ID>
                      <Description>"LV"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE29A0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27174</ID>
                      <Description>"EXP"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE29A4</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27175</ID>
                      <Description>"Ranged"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE29B0</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27176</ID>
                      <Description>"Power"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE29B2</Address>
                    </CheatEntry>
                    <CheatEntry>
                      <ID>27177</ID>
                      <Description>"Flying"</Description>
                      <VariableType>2 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+CE29B4</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
              </CheatEntries>
            </CheatEntry>
            <CheatEntry>
              <ID>27178</ID>
              <Description>"Others"</Description>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
// Others
[DISABLE]
</AssemblerScript>
              <CheatEntries>
                <CheatEntry>
                  <ID>27179</ID>
                  <Description>"Money"</Description>
                  <VariableType>4 Bytes</VariableType>
                  <Address>"TokyoXanadu.exe"+CE43FC</Address>
                </CheatEntry>
                <CheatEntry>
                  <ID>27180</ID>
                  <Description>"Gem"</Description>
                  <VariableType>4 Bytes</VariableType>
                  <Address>"TokyoXanadu.exe"+CE4408</Address>
                </CheatEntry>
                <CheatEntry>
                  <ID>27181</ID>
                  <Description>"Medals"</Description>
                  <VariableType>4 Bytes</VariableType>
                  <Address>"TokyoXanadu.exe"+CE4410</Address>
                </CheatEntry>
                <CheatEntry>
                  <ID>27182</ID>
                  <Description>"Affinity Shard"</Description>
                  <VariableType>Auto Assembler Script</VariableType>
                  <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
local base = getAddress("TokyoXanadu.exe") or 0x00400000
registerSymbol("pAffinityShard", base + 0x74D274, true)
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end
unregisterSymbol("pAffinityShard")
{$asm}
</AssemblerScript>
                  <CheatEntries>
                    <CheatEntry>
                      <ID>27183</ID>
                      <Description>"address"</Description>
                      <VariableType>4 Bytes</VariableType>
                      <Address>"TokyoXanadu.exe"+74D274</Address>
                    </CheatEntry>
                  </CheatEntries>
                </CheatEntry>
              </CheatEntries>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>27191</ID>
          <Description>""</Description>
          <GroupHeader>1</GroupHeader>
        </CheatEntry>
        <CheatEntry>
          <ID>27190</ID>
          <Description>"&gt;&gt; [ Debug ]"</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C0C0C0</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>27034</ID>
              <Description>"&gt;&gt; [ Feature ] Real-Time Character Lifecycle Watcher"</Description>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("DynamicEngine framework is not active! Please activate the framework entry first.")
end

local trackerId = "CharacterLifecycleWatcher"
local targetClass = "CampMenuPartyBase"
local updateIntervalMs = 250

_G.DynamicEngine:trackInstance(
  trackerId,
  targetClass,
  updateIntervalMs,
  function(instanceAddress)
    print(string.format("[LifecycleWatcher] Character / Party instance acquired dynamically at: 0x%08X", instanceAddress))
  end,
  function()
    print("[LifecycleWatcher] Scene transition, reload, or character despawn detected. Waiting for next instance...")
  end
)
print("[LifecycleWatcher] Active. Monitoring character state in real time.")
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end

if _G.DynamicEngine then
  _G.DynamicEngine:stopTracker("CharacterLifecycleWatcher")
  print("[LifecycleWatcher] Stopped.")
end
{$asm}
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>27035</ID>
              <Description>"&gt;&gt; [ Feature ] Dynamic Semantic Field Scanner"</Description>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end

if not _G.DynamicEngine then
  error("DynamicEngine framework is not active! Please activate the framework entry first.")
end

-- Example demonstration of dynamic field inspection with zero hardcoded offsets
local targetClass = "UIItem_ActiveChrState"
local instanceAddress = _G.DynamicEngine:findActiveInstance(targetClass)

if instanceAddress then
  print(string.format("[DynamicScanner] Inspecting active instance at 0x%08X", instanceAddress))
  -- Dynamically scan for non-zero valid pointers or numeric fields
  local resolvedOffset = _G.DynamicEngine:findFieldByCriteria(instanceAddress, 0x200, function(value, offset, candidateAddress)
    return value ~= nil and value &gt; 0 and value &lt; 0x7FFFFFFF
  end)
  if resolvedOffset then
    print(string.format("[DynamicScanner] Dynamically resolved first active field at offset: +0x%X", resolvedOffset))
  end
else
  print(string.format("[DynamicScanner] No live instance found for '%s' in current scene. Will resolve on spawn.", targetClass))
end
{$asm}

[DISABLE]
{$lua}
if syntaxcheck then return end
print("[DynamicScanner] Disabled.")
{$asm}
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
