冰楓論壇

標題: TwMS v227.1 ICS 牆值左右走 [打印本頁]

作者: prt    時間: 2020-8-6 22:38
標題: TwMS v227.1 ICS 牆值左右走
  1. //TwMS v227.1 ICS 牆值左右走
  2. [Enable]
  3. Alloc(AutoLRICS,512)
  4. Alloc(MyLR,4)
  5. Label(AutoLR)
  6. Label(GetWall)
  7. Label(GetChrX)
  8. Label(GoRight)
  9. Label(GoLeft)

  10. MyLR:
  11. DD 1

  12. AutoLRICS:
  13. Cmp [Esp],00B6A93A
  14. Jne GetFocus
  15. Mov [Esp],AutoLR
  16. Jmp GetFocus

  17. AutoLR:
  18. Call GetWall
  19. Mov [ebp-1C],Eax
  20. Xor Ecx,Ecx
  21. Xor Eax,Eax
  22. Cmp [ebp-1C],Eax
  23. Jmp 00B6B1E1

  24. GetWall:
  25. Call GetChrX
  26. Mov Ecx,[042311CC]
  27. Sub Eax,[Ecx+0C]
  28. Cmp Eax,04
  29. Jle GoRight
  30. Call GetChrX
  31. Mov Ecx,[Ecx+14]
  32. sub Ecx,Eax
  33. cmp Ecx,04
  34. Jle GoLeft
  35. Mov Eax,[MyLR]
  36. Ret

  37. GetChrX:
  38. Mov Eax,[042311EC]
  39. Mov Eax,[Eax+CC4C]
  40. Mov Eax,[Eax+34]
  41. Mov Eax,[Eax+58]
  42. Ret

  43. GoRight:
  44. Mov [MyLR],1
  45. Mov Eax,1
  46. Ret

  47. GoLeft:
  48. Mov [MyLR],FFFFFFFF
  49. Mov Eax,FFFFFFFF
  50. Ret

  51. 044DCB78:
  52. DD AutoLRICS

  53. [Disable]
  54. 044DCB78:
  55. DD GetFocus

  56. DeAlloc(MyLR)
  57. DeAlloc(AutoLRICS)
複製代碼





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