冰楓論壇
標題:
TwMS v216.1 CRC ItemFilter(黑/白名單)
[打印本頁]
作者:
smilelin0419
時間:
2019-5-28 21:31
標題:
TwMS v216.1 CRC ItemFilter(黑/白名單)
//TwMS v216.1 CRC ItemFilter(黑/白名單)
// 原創:未知 有知道的麻煩私信 將改正
[Enable]
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 [ItemFliterMode],01
Je FilterBlack
Cmp [ItemFliterMode],02
Je FilterWhite
FilterBlack:
CMP EAX,C350
JLE End
CMP DWORD PTR DS:[ESI],0
JE End
CMP DWORD PTR DS:[ESI],eax
JE Skip
ADD ESI,04
JMP FilterBlack
FilterWhite:
CMP EAX,C350
JLE End
CMP DWORD PTR DS:[ESI],0
JE Skip
CMP DWORD PTR DS:[ESI],eax
JE End
ADD ESI,04
JMP FilterWhite
Skip:
xor eax, eax
End:
POP ESI
mov ecx,[03C18CC0]
mov [ebp-3C],eax
inc ecx
mov eax,939A85C5
mov [03C18CC0],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,[ebx+54]
mov ecx,03C2B518
push 0C
JMP 00F76702
00F766C9:
JMP ItemFilter
[Disable]
00F766C9:
call 0047ACF0
DeAlloc(ItemList)
DeAlloc(ItemFilter)
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓