冰楓論壇

標題: TwMS v229.2 登記找路 Thread [打印本頁]

作者: 麗麗    時間: 2020-10-21 20:37
標題: TwMS v229.2 登記找路 Thread
  1. // TwMS v229.2 登記找路 Thread

  2. [ENABLE]
  3. RegisterSymbol(AutoFindway)
  4. Alloc(AutoFindway,512)
  5. RegisterSymbol(delay)
  6. Alloc(delay,04)
  7. Alloc(timer,04)
  8. Label(do)
  9. CreateThread(AutoFindway)

  10. delay:
  11. dd 3E8

  12. timer:
  13. dd 0

  14. AutoFindway:
  15. call 02BB0060
  16. mov edx,eax
  17. sub edx,[timer]
  18. cmp edx,[delay]
  19. jl AutoFindway
  20. mov [timer],eax

  21. // Check Status Start
  22. mov eax,[042CFA94]
  23. mov eax,[eax+00000174]
  24. cmp eax,1
  25. jne AutoFindway

  26. mov eax,[042CFD74]
  27. mov eax,[eax+00010A68]
  28. cmp eax,0
  29. je AutoFindway

  30. mov eax,[042CFD74]
  31. mov eax,[eax+00010A6C]
  32. cmp eax,000F423F
  33. je AutoFindway
  34. // Check Status End

  35. call do
  36. jmp AutoFindway

  37. do:
  38. // Teleport
  39. mov eax,[042CFD74]
  40. mov ebx,[eax+00010A68] //X
  41. mov edx,[eax+00010A6C] //Y
  42. sub edx,2 //adjust Y
  43. mov esi,[042CFD74]
  44. lea ecx,[esi+04]
  45. mov eax,[esi+04]
  46. mov eax,[eax+24]
  47. call eax
  48. test eax,eax
  49. je AutoFindway
  50. push edx
  51. push ebx
  52. push 00
  53. mov ecx,eax
  54. call 00B73C20
  55. //
  56. mov eax,[042CFD74]
  57. mov [eax+00011A1C],1
  58. ret

  59. [DISABLE]
  60. AutoFindway:
  61. ret

  62. UnRegisterSymbol(AutoFindway)
  63. DeAlloc(AutoFindway)
  64. UnRegisterSymbol(delay)
  65. DeAlloc(delay)
  66. DeAlloc(timer)
複製代碼





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓