- UID
- 250672
- 帖子
- 659
- 主題
- 115
- 精華
- 0
- 積分
- 90
- 楓幣
- 15478
- 威望
- 66
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 100
- 閱讀權限
- 100
- 性別
- 保密
- 在線時間
- 473 小時
- 註冊時間
- 2018-10-26
- 最後登入
- 2024-12-2
|
// credits SunCat for updated aob
[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 #10 // Minimum meso
Mode:
dd #1 // 0 = Accept, 1 = reject
ItemList:
//Add filter like below
//dd #itemID
//dd #4000463
dd #2001527
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,#1000 // 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
inc ecx
mov eax,939A85C5
jmp Return
01135167:
jmp ItemFilter
nop
nop
nop
nop
Return:
[DISABLE]
01135167:
mov [ebp-34],eax
inc ecx
mov eax,939A85C5
dealloc(ItemFilter)
dealloc(ItemList)
dealloc(Mesos)
dealloc(Mode)
|
|