//TwMS v169.1_ICS_物品過濾
//Updata:路邊狗便便
[Enable]
Registersymbol(CheckESP)
Alloc(CheckESP,512)
Registersymbol(ItemList)
Alloc(ItemList,204800)
Label(HookESP)
Label(HookFun)
Label(HookOr1)
Label(HookOr2)
Label(Filter)
Label(Skip)
Label(End)
ItemList:
//請在以下加入欲過濾名單
DD 001F6EE0 //箭矢
DD 001F6EE1 //青銅弓箭
DD 001F6EE2 //鋼鐵弓箭
DD 001F6EE3 //炎晶弓箭
DD 001F72C8 //弩箭矢
DD 001F72C9 //青銅弩箭
DD 001F95F0 //海星鏢
DD 001F95F1 //迴旋鏢
DD 001F95F2 //黑色利刃
DD 001F95F3 //雪花鏢
DD 001F95F4 //梅之鏢
DD 001F95F5 //雷之鏢
DD 001F95F8 //雪球
DD 001F95F9 //木製陀螺
DD 001F95FA //冰柱
DD 001F95FB //楓葉飛鏢
DD 001F95FC //紙飛機
DD 001F95FD //橘子
DD 001F47D0 //解毒劑
DD 001F47D1 //眼藥水
DD 001F47D2 //精力劑
DD 001F47D3 //聖水
DD 003D0EE9 //斑點紋卷碎片
DD 003D0EEB //豹紋卷碎片
DD 003D0EF1 //老虎紋卷碎片
//請在以上加入欲過濾名單
DD 00
CheckESP:
Cmp [Esp+6C],005B5347
Je HookESP
Jmp 008FB3DF
HookESP:
mov [Esp+6C], HookFun
jmp 008FB3DF
HookFun:
mov eax,[ebp+44]
mov esi,[ebp+38]
mov [esi+20],al
cmp eax,01
je HookOr1
cmp eax,02
je HookOr1
xor al,al
jmp HookOr2
HookOr1:
mov al,01
HookOr2:
mov [esi+21],al
mov [esi+24],edi
mov edi,[ebp+7c]
mov eax,[ebp+7C]
mov ecx,edi
mov [esi+20],eax
call 0040711E
movzx eax,al
mov ecx,edi
//xor eax, eax //money
mov [esi+34],eax
call 004071D5
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+38],EAX
jmp 005B5382
01519184:
DD CheckESP
[Disable]
01519184: //
DD 008FB3DF
UnRegistersymbol(CheckESP)
DeAlloc(CheckESP)
UnRegistersymbol(ItemList)
DeAlloc(ItemList) |