TwMS 193.2_ICS_物品過濾 [已測試]
//TwMS 193.2_ICS_ItemFilter//更新時間:2016-11-02
//更新: Boyue
//原創:未知 有知道的麻煩私信 將改正
Alloc(ItemFilter, 512)
Alloc(ItemList, 1024)
Label(Fake)
Label(Jmp1)
Label(Jmp2)
Label(Jmp3)
Label(Jmp4)
Label(Filter)
Label(End)
Label(Skip)
ItemList:
// 以下為欲過濾物品
DD 1F6EE0 //箭矢
DD 1F72C8 //弩箭矢
DD 1F95F4 //梅之鏢
DD 1F95F9 //木製陀螺
DD 1E8480 // 紅色藥水
DD 1E8481 // 橘色藥水
DD 1E8482 // 白色藥水
DD 1E8483 // 藍色藥水
DD 1E8486 // 活力藥水
// 以上為欲過濾物品
DD 00
ItemFilter:
cmp , 006A1A27
jne 00B7E286
mov , Fake
jmp 00B7E286
Fake:
//006A1A27
pop ecx
push eax
lea ecx,
call 0069B707
mov ecx,edi
mov ,ebx
call 004281B2
movzx eax,al
mov ecx,edi
mov ,eax
call 00428289
mov ,eax
lea eax,
push eax
lea eax,
push eax
lea ecx,
call 0069BB7D
test eax,eax
je Jmp1
cmp dword ptr ,01
je Jmp2
cmp dword ptr ,02
jne 006A3970
Jmp1:
//006A1A84
mov eax,
mov esi,
mov ,al
cmp eax,01
je Jmp3
cmp eax,02
je Jmp3
xor al,al
jmp Jmp4
Jmp2:
//006A1A6F
mov eax,
cmp ,bl
jne 006A3970
mov byte ptr ,01
jmp 006A3970
Jmp3:
//006A1A9B
mov al,01
Jmp4:
//006A1A9D
mov ,al
mov eax,
mov ecx,edi
mov ,eax
call 004281B2
movzx eax,al
mov ecx,edi
//xor eax, eax //取消註解=金錢過濾
mov ,eax
call 00428289
mov ecx,edi
mov ,eax
call 00428289
mov ecx,edi
mov ,eax
call 00428289
mov ,eax
fild dword ptr
mov ecx,edi
fdiv qword ptr
fstp dword ptr
call 00428289
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, edi
mov ,eax
jmp 006A1AF2
0234D5FC:
DD ItemFilter
0234D5FC:
DD 00B7E286
頁:
[1]