Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3. <CheatEntries>
  4. <CheatEntry>
  5. <ID>875</ID>
  6. <Description>"ItemSwap (Swaps picked up item to chosen item)"</Description>
  7. <Options moHideChildren="1" moAllowManualCollapseAndExpand="1"/>
  8. <LastState Activated="0"/>
  9. <Color>80000008</Color>
  10. <VariableType>Auto Assembler Script</VariableType>
  11. <AssemblerScript>{ Game : DarkSoulsII.exe
  12. Version:
  13. Date : 2014-05-02
  14. Author : mgr.inz.Player
  15.  
  16. ItemSwap - when grabbing any item
  17.  
  18. 1. set desired ItemID,
  19. 2. in game, pick up whatever item from the ground (you can drop whatever item you want)
  20. 3. don't forget to disable this cheat when not needed anymore
  21.  
  22. }
  23.  
  24. [ENABLE]
  25.  
  26. aobscanmodule(BetterItemSwap,DarkSoulsII.exe,8D 70 40 B9 21 00 00 00 8D) // should be unique
  27. alloc(newmem,$1000)
  28. label(return)
  29.  
  30.  
  31. alloc(myDesiredItemID,128)
  32. registersymbol(myDesiredItemID)
  33.  
  34. label(myDesiredLevel)
  35. registersymbol(myDesiredLevel)
  36.  
  37. label(myDesiredInfusion)
  38. registersymbol(myDesiredInfusion)
  39.  
  40. label(myDesiredQuantity)
  41. registersymbol(myDesiredQuantity)
  42.  
  43. label(divisor)
  44.  
  45. myDesiredItemID:
  46. dd 0
  47. myDesiredLevel:
  48. db FF
  49. myDesiredInfusion:
  50. db FF
  51. myDesiredQuantity:
  52. db FF
  53.  
  54. divisor:
  55. dd (int)100000
  56.  
  57.  
  58. newmem:
  59. mov esi,eax // backup EAX
  60. mov edi,edx // backup EDX
  61.  
  62. // divide ID by 100'000, to get group ID
  63. mov eax,[myDesiredItemID]
  64. cmp eax,0
  65. jnz @f
  66. mov eax,[esi+44] // get original ID
  67. @@:
  68. xor edx,edx
  69. div dword ptr [divisor]
  70.  
  71. // set quantity
  72. cmp eax,#611
  73. jg @f // is it consumable item
  74. cmp eax,#600
  75. jl @f // is it consumable item
  76. mov cl,[myDesiredQuantity]
  77. cmp cl,FF
  78. je @f
  79. cmp cl,14
  80. ja @f
  81. cmp cl,0
  82. je @f
  83. mov [esi+4C],cl
  84. @@:
  85.  
  86. // set durability to something bigger than 0, so it can be repaired with powder
  87. cmp eax,#279
  88. jg @f // is it an item with durability or not ?
  89. mov [esi+48],(float)500.0
  90. @@:
  91.  
  92. // durability for rings
  93. cmp eax,#400
  94. jl @f
  95. cmp eax,#407
  96. jg @f
  97. mov [esi+48],(float)500.0
  98. @@:
  99.  
  100. // set infusion
  101. cmp eax,#118
  102. jg @f // is it an infusion-able item or not ?
  103.  
  104. mov cl,[myDesiredInfusion]
  105. cmp cl,FF
  106. je @f
  107. cmp cl,09 // must be 0 - 9
  108. ja @f
  109. mov byte ptr [esi+4F],cl //infusion
  110. @@:
  111.  
  112.  
  113. // set level
  114. cmp eax,#279
  115. jg @f
  116. mov cl,[myDesiredLevel]
  117. cmp cl,FF
  118. je @f
  119. cmp cl,0A // must be 0 - 10
  120. ja @f
  121. mov byte ptr [esi+4E],cl //level
  122. @@:
  123.  
  124.  
  125.  
  126. // get desiredID
  127. mov ecx,[myDesiredItemID]
  128.  
  129. // swap item
  130. cmp ecx,0
  131. je @f
  132. mov [esi+44],ecx // swap ID
  133. @@:
  134.  
  135. mov eax,esi // restore EAX
  136. mov edx,edi // restore EDX
  137.  
  138. lea esi,[eax+40] // orig
  139. mov ecx,00000021 // orig
  140. jmp return
  141.  
  142. BetterItemSwap:
  143. jmp newmem
  144. nop
  145. nop
  146. nop
  147. return:
  148. registersymbol(BetterItemSwap)
  149.  
  150. [DISABLE]
  151.  
  152. BetterItemSwap:
  153. db 8D 70 40 B9 21 00 00 00
  154.  
  155. unregistersymbol(BetterItemSwap)
  156. unregistersymbol(myDesiredItemID)
  157. unregistersymbol(myDesiredLevel)
  158. unregistersymbol(myDesiredInfusion)
  159. unregistersymbol(myDesiredQuantity)
  160.  
  161. dealloc(newmem)
  162.  
  163. {
  164. // ORIGINAL CODE - INJECTION POINT: "DarkSoulsII.exe"+2190E5
  165.  
  166. "DarkSoulsII.exe"+2190C4: 83 F9 03 - cmp ecx,03
  167. "DarkSoulsII.exe"+2190C7: 0F 87 2F FF FF FF - ja DarkSoulsII.exe+218FFC
  168. "DarkSoulsII.exe"+2190CD: 8B 46 04 - mov eax,[esi+04]
  169. "DarkSoulsII.exe"+2190D0: 8B 0C 88 - mov ecx,[eax+ecx*4]
  170. "DarkSoulsII.exe"+2190D3: 8D 55 08 - lea edx,[ebp+08]
  171. "DarkSoulsII.exe"+2190D6: 52 - push edx
  172. "DarkSoulsII.exe"+2190D7: E8 14 C9 FF FF - call DarkSoulsII.exe+2159F0
  173. "DarkSoulsII.exe"+2190DC: 3B C3 - cmp eax,ebx
  174. "DarkSoulsII.exe"+2190DE: 0F 84 18 FF FF FF - je DarkSoulsII.exe+218FFC
  175. "DarkSoulsII.exe"+2190E4: 57 - push edi
  176. // ---------- INJECTING HERE ----------
  177. "DarkSoulsII.exe"+2190E5: 8D 70 40 - lea esi,[eax+40]
  178. "DarkSoulsII.exe"+2190E8: B9 21 00 00 00 - mov ecx,00000021
  179. // ---------- DONE INJECTING ----------
  180. "DarkSoulsII.exe"+2190ED: 8D BD 78 FF FF FF - lea edi,[ebp-00000088]
  181. "DarkSoulsII.exe"+2190F3: F3 A5 - repe movsd
  182. "DarkSoulsII.exe"+2190F5: 0F B6 4D F8 - movzx ecx,byte ptr [ebp-08]
  183. "DarkSoulsII.exe"+2190F9: 5F - pop edi
  184. "DarkSoulsII.exe"+2190FA: 51 - push ecx
  185. "DarkSoulsII.exe"+2190FB: 8B 8D 70 FF FF FF - mov ecx,[ebp-00000090]
  186. "DarkSoulsII.exe"+219101: 8D 95 78 FF FF FF - lea edx,[ebp-00000088]
  187. "DarkSoulsII.exe"+219107: 52 - push edx
  188. "DarkSoulsII.exe"+219108: C6 85 77 FF FF FF 01 - mov byte ptr [ebp-00000089],01
  189. "DarkSoulsII.exe"+21910F: E8 4C 30 FD FF - call DarkSoulsII.exe+1EC160
  190. }
  191. </AssemblerScript>
  192. <CheatEntries>
  193. <CheatEntry>
  194. <ID>876</ID>
  195. <Description>"Desired Item ID"</Description>
  196. <LastState Value="??" Activated="0" RealAddress="00000000"/>
  197. <ShowAsHex>1</ShowAsHex>
  198. <Color>80000008</Color>
  199. <VariableType>4 Bytes</VariableType>
  200. <Address>myDesiredItemID</Address>
  201. </CheatEntry>
  202. <CheatEntry>
  203. <ID>877</ID>
  204. <Description>"Desired Level (weapons and wearables)"</Description>
  205. <LastState Value="??" Activated="0" RealAddress="0FF61004"/>
  206. <ShowAsSigned>1</ShowAsSigned>
  207. <Color>80000008</Color>
  208. <VariableType>Byte</VariableType>
  209. <Address>myDesiredLevel</Address>
  210. </CheatEntry>
  211. <CheatEntry>
  212. <ID>878</ID>
  213. <Description>"Desired Infusion (weapons)"</Description>
  214. <LastState Value="??" Activated="0" RealAddress="0FF61005"/>
  215. <ShowAsSigned>1</ShowAsSigned>
  216. <Color>80000008</Color>
  217. <VariableType>Byte</VariableType>
  218. <Address>myDesiredInfusion</Address>
  219. </CheatEntry>
  220. <CheatEntry>
  221. <ID>879</ID>
  222. <Description>"Desired Quantity (consumables)"</Description>
  223. <LastState Value="??" Activated="0" RealAddress="0FF61006"/>
  224. <ShowAsSigned>1</ShowAsSigned>
  225. <Color>80000008</Color>
  226. <VariableType>Byte</VariableType>
  227. <Address>myDesiredQuantity</Address>
  228. </CheatEntry>
  229. <CheatEntry>
  230. <ID>880</ID>
  231. <Description>"helper"</Description>
  232. <LastState Activated="0"/>
  233. <Color>80000008</Color>
  234. <VariableType>Auto Assembler Script</VariableType>
  235. <AssemblerScript>[ENABLE]
  236. LuaCall(showHelper())
  237.  
  238. [DISABLE]
  239. LuaCall(hideHelper())
  240. </AssemblerScript>
  241. </CheatEntry>
  242. </CheatEntries>
  243. </CheatEntry>
  244. </CheatEntries>
  245. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement