- UID
- 287787
- 帖子
- 219
- 主題
- 94
- 精華
- 0
- 積分
- 381
- 楓幣
- 3070
- 威望
- 354
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 6
- GP
- 101
- 閱讀權限
- 30
- 在線時間
- 547 小時
- 註冊時間
- 2020-8-5
- 最後登入
- 2024-11-21
|
- // TwMs v228.1 ICS Item Filter
- [ENABLE]
- Alloc(ItemFilter_CheckESP,1024)
- Alloc(ItemList,10240)
- Alloc(Mesos,4)
- Alloc(Mode,4)
- Alloc(ItemFilterSW,4)
- RegisterSymbol(ItemFilterSW)
- Label(ItemFilter_Hook)
- Label(ItemFilter)
- Label(End)
- Label(FilterMesos)
- Label(RejectOrAccept)
- Label(AcceptFilter)
- Label(RejectFilter)
- Label(Ignore)
- ItemFilterSW:
- DD 1
- Mesos:
- DD 0 // Minimum meso
- Mode:
- DD 1 // 0 = Accept 1 = Reject
- ItemList:
- //Add filter like below
- //dd ItemID
- DD #2000006//活力神水
- DD 00 // End of list
- ItemFilter_CheckESP:
- cmp [esp+10],0150017E
- jne GetLastError
- mov [esp+10],ItemFilter_Hook
- jmp GetLastError
- ItemFilter_Hook:
- cmp [ItemFilterSW],1
- jne 0150017E
- mov ecx,[ebx+48]
- mov [ecx+04],al
- mov ecx,00009A65
- mov edi,[ebx+48]
- mov al,[edi+04]
- test al,al
- mov [edi+08],cx
- movzx ebx,al
- mov ecx,0000002A
- cmove ebx,ecx
- mov al,bl
- xor al,[ebp-34]
- mov [edi],al
- add al,cl
- add bl,al
- mov eax,[ebp-20]
- mov esi,[eax+48]
- movzx eax,bl
- movzx ecx,word ptr [esi+08]
- mov dx,cx
- shr dx,0D
- add dx,ax
- lea eax,[ecx*8+00000000]
- mov ecx,0000002A
- or dx,ax
- test bl,bl
- mov [esi+08],dx
- movzx eax,bl
- cmovne ecx,eax
- mov al,cl
- add cl,2A
- xor al,[ebp-33]
- mov [edi+01],al
- lea ebx,[ecx+eax]
- mov eax,[ebp-20]
- mov esi,[eax+48]
- movzx eax,bl
- movzx ecx,word ptr [esi+08]
- mov dx,cx
- shr dx,0D
- add dx,ax
- lea eax,[ecx*8+00000000]
- mov ecx,0000002A
- or dx,ax
- test bl,bl
- movzx eax,bl
- cmovne ecx,eax
- mov [esi+08],dx
- mov al,cl
- add cl,2A
- xor al,[ebp-32]
- mov [edi+02],al
- lea ebx,[ecx+eax]
- mov eax,[ebp-20]
- mov esi,[eax+48]
- movzx eax,bl
- movzx ecx,word ptr [esi+08]
- mov dx,cx
- shr dx,0D
- add dx,ax
- lea eax,[ecx*8+00000000]
- mov ecx,0000002A
- or dx,ax
- movzx eax,bl
- test bl,bl
- mov [esi+08],dx
- mov ebx,[ebp-20]
- cmovne ecx,eax
- mov al,cl
- add cl,2A
- xor al,[ebp-31]
- mov [edi+03],al
- add al,cl
- mov esi,[ebx+48]
- movzx eax,al
- movzx ecx,word ptr [esi+08]
- mov dx,cx
- shr dx,0D
- add dx,ax
- lea eax,[ecx*8+00000000]
- or dx,ax
- mov [esi+08],dx
- mov esi,[ebp+08]
- mov ecx,esi
- call 0088FAB0
- mov ecx,esi
- mov [ebx+000000F4],eax
- call 0088FAB0
- mov ecx,esi
- mov [ebx+000000F8],eax
- call 0088FAB0
- mov ecx,esi
- movd xmm0,eax
- cvtdq2ps xmm0,xmm0
- divss xmm0,[03A0395C]
- movss [ebx+00000110],xmm0
- call 0088FAB0
- mov ecx,[044E9100]
- jmp ItemFilter
- 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 015002E0
- 039FE1C4:
- DD ItemFilter_CheckESP
- [DISABLE]
- 039FE1C4:
- DD GetLastError
- DeAlloc(ItemFilter_CheckESP)
- DeAlloc(ItemList)
- DeAlloc(Mesos)
- DeAlloc(Mode)
- DeAlloc(ItemFilterSW)
- UnRegisterSymbol(ItemFilterSW)
複製代碼 |
-
總評分: 楓幣 + 10
彩票 + 2
查看全部評分
|