冰楓論壇

標題: TwMS v265.3 自動補Buff [打印本頁]

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

  10. Buff_ID: //技能ID請16進位

  11. //範例如下,擇一即可

  12. //可填入十六進制,如下
  13. DD 00236A68 //楓葉祝福 2321000(十進制) 00236A68(十六進制)

  14. //亦可填入十進制,如下
  15. DD #2321000 //楓葉祝福 2321000(十進制) 00236A68(十六進制)

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

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

  75. Auto_Buff_Exit1:
  76. mov [Buff_Count],0
  77. jmp Auto_Buff_Exit2

  78. Auto_Buff_Exit2:
  79. add rsp,30
  80. pop r15
  81. pop r14
  82. pop r13
  83. pop r12
  84. pop r11
  85. pop r10
  86. pop r9
  87. pop r8
  88. pop rsi
  89. pop rdi
  90. pop rdx
  91. pop rcx
  92. pop rbx
  93. pop rax
  94. call 144E0BCA0
  95. jmp 14552BE7E+5

  96. 14552BE7E:
  97. jmp Auto_Buff_Hook

  98. [DISABLE]
  99. 14552BE7E:
  100. call 144E0BCA0

  101. DeAlloc(Buff_ID)
  102. DeAlloc(Buff_Temp)
  103. DeAlloc(Buff_Count)
  104. DeAlloc(Auto_Buff_Hook)
複製代碼





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