ta0926 發表於 2015-4-1 16:29:06

gms V160.3 寵吸

//g1603寵吸

registersymbol(PetGetItem)
alloc(PetGetItem,1024)
alloc(r0c,4)
alloc(r10,4)
label(x001)
label(x009)
label(x016)
label(x017)

PetGetItem:
        cmp ,006F4A8E
        jne PtInRect
        push eax
        mov eax,        //紅點
        cmp ,0
        pop eax
        jne PtInRect
x001:
        push edi
        push ebx
        mov edi,    //ebp+0c= item X
        mov ebx,
        mov ,ebx
        mov ebx,
        mov ,ebx
        mov ,eax       //ebx=pet x, eax=pet y
        mov ,edx    //= item Y
        pop ebx
        pop edi
        add esp,10
        cmp dword ptr ,00
        mov eax,7fffffff
        jne x009
        mov eax,
x009:
        mov ecx,
        push eax
        call 01495860
        test eax,eax
        jne 006f4ac1
        cmp dword ptr ,00
        jne x016
        mov ecx,
        push ecx
        mov ecx,
        call 0099e1a0
        mov edi,eax
        jmp x017
x016:
        xor edi,edi
x017:
        push 00
        push 00
        push 00
        push 00
        push 00
        lea edx,
        push 10
        push edx
        call 006409c0
        mov ecx,
        add esp,1c
        push eax
        mov eax,
        push edi
        push eax
        push ecx
        mov ecx,
        call 00bc7030
        push edi
        push ebx
        mov edi,    //ebp+0c= item X
        mov ebx,
        mov ,ebx
        mov ebx,
        mov ,ebx
        pop ebx
        pop edi
        jmp 006f4b4c

01e3b864:
dd PetGetItem       


01e3b864:
dd PtInRect
unregistersymbol(PetGetItem)
dealloc(PetGetItem)

acc89211 發表於 2015-4-1 18:35:03

很好喔謝謝大大的分享

dexter 發表於 2015-4-3 23:12:28

大大可以弄個 lay上傳下嘛
頁: [1]
查看完整版本: gms V160.3 寵吸