Advertisement
tcyknhrabirwjyljhp

Untitled

Apr 1st, 2022
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3. <CheatEntries>
  4. <CheatEntry>
  5. <ID>22</ID>
  6. <Description>"Enable"</Description>
  7. <LastState Activated="1"/>
  8. <VariableType>Auto Assembler Script</VariableType>
  9. <AssemblerScript>{ Game : coromon.exe
  10. Version:
  11. Date : 2022-04-01
  12. Author : cfe
  13.  
  14. This script does blah blah blah
  15. }
  16.  
  17. [ENABLE]
  18.  
  19. aobscanmodule(aobLuaGameState,CoronaLabs.Corona.Native.dll,FF 50 04 40 6A 00 50 57) // should be unique
  20. alloc(newmem,$1000)
  21.  
  22. label(code)
  23. label(return)
  24. label(pLuaState)
  25. registersymbol(pLuaState)
  26.  
  27. newmem:
  28.  
  29. code:
  30. mov [pLuaState],edi
  31. call dword ptr [eax+04]
  32. inc eax
  33. push 00
  34. jmp return
  35. pLuaState:
  36. dd 0
  37.  
  38. aobLuaGameState:
  39. jmp newmem
  40. nop
  41. return:
  42. registersymbol(aobLuaGameState)
  43.  
  44.  
  45. alloc(DoString,$1000,$process)
  46. registersymbol(DoString)
  47.  
  48. label(Skip)
  49.  
  50. DoString:
  51. sub esp,20
  52. cmp [pLuaState],0
  53. jne @f
  54. mov eax,#99
  55. jmp Skip
  56. @@:
  57. push [esp+24]
  58. push [pLuaState]
  59. call lua.luaL_loadstring
  60. add esp,8
  61. test eax,eax
  62. jne Skip
  63. push 0
  64. push 0
  65. push 0
  66. push -1
  67. push 0
  68. push [pLuaState]
  69. call lua.lua_pcall
  70. add esp,18
  71. Skip:
  72. add esp,20
  73. ret
  74.  
  75.  
  76. [DISABLE]
  77.  
  78. aobLuaGameState:
  79. db FF 50 04 40 6A 00
  80.  
  81. dealloc(newmem)
  82. dealloc(DoString)
  83. unregistersymbol(*)
  84.  
  85. </AssemblerScript>
  86. <CheatEntries>
  87. <CheatEntry>
  88. <ID>21</ID>
  89. <Description>"NoClip"</Description>
  90. <LastState/>
  91. <VariableType>Auto Assembler Script</VariableType>
  92. <AssemblerScript>{$lua}
  93. if syntaxcheck then return end
  94. --x86 CDECL Call!
  95. [ENABLE]
  96.  
  97. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.noClipMode = true")
  98. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  99.  
  100. [DISABLE]
  101. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.noClipMode = false")
  102. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  103. </AssemblerScript>
  104. </CheatEntry>
  105. <CheatEntry>
  106. <ID>24</ID>
  107. <Description>"AlwaysCatchSuccessfully"</Description>
  108. <LastState Activated="1"/>
  109. <VariableType>Auto Assembler Script</VariableType>
  110. <AssemblerScript>{$lua}
  111. if syntaxcheck then return end
  112. --x86 CDECL Call!
  113. [ENABLE]
  114. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.alwaysCatchSuccessfully = true")
  115. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  116.  
  117. [DISABLE]
  118. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.alwaysCatchSuccessfully = false")
  119. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  120. </AssemblerScript>
  121. </CheatEntry>
  122. <CheatEntry>
  123. <ID>26</ID>
  124. <Description>"SkipWildBattles"</Description>
  125. <LastState Activated="1"/>
  126. <VariableType>Auto Assembler Script</VariableType>
  127. <AssemblerScript>{$lua}
  128. if syntaxcheck then return end
  129. --x86 CDECL Call!
  130. [ENABLE]
  131. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.skipWildBattles = true")
  132. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  133.  
  134. [DISABLE]
  135. local Ret = executeCodeEx(1, nil, getAddress("DoString"),"debugSettings.skipWildBattles = false")
  136. if (Ret ~= 0 ) then print(string.format("Lua Error: %d",Ret)) error("") end
  137. </AssemblerScript>
  138. </CheatEntry>
  139. </CheatEntries>
  140. </CheatEntry>
  141. </CheatEntries>
  142. </CheatTable>
  143.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement