冰楓論壇
標題:
TwMS 195.2_ICS_物品過濾
[打印本頁]
作者:
ckk1300
時間:
2017-1-19 15:38
標題:
TwMS 195.2_ICS_物品過濾
//TwMS 195.2_ICS_ItemFilter
//更新時間:2017-01-19
//更新: ckk1300
//原創:未知 有知道的麻煩私信 將改正
[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], 006C2807
jne 00BBCCA7
mov [esp+C8], Fake
jmp 00BBCCA7
Fake:
//006C2807
pop ecx
push eax
lea ecx,[ebp-14]
call 006BBCFF
mov ecx,edi
mov [ebp-04],ebx
call 0042A258
movzx eax,al
mov ecx,edi
mov [ebp+54],eax
call 0042A32F
mov [ebp-28],eax
lea eax,[ebp-14]
push eax
lea eax,[ebp-28]
push eax
lea ecx,[esi+08]
call 006BC453
test eax,eax
je Jmp1
cmp dword ptr [ebp+54],01
je Jmp2
cmp dword ptr [ebp+54],02
jne 006C4885
Jmp1:
//006C2864
mov eax,[ebp+54]
mov esi,[ebp-10]
mov [esi+30],al
cmp eax,01
je Jmp3
cmp eax,02
je Jmp3
xor al,al
jmp Jmp4
Jmp2:
//006C284F
mov eax,[ebp-10]
cmp [eax+31],bl
jne 006C4885
mov byte ptr [eax+31],01
jmp 006C4885
Jmp3:
//006C287B
mov al,01
Jmp4:
//006C287D
mov [esi+31],al
mov eax,[ebp-28]
mov ecx,edi
mov [esi+34],eax
call 0042A258
movzx eax,al
mov ecx,edi
//xor eax, eax //取消註解=金錢過濾
mov [esi+44],eax
call 0042A32f
mov ecx,edi
mov [esi+000000C4],eax
call 0042A32f
mov ecx,edi
mov [esi+000000C8],eax
call 0042A32f
mov [ebp+4c],eax
fild dword ptr [ebp+4c]
mov ecx,edi
fdiv qword ptr [01AB63D8]
fstp dword ptr [esi+000000DC]
call 0042A32f
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 006C28D2
0208846C:
DD ItemFilter
[Disable]
0208846C:
DD 00BBCCA7
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓