Riremito

kamivac

Feb 26th, 2015
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Enable]
  2. Alloc(TestScript, 512)
  3. Label(Teleport)
  4. Label(T_End)
  5. Label(Loop1)
  6. Label(Loop1_1)
  7. Label(Ending)
  8. Label(Hook)
  9. Label(Return)
  10. Label(MobTeleport)
  11. Label(Attack)
  12.  
  13.  
  14. TestScript:
  15.  
  16. MobTeleport:
  17. push ecx
  18. push esi
  19. push edi
  20. mov esi,[01CC0140]
  21. test esi,esi
  22. je Ending
  23. mov esi,[esi+28]
  24. test esi,esi
  25. je Ending
  26. lea esi,[esi-10]
  27. jmp Loop1_1
  28. Loop1:
  29. mov esi,[esi+4]
  30. test esi,esi
  31. je Ending
  32. Loop1_1:
  33. mov edi,[esi+14]
  34. test edi,edi
  35. je Loop1
  36. mov ecx,[edi+19C]
  37. test ecx,ecx
  38. je Loop1
  39. mov ecx,[ecx+24]
  40. test ecx,ecx
  41. je Loop1
  42. mov eax,[ecx+60]
  43. or eax,[ecx+64]
  44. test eax,eax
  45. je Loop1
  46. mov edi,[edi+198]
  47. test edi,edi
  48. je Loop1
  49. /*
  50. mov edi,[edi+100]
  51. test edi,edi
  52. je Loop1
  53. mov ebx,2
  54. xor edx,edx
  55. mov eax,[edi+18]
  56. sub eax,[edi+10]
  57. xor edx,edx
  58. mov ebx,2
  59. idiv ebx
  60. add eax,[edi+10]
  61. push [edi+14]
  62. push eax
  63. */
  64. push [edi+29C]
  65. push [edi+298]
  66. call Teleport
  67. Ending:
  68. pop edi
  69. pop esi
  70. pop ecx
  71. ret
  72.  
  73. Teleport:
  74. push esi
  75. mov esi,[01CBBCB4]//CharBase
  76. test esi,esi
  77. je T_End
  78. mov eax,[esp+8]
  79. mov [esi+AAD8],eax//X
  80. mov eax,[esp+C]
  81. mov [esi+AACC],eax//Y
  82. mov [esi+AAB4],1//Toggle
  83. T_End:
  84. pop esi
  85. ret 0008
  86.  
  87. Attack:
  88. push 002D0000
  89. push 58
  90. mov ecx,[01CBBCB4]
  91. call 01409980//6A FF 68 ?? ?? ?? ?? 64 A1 00 00 00 00 50 81 EC ?? ?? ?? ?? 53 55 56 57 A1 ?? ?? ?? ?? 33 C4 50 8D 84 24 ?? ?? ?? ?? 64 A3 00 00 00 00 8B F1 A1 ?? ?? ?? ?? 8B 88 ?? ?? ?? ?? 85 C9 0F 85 ?? ?? ?? ?? 39 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 38 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 38 88 ?? ?? ?? ?? 0F 85 ?? ?? ?? ?? 83 B8 ?? ?? ?? ?? 02 0F 84
  92. ret
  93.  
  94. Hook:
  95. call 01488CD0
  96. pushad
  97. call MobTeleport
  98. call Attack
  99. popad
  100. jmp Return
  101.  
  102. 01419F89:
  103. jmp Hook
  104. Return:
  105.  
  106. [Disable]
  107.  
  108. 01419F89:
  109. call 01488CD0
  110.  
  111. DeAlloc(TestScript)
Advertisement
Add Comment
Please, Sign In to add comment