doer1937 發表於 2024-7-17 17:54:31

TwMs v262.5 自動補Buff

// TwMs v262.5 自動補Buff
// 依照職業自行修改, 技能說明裡有備註 "可登錄寵物Buff自動技能" 的都可以, (五轉核心技能冷卻結束也會自動補)

Alloc(Auto_Buff_Hook,1024,1452ED79E)
Alloc(Buff_Temp,512,1452ED79E)
Alloc(Buff_Count,08,1452ED79E)
Alloc(Buff_ID,512,1452ED79E)
Label(Auto_Buff_Exit1)
Label(Auto_Buff_Exit2)

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


DD 0//這行務必要保留

Auto_Buff_Hook:
push rax
push rbx
push rcx
push rdx
push rdi
push rsi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
sub rsp,30
mov rbx,
test rbx,rbx
je Auto_Buff_Exit2
lea rdx,
mov rcx,rbx
call 1452ED580
test al,al
je Auto_Buff_Exit2
mov edx,000000D
mov ,0
lea rcx,
call 14024CEC0
mov ,0
lea rcx,
mov ,FFFFFFFF
mov ,rcx
mov ,0
mov rax,
mov ,0
mov rdi,
mov edx,
cmp edx,-01
jne Auto_Buff_Exit2
mov edx,
test edx,edx
js Auto_Buff_Exit2
mov rsi,
mov rax,Buff_ID
mov r10d,
test r10d,r10d
jng Auto_Buff_Exit1
lea rax,
mov ,rax
mov ,0
xor r9d,r9d
lea r8,
mov edx,r10d
mov rcx,rbx
mov ,0
call 144AD8E20
inc
jmp Auto_Buff_Exit2

Auto_Buff_Exit1:
mov ,0
jmp Auto_Buff_Exit2

Auto_Buff_Exit2:
add rsp,30
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rsi
pop rdi
pop rdx
pop rcx
pop rbx
pop rax
call 144C09810
jmp 1452ED79E+5

1452ED79E:
jmp Auto_Buff_Hook


1452ED79E:
call 144C09810

DeAlloc(Buff_ID)
DeAlloc(Buff_Temp)
DeAlloc(Buff_Count)
DeAlloc(Auto_Buff_Hook)

ss007ss007 發表於 2024-7-21 16:11:31

請教一下複數技能的補buff,下方這樣寫對嗎?Buff_ID://技能ID請16進位
DD #21111012
DD #21111013

doer1937 發表於 2024-7-21 22:44:01

ss007ss007 發表於 2024-7-21 16:11 static/image/common/back.gif
請教一下複數技能的補buff,下方這樣寫對嗎?

是的  記得保留這行DD 0//這行務必要保留

ss007ss007 發表於 2024-7-21 22:57:17

doer1937 發表於 2024-7-21 22:44 static/image/common/back.gif
是的  記得保留這行

謝謝 有用出來了~
頁: [1]
查看完整版本: TwMs v262.5 自動補Buff