close
// TwMS v1.46_ICS_全圖吸物範圍板// 原創: Cam1596
// 出處: w8baby (GMS V0.98.1 Item Vac Script)
// ICS : 冷羽楓痕
// 修改 : HaHaYo
// 會使用的話 因該不太會斷線唷!!

[enable]
RegisterSymbol(ItemVac)
alloc(ItemVac,256)
RegisterSymbol(ItemRangeX)
alloc(ItemRangeX,4)
RegisterSymbol(ItemRangeY)
alloc(ItemRangeY,4)
label(SetItemXY)
label(Return)
label(ReturnX)


ItemRangeX:
DD C8 //X軸"往左","往右"範圍

ItemRangeY:
DD C8 //Y軸"往上","往下"範圍

00d3d76c:
dd ItemVac

ItemVac:
cmp [esp],004DB841
je SetItemXY
cmp [esp],004DAAE9
jne PtInRect
mov [esp],004DAAED
jmp PtInRect

SetItemXY:
push eax
push esi
mov eax,[esp+10]
mov esi,[00d38410]
mov esi,[esi+0f90]
add esi,[ItemRangeX]
cmp eax,esi
jg ReturnX
mov eax,[esp+10]
mov esi,[00d38410]
mov esi,[esi+0f90]
sub esi,[ItemRangeX]
cmp eax,esi
jl ReturnX

mov eax,[esp+14]
mov esi,[00d38410]
mov esi,[esi+0f94]
add esi,[ItemRangeY]
cmp eax,esi
jg ReturnX
mov eax,[esp+14]
mov esi,[00d38410]
mov esi,[esi+0f94]
sub esi,[ItemRangeY]
cmp eax,esi
jl ReturnX
pop esi
mov eax,[esp+0c]
mov [ebx],eax
mov eax,[esp+10]
mov [ebx+04],eax
pop eax
jmp Return

Return:
mov [esp],004db85d
jmp PtInRect

ReturnX:
pop esi
pop eax
mov [esp],004DB841
jmp PtInRect


[disable]
00d3d76c:
dd PtInRect
dealloc(ItemVac)
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 heido001 的頭像
    heido001

    緣份遊戲網 - 備份站

    heido001 發表在 痞客邦 留言(0) 人氣()