冰楓論壇

標題: TwMs v262.4 自動補Buff [打印本頁]

作者: doer1937    時間: 2024-7-10 20:39
標題: TwMs v262.4 自動補Buff
  1. // TwMs v262.4 自動補Buff
  2. // 依照職業自行修改, 技能說明裡有備註 "可登錄寵物Buff自動技能" 的都可以, (五轉核心技能冷卻結束也會自動補)
  3. [Enable]
  4. Alloc(Auto_Buff_Hook,1024,1452F055E)
  5. Alloc(Buff_Temp,512,1452F055E)
  6. Alloc(Buff_Count,08,1452F055E)
  7. Alloc(Buff_ID,512,1452F055E)
  8. Label(Auto_Buff_Exit1)
  9. Label(Auto_Buff_Exit2)

  10. Buff_ID://技能ID請16進位
  11. DD #21111012

  12. DD 0//這行務必要保留

  13. Auto_Buff_Hook:
  14. push rax
  15. push rbx
  16. push rcx
  17. push rdx
  18. push rdi
  19. push rsi
  20. push r8
  21. push r9
  22. push r10
  23. push r11
  24. push r12
  25. push r13
  26. push r14
  27. push r15
  28. sub rsp,30
  29. mov rbx,[14784A4D8]
  30. test rbx,rbx
  31. je Auto_Buff_Exit2
  32. lea rdx,[Buff_ID]
  33. mov rcx,rbx
  34. call 1452F0340
  35. test al,al
  36. je Auto_Buff_Exit2
  37. mov edx,000000D
  38. mov [Buff_Temp+10],0
  39. lea rcx,[147B644B0]
  40. call 14024CE90
  41. mov [rax+04],0
  42. lea rcx,[rax+0C]
  43. mov [rax],FFFFFFFF
  44. mov [Buff_Temp+10],rcx
  45. mov [rax+08],0
  46. mov rax,[Buff_Temp+10]
  47. mov [rax],0
  48. mov rdi,[Buff_Temp+10]
  49. mov edx,[rdi-0C]
  50. cmp edx,-01
  51. jne Auto_Buff_Exit2
  52. mov edx,[rdi-08]
  53. test edx,edx
  54. js Auto_Buff_Exit2
  55. mov rsi,[Buff_Count]
  56. mov rax,Buff_ID
  57. mov r10d,[rax+rsi*4]
  58. test r10d,r10d
  59. jng Auto_Buff_Exit1
  60. lea rax,[Buff_Temp]
  61. mov [rsp+28],rax
  62. mov [rsp+20],0
  63. xor r9d,r9d
  64. lea r8,[Buff_Temp+10]
  65. mov edx,r10d
  66. mov rcx,rbx
  67. mov [rdi-04],0
  68. call 144ADB950
  69. inc [Buff_Count]
  70. jmp Auto_Buff_Exit2

  71. Auto_Buff_Exit1:
  72. mov [Buff_Count],0
  73. jmp Auto_Buff_Exit2

  74. Auto_Buff_Exit2:
  75. add rsp,30
  76. pop r15
  77. pop r14
  78. pop r13
  79. pop r12
  80. pop r11
  81. pop r10
  82. pop r9
  83. pop r8
  84. pop rsi
  85. pop rdi
  86. pop rdx
  87. pop rcx
  88. pop rbx
  89. pop rax
  90. call 144C0C2F0
  91. jmp 1452F055E+5

  92. 1452F055E:
  93. jmp Auto_Buff_Hook

  94. [Disable]
  95. 1452F055E:
  96. call 144C0C2F0

  97. DeAlloc(Buff_ID)
  98. DeAlloc(Buff_Temp)
  99. DeAlloc(Buff_Count)
  100. DeAlloc(Auto_Buff_Hook)
複製代碼





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