smilelin0419 發表於 2019-5-28 21:31:01

TwMS v216.1 CRC ItemFilter(黑/白名單)

//TwMS v216.1 CRC ItemFilter(黑/白名單)
// 原創:未知 有知道的麻煩私信 將改正


Alloc(WhiteItemList, 1024)
Alloc(ItemFliterMode, 8)
Alloc(ItemFilter,512)
Label(Skip)
Label(End)
Label(FilterBlack)
Label(FilterWhite)
Label(FilterModeChoose)

ItemFliterMode:
DD 01 // 01-黑名單 02-白名單

WhiteItemList:
// 以下為欲過濾物品

DD 001F6EE0 //箭矢
DD 003D0909 //藍姑姑傘
DD 003D0950 //煉獄獵犬的項鍊
DD 001E8486 //活力藥水
// 以上為欲過濾物品
DD 00

ItemFilter:
call 0047ACF0
PUSH ESI
MOV  ESI,WhiteItemList
jmp FilterModeChoose

FilterModeChoose:
Cmp ,01
Je FilterBlack
Cmp ,02
Je FilterWhite

FilterBlack:
CMP  EAX,C350
JLE  End
CMP  DWORD PTR DS:,0
JE   End
CMP  DWORD PTR DS:,eax
JE   Skip
ADD  ESI,04
JMP  FilterBlack

FilterWhite:
CMP  EAX,C350
JLE  End
CMP  DWORD PTR DS:,0
JE   Skip
CMP  DWORD PTR DS:,eax
JE   End
ADD  ESI,04
JMP  FilterWhite

Skip:
xor eax, eax

End:
POP  ESI
mov ecx,
mov ,eax
inc ecx
mov eax,939A85C5
mov ,ecx
imul ecx
add edx,ecx
sar edx,06
mov eax,edx
shr eax,1F
add eax,edx
imul eax,eax,6F
sub ecx,eax
jne 00F76723
mov esi,
mov ecx,03C2B518
push 0C
JMP 00F76702

00F766C9:
JMP ItemFilter


00F766C9:
call 0047ACF0

DeAlloc(ItemList)
DeAlloc(ItemFilter)

頁: [1]
查看完整版本: TwMS v216.1 CRC ItemFilter(黑/白名單)