Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable CheatEngineTableVersion="38">
  3.   <CheatEntries>
  4.     <CheatEntry>
  5.       <ID>0</ID>
  6.       <Description>"test_named_pointer_offset"</Description>
  7.       <LastState/>
  8.       <VariableType>Auto Assembler Script</VariableType>
  9.       <AssemblerScript>globalalloc(___,$1000)
  10.  
  11. ___:/// world-&gt;+00: playerList, +08: enemyList
  12. dq ___+100, ___+200, 0
  13.  
  14. ___+80: /// choseListIdx
  15. dq 0
  16.  
  17. ___+0a0:/// chosePlayerIdx
  18. dq 0
  19.  
  20. ___+0c0:/// choseEnemyIdx
  21. dq 0
  22.  
  23. ___+0e0:/// choseCharIdx
  24. dq 0
  25.  
  26. ___+100: /// playerList-&gt; +00: count, +08:first [0], +010: [1] and so on
  27. dq 3, ___+410, ___+430, ___+450
  28.  
  29. ___+200: /// enemyList-&gt; +00: count, +08:first [0], +010: [1] and so on
  30. dq 3, ___+610, ___+630, ___+650
  31.  
  32. ___+410:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  33. dd #1,#111,#121,#131
  34. db 'Tina',0
  35. ___+430:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  36. dd #2,#112,#122,#132
  37. db 'Rock',0
  38. ___+450:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  39. dd #3,#113,#123,#133
  40. db 'Celes',0
  41.  
  42. ___+610:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  43. dd #11,#211,#212,#213
  44. db 'Kafka',0
  45. ___+630:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  46. dd #22,#221,#222,#223
  47. db 'Omega',0
  48. ___+650:  /// charcter-&gt; +00: lvl, +04:str +08: vit +0c: dex +10: name
  49. dd #33,#231,#232,#233
  50. db 'TheEnd',0
  51.  
  52. [ENABLE]
  53. {$lua}
  54. --
  55. local function reg(sym)return function(addr)
  56.   addr = type(addr)=='number' and addr or getAddressSafe(addr)
  57.   if addr then registerSymbol(sym, addr)end -- without third paramter set as true, the symbol is saved to ct table
  58. end end
  59. local function setSyms(cnt)
  60.   if not getAddressSafe'___' and cnt&gt;0 then
  61.     synchronize(createTimer, 1000, setSyms,cnt-1)
  62.   else
  63.     reg'aWorld'               '___'
  64.  
  65.     reg'ofs_World.PlayerList' '0'
  66.     reg'ofs_World.EnemyList'  '8'
  67.  
  68.     reg'aChoseListIdx'        "___+80"
  69.     reg'aChosePlayerIdx'      "___+a0"
  70.     reg'aChoseEnemyIdx'       "___+c0"
  71.     reg'aChoseCharIdx'        "___+e0"
  72.  
  73.     reg'aPlayerList'          "___+100"
  74.     reg'aEnemyList'           "___+200"
  75.  
  76.     reg"ofs_list.Count"       "0"
  77.     reg"ofs_list.First"       "8"
  78.  
  79.     reg"ofs_char.lvl"         "0"
  80.     reg"ofs_char.str"         "4"
  81.     reg"ofs_char.vit"         "8"
  82.     reg"ofs_char.dex"         "c"
  83.     reg"ofs_char.name"        "10"
  84.  
  85.   end
  86. end
  87. if not syntaxcheck then synchronize(createTimer, 1000, setSyms, 10)end
  88. [DISABLE]
  89. </AssemblerScript>
  90.       <CheatEntries>
  91.         <CheatEntry>
  92.           <ID>19</ID>
  93.           <Description>"playerIdx"</Description>
  94.           <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0:first
  95. 1:second
  96. 2:third
  97. </DropDownList>
  98.           <LastState Value="0" RealAddress="005310A0"/>
  99.           <ShowAsSigned>1</ShowAsSigned>
  100.           <VariableType>4 Bytes</VariableType>
  101.           <Address>aChosePlayerIdx</Address>
  102.         </CheatEntry>
  103.         <CheatEntry>
  104.           <ID>18</ID>
  105.           <Description>"enemyIdx"</Description>
  106.           <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0:first
  107. 1:second
  108. 2:third
  109. </DropDownList>
  110.           <LastState Value="0" RealAddress="005310C0"/>
  111.           <ShowAsSigned>1</ShowAsSigned>
  112.           <VariableType>4 Bytes</VariableType>
  113.           <Address>aChoseEnemyIdx</Address>
  114.         </CheatEntry>
  115.         <CheatEntry>
  116.           <ID>2</ID>
  117.           <Description>"chosen Player [a group created with an address]"</Description>
  118.           <LastState Value="" RealAddress="00000000"/>
  119.           <ShowAsSigned>1</ShowAsSigned>
  120.           <GroupHeader>1</GroupHeader>
  121.           <Address>___+00</Address>
  122.           <Offsets>
  123.             <Offset>0</Offset>
  124.             <Offset>8+(DWORD)[aChosePlayerIdx]*8</Offset>
  125.           </Offsets>
  126.           <CheatEntries>
  127.             <CheatEntry>
  128.               <ID>3</ID>
  129.               <Description>"lvl"</Description>
  130.               <ShowAsSigned>1</ShowAsSigned>
  131.               <VariableType>4 Bytes</VariableType>
  132.               <Address>+ofs_char.lvl</Address>
  133.             </CheatEntry>
  134.             <CheatEntry>
  135.               <ID>7</ID>
  136.               <Description>"str"</Description>
  137.               <ShowAsSigned>1</ShowAsSigned>
  138.               <VariableType>4 Bytes</VariableType>
  139.               <Address>+ofs_char.str</Address>
  140.             </CheatEntry>
  141.             <CheatEntry>
  142.               <ID>6</ID>
  143.               <Description>"vit"</Description>
  144.               <ShowAsSigned>1</ShowAsSigned>
  145.               <VariableType>4 Bytes</VariableType>
  146.               <Address>+ofs_char.vit</Address>
  147.             </CheatEntry>
  148.             <CheatEntry>
  149.               <ID>5</ID>
  150.               <Description>"dex"</Description>
  151.               <ShowAsSigned>1</ShowAsSigned>
  152.               <VariableType>4 Bytes</VariableType>
  153.               <Address>+ofs_char.dex</Address>
  154.             </CheatEntry>
  155.             <CheatEntry>
  156.               <ID>4</ID>
  157.               <Description>"name"</Description>
  158.               <ShowAsSigned>0</ShowAsSigned>
  159.               <VariableType>String</VariableType>
  160.               <Length>16</Length>
  161.               <Unicode>0</Unicode>
  162.               <CodePage>0</CodePage>
  163.               <ZeroTerminate>1</ZeroTerminate>
  164.               <Address>+ofs_char.name</Address>
  165.             </CheatEntry>
  166.           </CheatEntries>
  167.         </CheatEntry>
  168.         <CheatEntry>
  169.           <ID>11</ID>
  170.           <Description>"chosen Enemy"</Description>
  171.           <LastState Value="" RealAddress="00000000"/>
  172.           <ShowAsSigned>1</ShowAsSigned>
  173.           <GroupHeader>1</GroupHeader>
  174.           <Address>___+08</Address>
  175.           <Offsets>
  176.             <Offset>0</Offset>
  177.             <Offset>8+(DWORD)[aChoseEnemyIdx]*8</Offset>
  178.           </Offsets>
  179.           <CheatEntries>
  180.             <CheatEntry>
  181.               <ID>12</ID>
  182.               <Description>"lvl"</Description>
  183.               <ShowAsSigned>1</ShowAsSigned>
  184.               <VariableType>4 Bytes</VariableType>
  185.               <Address>+ofs_char.lvl</Address>
  186.             </CheatEntry>
  187.             <CheatEntry>
  188.               <ID>13</ID>
  189.               <Description>"str"</Description>
  190.               <ShowAsSigned>1</ShowAsSigned>
  191.               <VariableType>4 Bytes</VariableType>
  192.               <Address>+ofs_char.str</Address>
  193.             </CheatEntry>
  194.             <CheatEntry>
  195.               <ID>14</ID>
  196.               <Description>"vit"</Description>
  197.               <ShowAsSigned>1</ShowAsSigned>
  198.               <VariableType>4 Bytes</VariableType>
  199.               <Address>+ofs_char.vit</Address>
  200.             </CheatEntry>
  201.             <CheatEntry>
  202.               <ID>15</ID>
  203.               <Description>"dex"</Description>
  204.               <ShowAsSigned>1</ShowAsSigned>
  205.               <VariableType>4 Bytes</VariableType>
  206.               <Address>+ofs_char.dex</Address>
  207.             </CheatEntry>
  208.             <CheatEntry>
  209.               <ID>16</ID>
  210.               <Description>"name"</Description>
  211.               <ShowAsSigned>0</ShowAsSigned>
  212.               <VariableType>String</VariableType>
  213.               <Length>16</Length>
  214.               <Unicode>0</Unicode>
  215.               <CodePage>0</CodePage>
  216.               <ZeroTerminate>1</ZeroTerminate>
  217.               <Address>+ofs_char.name</Address>
  218.             </CheatEntry>
  219.           </CheatEntries>
  220.         </CheatEntry>
  221.         <CheatEntry>
  222.           <ID>20</ID>
  223.           <Description>"chosen Character"</Description>
  224.           <Options moHideChildren="1"/>
  225.           <LastState Value="" Activated="1" RealAddress="00000000"/>
  226.           <ShowAsSigned>1</ShowAsSigned>
  227.           <GroupHeader>1</GroupHeader>
  228.           <Address>___+(DWORD)[aChoseListIdx]*8</Address>
  229.           <Offsets>
  230.             <Offset>0</Offset>
  231.             <Offset>8+(DWORD)[aChoseCharIdx]*8</Offset>
  232.           </Offsets>
  233.           <CheatEntries>
  234.             <CheatEntry>
  235.               <ID>26</ID>
  236.               <Description>"listIdx"</Description>
  237.               <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0:PlayerList
  238. 1:EnemyList
  239. </DropDownList>
  240.               <LastState Value="0" RealAddress="00531080"/>
  241.               <ShowAsSigned>1</ShowAsSigned>
  242.               <VariableType>4 Bytes</VariableType>
  243.               <Address>aChoseListIdx</Address>
  244.             </CheatEntry>
  245.             <CheatEntry>
  246.               <ID>27</ID>
  247.               <Description>"charIdx"</Description>
  248.               <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0:first
  249. 1:second
  250. 2:third
  251. </DropDownList>
  252.               <LastState Value="1" RealAddress="005310E0"/>
  253.               <ShowAsSigned>1</ShowAsSigned>
  254.               <VariableType>4 Bytes</VariableType>
  255.               <Address>aChoseCharIdx</Address>
  256.             </CheatEntry>
  257.             <CheatEntry>
  258.               <ID>28</ID>
  259.               <Description>"---"</Description>
  260.               <LastState Value="" RealAddress="00000000"/>
  261.               <GroupHeader>1</GroupHeader>
  262.             </CheatEntry>
  263.             <CheatEntry>
  264.               <ID>29</ID>
  265.               <Description>"lvl"</Description>
  266.               <ShowAsSigned>1</ShowAsSigned>
  267.               <VariableType>4 Bytes</VariableType>
  268.               <Address>+ofs_char.lvl</Address>
  269.             </CheatEntry>
  270.             <CheatEntry>
  271.               <ID>22</ID>
  272.               <Description>"str"</Description>
  273.               <ShowAsSigned>1</ShowAsSigned>
  274.               <VariableType>4 Bytes</VariableType>
  275.               <Address>+ofs_char.str</Address>
  276.             </CheatEntry>
  277.             <CheatEntry>
  278.               <ID>23</ID>
  279.               <Description>"vit"</Description>
  280.               <ShowAsSigned>1</ShowAsSigned>
  281.               <VariableType>4 Bytes</VariableType>
  282.               <Address>+ofs_char.vit</Address>
  283.             </CheatEntry>
  284.             <CheatEntry>
  285.               <ID>24</ID>
  286.               <Description>"dex"</Description>
  287.               <ShowAsSigned>1</ShowAsSigned>
  288.               <VariableType>4 Bytes</VariableType>
  289.               <Address>+ofs_char.dex</Address>
  290.             </CheatEntry>
  291.             <CheatEntry>
  292.               <ID>25</ID>
  293.               <Description>"name"</Description>
  294.               <ShowAsSigned>0</ShowAsSigned>
  295.               <VariableType>String</VariableType>
  296.               <Length>16</Length>
  297.               <Unicode>0</Unicode>
  298.               <CodePage>0</CodePage>
  299.               <ZeroTerminate>1</ZeroTerminate>
  300.               <Address>+ofs_char.name</Address>
  301.             </CheatEntry>
  302.           </CheatEntries>
  303.         </CheatEntry>
  304.       </CheatEntries>
  305.     </CheatEntry>
  306.   </CheatEntries>
  307.   <UserdefinedSymbols/>
  308.   <LuaScript>
  309. </LuaScript>
  310. </CheatTable>
  311.