冰楓論壇

標題: gms V153.1 疾風 [打印本頁]

作者: ta0926    時間: 2015-1-26 10:39
標題: gms V153.1 疾風
本帖最後由 ta0926 於 2015-2-5 11:36 編輯

//g153疾風
//30秒無敵,走怪跟隨,怪不擊退,跳怪跟隨
[enable]
alloc(MyLR,1024)
registersymbol(MyLR)
alloc(MyPt1,4)
registersymbol(MyPt1)
label(GoLRback)
label(GoLR)
label(GoLR2)
label(GoLR5)
label(NoBack)
label(MyLR1)
label(MyLRend)
label(nokb)
label(nokb1)
label(JmpLR1)
label(JmpLR)
label(JmpLRback)

MyPt1:
dd 0

//================================
MyLR:
        cmp [esp+38],00A04F29        //怪不擊退
        je nokb1
        cmp [esp+64],0132d1cf        //無敵,人物不退
        je MyLR1
        cmp [esp+2c],0140B951        //跳怪跟隨
        je JmpLR1
        cmp [esp+2c],0140EECC        //走怪跟隨
        jne MyLRend
        mov [esp+2c],GoLR
        jmp MyLRend
MyLR1:
        mov [esp+64],NoBack
        jmp MyLRend
MyLRend:
db 33 c0 64 8b 15 18 00 00 00
        jmp 00c3b8e9
//================================
NoBack:
        add esp,10
        mov [esp+00000074],ffffffff
        lea ecx,[ebp+000083d8]
        push FFFF8AD0 // 30秒無敵 原始值=FFFFFA24
        jmp 0132de12
//================================
nokb1:
        mov [esp+38],nokb
        jmp MyLRend
nokb:
        mov edi,[esp+00000094]
        mov [esi+0000008c],eax
        cmp edi,01
        jne 00a04f4c
        mov ecx,[esp+14]
        call 009e1d50
        jmp 00A04F48                //jnl next
//================================
JmpLR1:
        mov [esp+2c],JmpLR
        jmp MyLRend
JmpLR:
        mov eax,[01B64AA0]
        mov eax,[eax+C664]
//        mov eax,[01b8d604]        //定點
        cmp eax,[esi+7c0]
        mov eax,2
        jg JmpLRback
        mov eax,3
JmpLRback:
        jmp 0140B951
//================================
GoLR:
        add [esi+00000438],bp
        mov ecx,eax
        mov eax,aaaaaaab
        mul ecx
        shr edx,1
        mov [esi+0000045c],ecx
        lea eax,[edx+edx*2]
        sub ecx,eax
        sub ecx,ebp
        mov [esi+00000464],ebp
        push ecx
        inc ecx
        mov eax,[01B64AA0]
        mov eax,[eax+C664]
//        mov eax,[01b8d604]        //定點
        cmp ecx, 1
        je GoLR5
        jg GoLR2
        cmp eax,[esi+7c0]
        mov eax,5
        jl GoLRback
        mov eax,1
        jmp GoLRback
GoLR2:
        cmp eax,[esi+7c0]
        mov eax,5
        jg GoLRback
        mov eax,1
        jmp GoLRback
GoLR5:
        mov eax,1
GoLRback:
        push eax
        mov ecx,[esi+00000774]
        call 00493f10
        mov ecx,[esi+00000770]
        jmp 0140EEF8
//============================

00c3b8e0:
        jmp MyLR
[disable]
00c3b8e0:
db 33 c0 64 8b 15 18 00 00 00
dealloc(MyLR)
unregistersymbol(MyLR)
dealloc(MyPt1)
作者: 劉紘銘@FB    時間: 2015-1-27 12:20
本帖最後由 劉紘銘@FB 於 2015-1-27 12:24 編輯

大大是否有攻擊不停與怪物掉落
作者: tom3235050    時間: 2015-2-3 20:18
提示: 作者被禁止或刪除 內容自動屏蔽
作者: ta0926    時間: 2015-2-4 07:56
裡面有3行
[esi+7e0]
改成
[esi+7c0]
作者: tom3235050    時間: 2015-2-5 06:54
提示: 作者被禁止或刪除 內容自動屏蔽
作者: dexter    時間: 2015-2-5 08:08
tom3235050 發表於 2015-2-3 20:18 [url=forum.php?mod=redirect&goto=findpost&pid=812156&ptid=69426][/url]
請問一下為何我開了怪物只會往左邊或右邊牆壁聚集不會在我所站的地方聚集呢 有沒有啟動定點都一樣大大可以 ...

你在gms什麼區?一起玩?




歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓