TwMS 201.1_ICS_物品過濾
//TwMS 201.1_ICS_物品過濾//ICS:zeach01
Alloc(ItemFilter_ChkEsp, 512)
Alloc(ItemList,1024)
Label(Filter_Hook)
Label(Filter_Je)
Label(Filter)
Label(End)
Label(Skip)
ItemList:
// 以下為欲過濾物品
DD 1E8482 // 白色藥水
// 以上為欲過濾物品
DD 00
ItemFilter_ChkEsp:
cmp ,00C06B07
jne InterlockedIncrement
mov ,Filter_Hook
jmp InterlockedIncrement
Filter_Hook:
mov ecx,ebx
mov ,00000000
call 00477c30
movzx eax,al
mov ecx,ebx
mov ,eax
call 0046fdd0
mov esi,
mov ebx,eax
test esi,esi
jne 00C06B2B
mov eax,
mov ,al
cmp eax,01
je Filter_Je
cmp eax,02
je Filter_Je
xor al,al
jmp Filter_Je
Filter_Je:
mov ,al
mov ,ebx
mov ebx,
mov ecx,ebx
call 00477c30
movzx eax,al
mov ecx,ebx
xor eax, eax //楓幣過濾
mov ,eax
call 0046fdd0
mov ecx,ebx
mov ,eax
Call 0046fdd0
mov ecx,ebx
mov ,eax
Call 0046fdd0
mov ecx,ebx
movd xmm0,eax
cvtdq2ps xmm0,xmm0
divss xmm0,
DB F3 0F 11 87 DC 00 00 00
call 0046fdd0
push esi
mov esi,ItemList
Filter:
cmp eax,C350
jle End
cmp dword ptr ds:,0
je End
cmp dword ptr ds:,eax
je Skip
add esi, 4
jmp Filter
Skip:
xor eax, eax
End:
pop esi
mov ecx,ebx
mov ,eax
jmp 00C06BFC
02A0A158:
DD ItemFilter_ChkEsp
02A0A158:
DD InterlockedIncrement
頁:
[1]