Advertisement
toko214

Dragon kami

Mar 24th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ENABLE]
  2. alloc(EvanDragonKami,128)
  3. label(DragonTeleport)
  4. label(NextTeleport)
  5. label(Ending)
  6. label(Check)
  7. label(ReturnXor)
  8. label(ReturnPop)
  9.  
  10. EvanDragonKami:
  11. lea eax,[esp+2C]
  12. push eax
  13. call DragonTeleport
  14. test eax,eax
  15. je Ending
  16. mov edx,[eax+04]
  17. sub edx, #0 // Dragon Kami Range Y
  18. mov eax,[eax]
  19. add eax, #0 // Dragon Kami Range X
  20. add esp,0C
  21. jmp 00734EB5 // 8B 00 8B 4E ? 52 mov ecx,[esi+10] below
  22.  
  23. DragonTeleport:
  24. push ebp
  25. mov ebp,esp
  26. push ecx
  27. push esi
  28. mov eax,[020C44FC] // Mob Base: 8B 0D ? ? ? ? ? E8 ? ? ? ? 8B ? 85 ? 74 ? 8B ? ? 8B ? ? 8D
  29. test eax,eax
  30. je ReturnXor
  31. mov eax,[eax+28]
  32. test eax,eax
  33. je ReturnXor
  34. mov [ebp-04],eax
  35.  
  36. NextTeleport:
  37. lea eax,[ebp-04]
  38. push eax
  39. call 00478C50 // E8 ? ? ? ? 8B ? ? 8B ? ? 8B ? ? 8B ? ? 8B ? ? 8B [Follow Call]
  40. add esp,04
  41. mov esi,[eax+04]
  42. // Assembly Scan: mov [esi+00000804],eax
  43. // GMS v.170.1 00D8AF2A
  44. cmp dword ptr [esi+00000804],00
  45. je Check
  46. lea ecx,[esi+04]
  47. mov edx,[ecx]
  48. mov edx,[edx+10]
  49. mov eax,[ebp+08]
  50. push eax
  51. call edx
  52. jmp ReturnPop
  53.  
  54. Check:
  55. cmp byte ptr [ebp-04],00
  56. jne NextTeleport
  57.  
  58. ReturnXor:
  59. xor eax,eax
  60.  
  61. ReturnPop:
  62. pop esi
  63. mov esp,ebp
  64. pop ebp
  65. ret 0004
  66.  
  67. Ending:
  68. call dword ptr [020D894C] // Original Opcode
  69. jmp 017BDA33 // test eax,eax below
  70.  
  71. 017BDA2D:
  72. jmp EvanDragonKami
  73. db 90
  74.  
  75. [DISABLE]
  76. 017BDA2D: // FF 15 ? ? ? ? 85 C0 75 ? 8B ? 8B ? ? 8D [First Result]
  77. call dword ptr [020D894C]
  78.  
  79. dealloc(EvanDragonKami)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement