冰楓論壇

標題: TwMS v263.3 牆值左右走 [打印本頁]

作者: 晴曦    時間: 2024-8-16 04:12
標題: TwMS v263.3 牆值左右走
  1. //TwMS v263.3 牆值左右走
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry,128,140F7B610)
  4. Alloc(AutoLRMain,256,140F7B610)
  5. Alloc(MyLR,08,140F7B610)
  6. Label(GetWall)
  7. Label(GetChrX)
  8. Label(ICSReturn)
  9. Label(GoLeft)
  10. Label(GoRight)

  11. MyLR:
  12. DQ 1

  13. AutoLRICSEntry:
  14. push rax
  15. mov rax,140F7B610
  16. cmp [rsp+08],rax
  17. jne ICSReturn
  18. mov rax,AutoLRMain
  19. mov [rsp+08],rax

  20. ICSReturn:
  21. pop rax
  22. jmp GetFocus

  23. AutoLRMain:
  24. call GetWall
  25. mov byte ptr [rbp-0A],00
  26. mov [rbp+000000E0],eax
  27. xor rcx,rcx
  28. xor rbx,rbx
  29. xor rax,rax
  30. jmp 140F7B63F

  31. GetWall:
  32. call GetChrX
  33. mov rcx,[147AEAE60]
  34. mov ebx,[rcx+18]
  35. sub eax,ebx
  36. cmp eax,0
  37. jle GoRight
  38. call GetChrX
  39. mov rcx,[147AEAE60]
  40. mov ebx,[rcx+20]
  41. sub ebx,eax
  42. cmp ebx,0
  43. jle GoLeft
  44. mov eax,[MyLR]
  45. ret

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

  50. GoRight:
  51. Mov [MyLR],1
  52. Mov Eax,1
  53. Ret

  54. GetChrX:
  55. mov rax,[14785FB98]
  56. mov rax,[rax+1028]
  57. mov rax,[rax+E0]
  58. mov rax,[rax+58]
  59. mov rax,[rax+28]
  60. mov rax,[rax+58]
  61. mov rax,[rax+70]
  62. ret

  63. 147B78370:
  64. DQ AutoLRICSEntry

  65. [DISABLE]
  66. 147B78370:
  67. DQ GetFocus

  68. DeAlloc(AutoLRMain)
  69. DeAlloc(AutoLRValue)
  70. DeAlloc(AutoLRRange)
  71. DeAlloc(AutoLRICSEntry)
複製代碼





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