冰楓論壇
標題:
TwMS 193.2_ICS_物品過濾 [已測試]
[打印本頁]
作者:
乂Boyue乂
時間:
2016-11-2 14:13
標題:
TwMS 193.2_ICS_物品過濾 [已測試]
//TwMS 193.2_ICS_ItemFilter
//更新時間:2016-11-02
//更新: Boyue
//原創:未知 有知道的麻煩私信 將改正
[Enable]
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 [esp+C8], 006A1A27
jne 00B7E286
mov [esp+C8], Fake
jmp 00B7E286
Fake:
//006A1A27
pop ecx
push eax
lea ecx,[ebp-14]
call 0069B707
mov ecx,edi
mov [ebp-04],ebx
call 004281B2
movzx eax,al
mov ecx,edi
mov [ebp+10],eax
call 00428289
mov [ebp+1c],eax
lea eax,[ebp-14]
push eax
lea eax,[ebp+1c]
push eax
lea ecx,[esi+08]
call 0069BB7D
test eax,eax
je Jmp1
cmp dword ptr [ebp+10],01
je Jmp2
cmp dword ptr [ebp+10],02
jne 006A3970
Jmp1:
//006A1A84
mov eax,[ebp+10]
mov esi,[ebp-10]
mov [esi+30],al
cmp eax,01
je Jmp3
cmp eax,02
je Jmp3
xor al,al
jmp Jmp4
Jmp2:
//006A1A6F
mov eax,[ebp-10]
cmp [eax+31],bl
jne 006A3970
mov byte ptr [eax+31],01
jmp 006A3970
Jmp3:
//006A1A9B
mov al,01
Jmp4:
//006A1A9D
mov [esi+31],al
mov eax,[ebp+1c]
mov ecx,edi
mov [esi+34],eax
call 004281B2
movzx eax,al
mov ecx,edi
//xor eax, eax //取消註解=金錢過濾
mov [esi+44],eax
call 00428289
mov ecx,edi
mov [esi+000000C4],eax
call 00428289
mov ecx,edi
mov [esi+000000C8],eax
call 00428289
mov [ebp+50],eax
fild dword ptr [ebp+50]
mov ecx,edi
fdiv qword ptr [017CAE10]
fstp dword ptr [esi+000000DC]
call 00428289
push esi
mov esi,ItemList
Filter:
cmp eax, C350
jle End
cmp dword ptr ds:[esi], 0
je End
cmp dword ptr ds:[esi], eax
je Skip
add esi, 4
jmp Filter
Skip:
xor eax, eax
End:
pop esi
mov ecx, edi
mov [esi+48],eax
jmp 006A1AF2
0234D5FC:
DD ItemFilter
[Disable]
0234D5FC:
DD 00B7E286
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓