- UID
- 17135
- 帖子
- 667
- 主題
- 274
- 精華
- 0
- 積分
- 390
- 楓幣
- 6907
- 威望
- 335
- 存款
- 3034
- 贊助金額
- 0
- 推廣
- 0
- GP
- 305
- 閱讀權限
- 30
- 性別
- 男
- 在線時間
- 1092 小時
- 註冊時間
- 2012-11-11
- 最後登入
- 2024-9-30
|
- // TwMs v227.2 CRC Item Filter((物品&金币過濾)
- // Update From GMS
- [ENABLE]
- alloc(ItemFilter,256)
- alloc(ItemList,2048)
- alloc(Mesos,4)
- alloc(Mode,4)
- label(Return)
- label(End)
- label(FilterMesos)
- label(RejectOrAccept)
- label(AcceptFilter)
- label(RejectFilter)
- label(Ignore)
- Mesos:
- dd 3e8 // Minimum meso (金幣<=1000過濾)
- Mode:
- dd 1 // 0 = Accept(白名單), 1 = reject(黑名單)
- ItemList:
- //Add filter like below
- //dd ItemID
- dd 001E8486 //活力藥水
- dd 00 // End of list
- ItemFilter:
- push edx
- mov edx,[Mesos]
- cmp eax,edx
- jle FilterMesos
- mov edx,ItemList
- jmp RejectOrAccept
- FilterMesos:
- mov eax,0
- jmp End
- RejectOrAccept:
- cmp byte ptr [Mode],0
- je AcceptFilter
- cmp byte ptr [Mode],1
- je RejectFilter
- AcceptFilter:
- cmp eax,[edx](Mesos)
- je End
- cmp dword ptr [edx],0
- je Ignore
- add edx,4
- jmp AcceptFilter
- RejectFilter:
- cmp eax,[edx]
- je Ignore
- cmp dword ptr [edx],0
- je End
- add edx,4
- jmp RejectFilter
- Ignore:
- cmp eax,3E8 // Added this code otherwise mesos is dropped but not shown in accept mode
- jle End
- mov eax,0
- End:
- pop edx
- mov [ebp-34],eax // Original Opcode
- inc ecx // Original Opcode
- mov eax,939A85C5 // Original Opcode
- jmp Return
- 014D235C:
- jmp ItemFilter
- nop
- nop
- nop
- nop
- Return:
- [DISABLE]
- 014D235C:
- divss xmm0,[039E596C]
- movss [ebx+00000110],xmm0
- call 00890930
- dealloc(ItemFilter)
- dealloc(ItemList)
- dealloc(Mesos)
- dealloc(Mode)
複製代碼 |
-
總評分: 彩票 + 1
查看全部評分
|