- UID
- 119417
- 帖子
- 10957
- 主題
- 4281
- 精華
- 0
- 積分
- 5353
- 楓幣
- 13522
- 威望
- 5256
- 存款
- 70
- 贊助金額
- 0
- 推廣
- 0
- GP
- 2484
- 閱讀權限
- 150
- 性別
- 保密
- 在線時間
- 1934 小時
- 註冊時間
- 2015-10-18
- 最後登入
- 2024-11-14
|
- //TwMs 201.1_ICS_物品過濾
- //ICS:zeach01
- [Enable]
- Alloc(ItemFilter_ChkEsp, 512)
- Alloc(ItemList,1024)
- Label(Filter_Hook)
- Label(Filter_Je)
- Label(Filter)
- Label(End)
- Label(Skip)
- ItemList:
- // 以下為欲過濾物品
- DD 1E8482 // 白色藥水
- // 以上為欲過濾物品
- DD 00
- ItemFilter_ChkEsp:
- cmp [esp],00C06B07
- jne InterlockedIncrement
- mov [esp],Filter_Hook
- jmp InterlockedIncrement
- Filter_Hook:
- mov ecx,ebx
- mov [ebp-04],00000000
- call 00477c30
- movzx eax,al
- mov ecx,ebx
- mov [ebp-48],eax
- call 0046fdd0
- mov esi,[esi+0C]
- mov ebx,eax
- test esi,esi
- jne 00C06B2B
- mov eax,[ebp-48]
- mov [edi+30],al
- cmp eax,01
- je Filter_Je
- cmp eax,02
- je Filter_Je
- xor al,al
- jmp Filter_Je
- Filter_Je:
- mov [edi+31],al
- mov [edi+34],ebx
- mov ebx,[ebp+08]
- mov ecx,ebx
- call 00477c30
- movzx eax,al
- mov ecx,ebx
- xor eax, eax //楓幣過濾
- mov [edi+44],eax
- call 0046fdd0
- mov ecx,ebx
- mov [edi+000000C4],eax
- Call 0046fdd0
- mov ecx,ebx
- mov [edi+000000C8],eax
- Call 0046fdd0
- mov ecx,ebx
- movd xmm0,eax
- cvtdq2ps xmm0,xmm0
- divss xmm0,[02A0E6E0]
- DB F3 0F 11 87 DC 00 00 00
- call 0046fdd0
- push esi
- mov esi,ItemList
- Filter:
- cmp eax,C350
- jle End
- cmp dword ptr ds:[esi],0
- je End
- cmp dword ptr ds:[esi],eax
- je Skip
- add esi, 4
- jmp Filter
- Skip:
- xor eax, eax
- End:
- pop esi
- mov ecx,ebx
- mov [edi+48],eax
- jmp 00C06BFC
- 02A0A158:
- DD ItemFilter_ChkEsp
- [Disable]
- 02A0A158:
- DD InterlockedIncrement
複製代碼 |
|