- UID
- 100875
- 帖子
- 1829
- 主題
- 1572
- 精華
- 0
- 積分
- 2356
- 楓幣
- 5499
- 威望
- 1624
- 存款
- 30000
- 贊助金額
- 2800
- 推廣
- 0
- GP
- 1944
- 閱讀權限
- 150
- 性別
- 保密
- 在線時間
- 648 小時
- 註冊時間
- 2015-4-27
- 最後登入
- 2024-11-20
|
- //TwMs v265.3 自動補Buff
- //依照職業自行修改,技能說明裡有備註 "可登錄寵物Buff自動技能" 的都可以,(五轉核心技能冷卻結束也會自動補)
- [ENABLE]
- Alloc(Auto_Buff_Hook,1024,14552BE7E)
- Alloc(Buff_Temp,512,14552BE7E)
- Alloc(Buff_Count,08,14552BE7E)
- Alloc(Buff_ID,512,14552BE7E)
- Label(Auto_Buff_Exit1)
- Label(Auto_Buff_Exit2)
- Buff_ID: //技能ID請16進位
- //範例如下,擇一即可
- //可填入十六進制,如下
- DD 00236A68 //楓葉祝福 2321000(十進制) 00236A68(十六進制)
- //亦可填入十進制,如下
- DD #2321000 //楓葉祝福 2321000(十進制) 00236A68(十六進制)
- 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,[147AD41E8]
- test rbx,rbx
- je Auto_Buff_Exit2
- lea rdx,[Buff_ID]
- mov rcx,rbx
- call 14552BC60
- test al,al
- je Auto_Buff_Exit2
- mov edx,0000000D
- mov [Buff_Temp+10],0
- lea rcx,[147DEE030]
- call 1402612F0
- mov [rax+04],0
- lea rcx,[rax+0C]
- mov [rax],FFFFFFFF
- mov [Buff_Temp+10],rcx
- mov [rax+08],0
- mov rax,[Buff_Temp+10]
- mov [rax],0
- mov rdi,[Buff_Temp+10]
- mov edx,[rdi-0C]
- cmp edx,-01
- jne Auto_Buff_Exit2
- mov edx,[rdi-08]
- test edx,edx
- js Auto_Buff_Exit2
- mov rsi,[Buff_Count]
- mov rax,Buff_ID
- mov r10d,[rax+rsi*4]
- test r10d,r10d
- jng Auto_Buff_Exit1
- lea rax,[Buff_Temp]
- mov [rsp+28],rax
- mov [rsp+20],0
- xor r9d,r9d
- lea r8,[Buff_Temp+10]
- mov edx,r10d
- mov rcx,rbx
- mov [rdi-04],0
- call 144CDAC30
- inc [Buff_Count]
- jmp Auto_Buff_Exit2
- Auto_Buff_Exit1:
- mov [Buff_Count],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 144E0BCA0
- jmp 14552BE7E+5
- 14552BE7E:
- jmp Auto_Buff_Hook
- [DISABLE]
- 14552BE7E:
- call 144E0BCA0
- DeAlloc(Buff_ID)
- DeAlloc(Buff_Temp)
- DeAlloc(Buff_Count)
- DeAlloc(Auto_Buff_Hook)
複製代碼 |
|