乂Boyue乂 發表於 2016-7-27 13:05:50

TwMS 191.1_ICS_物品過濾 [已測試]

//TwMS 191.1_ICS_物品過濾
//更新時間:2016-07-27
//更新: 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 , 0067D717
jne 00B4E146
mov , Fake
jmp 00B4E146

Fake:
//0067D717
pop ecx
push eax
lea ecx,
call 006771E4
mov ecx,edi
mov ,ebx
call 004277F1
movzx eax,al
mov ecx,edi
mov ,eax
call 004278C8
mov ,eax
lea eax,
push eax
lea eax,
push eax
lea ecx,
call 006778D7
test eax,eax
je Jmp1
cmp dword ptr ,01
je Jmp2
cmp dword ptr ,02
jne 0067F5DF


Jmp1:
//0067D774
mov eax,
mov esi,
mov ,al
cmp eax,01
je Jmp3
cmp eax,02
je Jmp3
xor al,al
jmp Jmp4

Jmp2:
//0067D75F
mov eax,
cmp ,bl
jne 0067F5DF
mov byte ptr ,01
jmp 0067F5DF

Jmp3:
//0067D78B
mov al,01

Jmp4:
//0067D78D
mov ,al
mov eax,
mov ecx,edi
mov ,eax
call 004277F1
movzx eax,al
mov ecx,edi
//xor eax, eax //取消註解=金錢過濾
mov ,eax
call 004278C8
mov ecx,edi
mov ,eax
call 004278C8
mov ecx,edi
mov ,eax
call 004278C8
mov ,eax
fild dword ptr
mov ecx,edi
fdiv qword ptr
fstp dword ptr
call 004278C8
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 0067D7E2

01BBCD5C:
DD ItemFilter


01BBCD5C:
DD 00B4E146
頁: [1]
查看完整版本: TwMS 191.1_ICS_物品過濾 [已測試]