Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. [Enable]
  2. Alloc(Kami,128)
  3. Alloc(ItemHook,128)
  4. Alloc(GetMobXY,512)
  5. Alloc(NewTeleportXY,128)
  6. Alloc(PressKey,128)
  7. Alloc(TeleTopLeft,128)
  8. Alloc(ItemX,4)
  9. Alloc(ItemY,4)
  10. Label(GetMobXYFalse)
  11. Label(GetMobXYTrue)
  12. Label(TeleportEnd)
  13. Label(NextMob)
  14. Label(Loot)
  15. Label(KamiExit)
  16.  
  17. //MapleStory keycodes
  18. define(CTRL,001D0000)
  19. define(SHIFT,002A0000)
  20. define(INSERT,01520000)
  21. define(DEL,01530000)
  22. define(HOME,01470000)
  23. define(END,014F0000)
  24. define(PAGEUP,01490000)
  25. define(PAGEDOWN,01510000)
  26. define(ALT,00380000)
  27. define(Z,002C0000)
  28.  
  29. GetMobXY:
  30. // TSingleton<CMobPool>::ms_pInstance (Mob Base):
  31. // 8B 0D ? ? ? ? ? E8 ? ? ? ? 8B ? 85 ? 74 ? 8B ? ? 8B
  32. mov esi,[019284D8] // v113.3
  33. test esi,esi
  34. je GetMobXYFalse
  35. mov edx,[esi+10] // mob count
  36. test edx,edx
  37. je GetMobXYFalse
  38. mov esi,[esi+28] // mob 1
  39. test esi,esi
  40. je GetMobXYFalse
  41. mov edx,[esi+04] // mob 2 - 0x10
  42. test edx,edx
  43. je GetMobXYFalse
  44.  
  45. // mob 3 offset 83 ? ? ? ? ? ? 0F 84 ? ? ? ? 83 ? ? 39 ? ? ? ? ? 0F 8E ? ? ? ? 68 ? ? ? ? 8D ? ? ? E8 ? ? ? ? 68 ? ? ? ? 8D ? ? ? C7 ? ? ? ? ? ? ? E8 ? ? ? ? 8B ? ? ? ? ? C6 ? ? ? ? 85
  46. mov edx,[edx+1B8] // v113.3
  47.  
  48. test edx,edx
  49. je GetMobXYFalse
  50. mov edx,[edx+24] // mob 4
  51. test edx,edx
  52. je GetMobXYFalse
  53. mov ebx,[edx+60] // mob invx
  54. or ebx,[edx+64] // mob invy
  55. test ebx,ebx
  56. jne GetMobXYTrue
  57. mov esi,[esi-0C] // next mob - 0x10
  58. test esi,esi
  59. je GetMobXYFalse
  60.  
  61. NextMob:
  62. mov edx,[esi+14] // mob 2
  63. test edx,edx
  64. je GetMobXYFalse
  65.  
  66. // mob 3 offset 83 ? ? ? ? ? ? 0F 84 ? ? ? ? 83 ? ? 39 ? ? ? ? ? 0F 8E ? ? ? ? 68 ? ? ? ? 8D ? ? ? E8 ? ? ? ? 68 ? ? ? ? 8D ? ? ? C7 ? ? ? ? ? ? ? E8 ? ? ? ? 8B ? ? ? ? ? C6 ? ? ? ? 85
  67. mov edx,[edx+1B8] // v113.3
  68.  
  69. test edx,edx
  70. je GetMobXYFalse
  71. mov edx,[edx+24] // mob 4
  72. test edx,edx
  73. je GetMobXYFalse
  74. mov ebx,[edx+60] // mob invx
  75. or ebx,[edx+64] // mob invy
  76. test ebx,ebx
  77. jne GetMobXYTrue
  78. mov esi,[esi+04] // next mob
  79. test esi,esi
  80. je GetMobXYFalse
  81. jmp NextMob
  82.  
  83. GetMobXYFalse:
  84. xor eax,eax
  85. ret
  86.  
  87. GetMobXYTrue:
  88. lea eax,[edx+58] // mob x
  89. ret
  90.  
  91. NewTeleportXY:
  92. // TSingleton<CUserLocal>::ms_pInstance (char base)
  93. // A1 ? ? ? ? 85 C0 75 ? 5F C3 8D
  94. mov esi,[0192403C] // v113.3
  95. lea ecx,[esi+04]
  96.  
  97. // 8B ? ? ? ? ? 85 ? 74 ? 83 ? ? 74 ? 83 ? ? C3
  98. // mov eax,[ecx+00007xxxx], usually the last result (8th)
  99. // or just get the value of edx at FF D2 89 84 24 ? ? ? ? 8D 84 24 ? ? ? ? 50 8B CF
  100. call 01220F90 // v113.3
  101.  
  102. test eax,eax
  103. je TeleportEnd
  104. push ebx
  105. push edx
  106. push 00
  107. mov ecx,eax
  108.  
  109. // 8B ? 24 ? 8B ? ? 8B ? ? ? 8D ? ? 8B ? ? ? ? ? ? FF ? 85 C0 ? ? ? ? ? ? ? ? ? E8
  110. call 01294170 // v113.3
  111.  
  112. TeleportEnd:
  113. ret
  114.  
  115. PressKey:
  116. // TSingleton<CWndMan>::ms_pInstance
  117. // 8B 15 ? ? ? ? 85 D2 74 23
  118. mov esi,[019285E4] // v113.3
  119. push edx // lparam (keycode)
  120. push 00 // unused wparam
  121. call 012C3CD0 // v113.3
  122. ret
  123.  
  124. Kami:
  125. // mov ecx, eax below 8B ? ? FF ? 8B ? B8 ? ? ? ? F7 ? C1 ? ? 8B ? C1 ? ? 03 ? 83 ? ? 74 ? 81 ? ? ? ? ? 75 ? 80 ? ? ? ? ? ? 74
  126. cmp dword ptr [esp], 0114C10A // v113.3
  127. pushad
  128. jne KamiExit
  129. // TSingleton<CUserLocal>::ms_pInstance (char base)
  130. // A1 ? ? ? ? 85 C0 75 ? 5F C3 8D
  131. mov eax,[0192403C]
  132. test eax,eax
  133. je KamiExit
  134. call GetMobXY
  135. test eax,eax
  136. je Loot
  137. //jmp Loot
  138. mov ebx,[eax+4]
  139. sub ebx,#0
  140. mov edx,[eax]
  141. sub edx,#50
  142. call NewTeleportXY
  143. //mov edx, CTRL//Change attack key here
  144. //Call PressKey
  145. jmp KamiExit
  146.  
  147. Loot:
  148. // TSingleton<CDropPool>::ms_pInstance (item base):
  149. // 89 3D ? ? ? ? 8D 4E ? C7 06
  150. mov esi,[01928D14] // v113.3
  151. mov esi,[esi+14] // item count offset (shouldnt change)
  152. cmp esi,0
  153. je TeleTopLeft
  154. mov edx, Z //Change loot key here
  155. call PressKey
  156. mov ebx,[ItemY]
  157. mov edx,[ItemX]
  158. call NewTeleportXY
  159. jmp KamiExit
  160.  
  161. TeleTopLeft:
  162. // TSingleton<CWvsPhysicalSpace2D>::ms_pInstance (map base)
  163. // A1 ? ? ? ? 8B 50 ? 83 C0
  164. mov edx,[019284E0] // v113.3
  165. mov edx,[edx+1C] // left offset (shouldnt change)
  166. mov ebx,[019284E0] // v113.3
  167. mov ebx,[ebx+20] // top offset (shouldnt change)
  168. call NewTeleportXY
  169.  
  170. KamiExit:
  171. popad
  172. jmp 0115A030 // v113.3
  173. // original value of the pointer
  174.  
  175. ItemHook:
  176. // 85 C0 75 ? 8D ? 24 ? C7 ? 24 ? ? ? ? ? E8 ? ? ? ? 8B
  177. cmp [esp],00656134 // v113.3
  178. jne PtInRect
  179. push eax
  180. mov eax,[esp+0C]
  181. mov [ItemX],eax
  182. mov eax,[esp+10]
  183. mov [ItemY],eax
  184. pop eax
  185. jmp PtInRect
  186.  
  187. // base: C7 ? ? ? ? ? C7 ? ? ? ? ? ? C7 ? ? ? ? ? ? C7 ? ? ? ? ? ? ? ? ? 8B ? ? ? ? ? 8B ? ? ? ? ? 50 C7 ? ? ? ? ? ? ? E8 ? ? ? ? 8B ? ? ? ? ? 33
  188. // offset: 8B ? ? FF ? 8B ? B8 ? ? ? ? F7 ? C1 ? ? 8B ? C1 ? ? 03 ? 83 ? ? 74 ? 81 ? ? ? ? ? 75 ? 80 ? ? ? ? ? ? 74
  189. 0177DC48+70: // v113.3
  190. dd Kami
  191.  
  192. // pointer call above 85 C0 75 ? 8D ? 24 ? C7 ? 24 ? ? ? ? ? E8 ? ? ? ? 8B
  193. 019370A8: // v113.3
  194. dd ItemHook
  195.  
  196. [Disable]
  197. 0177DC48+70: // v113.3
  198. dd 0115A030 // v113.3
  199. // original value of the pointer
  200.  
  201. 019370A8: // v113.3
  202. dd PtInRect
  203.  
  204. Dealloc(Kami)
  205. Dealloc(ItemHook)
  206. Dealloc(GetMobXY)
  207. Dealloc(NewTeleportXY)
  208. Dealloc(PressKey)
  209. Dealloc(TeleTopLeft)
  210. Dealloc(ItemX)
  211. Dealloc(ItemY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement