- UID
- 21539
- 帖子
- 3019
- 主題
- 1553
- 精華
- 0
- 積分
- 3516
- 楓幣
- 1936
- 威望
- 3390
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 340
- 閱讀權限
- 90
- 在線時間
- 2528 小時
- 註冊時間
- 2013-1-30
- 最後登入
- 2024-4-29
|
本帖最後由 rhg59321 於 2021-10-8 02:42 編輯
// TwMs v237.1 CRC 列舉BuffID
// 避免Buff時間到消失了還繼續留在清單內, 每2秒會重新列舉所有BuffID
[Enable]
Registersymbol(Buff_List)
Alloc(Buff_List_Hook,512)
Alloc(Buff_List,512)
Alloc(Buff_Count,04)
Alloc(Timer,04)
Label(Buff_List_Exit)
Label(Record_Buff)
Label(Reset_List1)
Label(Reset_List2)
Buff_Count:
DD 0
Buff_List:
DD 0
Timer:
DD 0
Buff_List_Hook:
mov byte ptr [ebp-04],21
mov esi,[eax+30]
pushad
test esi,esi
je Reset_List1
cmp [041F8D30],0
je Reset_List1
call 02E11170
mov edi,eax
sub edi,[Timer]
cmp edi,000007D0 // 刷新Buff清單的延遲
jl Record_Buff
mov [Timer],eax
jmp Reset_List1
Record_Buff:
mov edi,[Buff_Count]
mov eax,[041F8A3C] // 00C5B350 - mov eax,[041F8A3C]
mov eax,[eax+00002300] // 030E65D5 - mov ecx,[edi+00002300]
cmp edi,[eax+2C] // 020C70BA - cmp dword ptr [ebx+2C],00
jae Buff_List_Exit
mov eax,[esi+04] // 020B4F84 - mov eax,[esi+04]
add eax,00000098
mov ebx,[eax]
mov eax,[esi+04] // 020B4FE0 - mov eax,[esi+04]
cmp dword ptr [eax+00000094],03
je Buff_List_Exit
lea eax,[esi-10] // 020B502F - lea eax,[esi-10]
test esi,esi
mov ecx,00000004
cmovne ecx,eax
mov esi,[ecx]
lea eax,[esi+14]
neg esi
sbb esi,esi
and esi,eax
mov [Buff_List+edi*4],ebx
add [Buff_Count],1
jne Record_Buff
jmp Buff_List_Exit
Reset_List1:
mov [Buff_Count],0
Reset_List2:
mov edi,[Buff_Count]
cmp [Buff_List+edi*4],0
je Buff_List_Exit
mov [Buff_List+edi*4],0
add [Buff_Count],1
jmp Reset_List2
Buff_List_Exit:
popad
jmp 020B4F75+7
020B4F75:
jmp Buff_List_Hook
nop
nop
[Disable]
020B4F75:
mov byte ptr [ebp-04],21
mov esi,[eax+30]
DeAlloc(Timer)
DeAlloc(Buff_List)
DeAlloc(Buff_Count)
DeAlloc(Buff_List_Hook)
UnRegistersymbol(Buff_List)
|
-
總評分: 骰子 + 1
查看全部評分
|