gms V157.3 疾風
//g1573疾風//無敵,走.跳怪跟隨,怪不擊退,走怪掉落,攻擊不停,紅點斷線
//左趴,設定定點,啟動走怪掉落,紅點斷線
//右趴, 停止走怪掉落,紅點斷線
alloc(MyLR,2048)
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)
label(shunyi)
label(Right)
label(Left)
label(MobEnd)
label(GoLR1)
label(GoLR3)
label(GoLR6)
label(x03)
label(x04)
label(x05)
alloc(ra,4)
alloc(rx,4)
MyPt1:
dd 0
01D7CC54:
DD MyLR
//================================
MyLR:
cmp ,00AAA7A0 //怪不擊退
je nokb1
cmp ,014A709C //無敵
je shunyi
cmp ,015A1616 //怪物type轉換
je MyLR1
cmp ,0159DEE1 //跳怪跟隨
je JmpLR1
cmp ,015A144C //走怪跟隨
jne MyLRend
mov ,GoLR
jmp MyLRend
MyLR1:
mov ,NoBack
jmp MyLRend
MyLRend:
cmp ,0
je x05
push eax
mov eax,
mov eax,
cmp eax,b //左趴,啟動
jne x04
mov ,1
mov eax,
mov eax,
mov ,eax
jmp x03
x04:
cmp eax,a //右趴,off
jne x03
mov ,0
jmp x03
x03:
mov eax, //放不停
mov , 0
mov eax, //攻不停
mov , 0
pop eax
cmp ,1
jne x05
push eax
mov eax, //紅點斷線
cmp ,0
pop eax
jne 00000000
x05:
jmp 00d07e70
//================================
shunyi:
mov ,014aa0fe
jmp MyLRend
//================================
NoBack:
mov eax,
mov eax,
sub eax,20
cmp eax,
jl Right
jmp MobEnd
Left:
Right:
cmp ,0
jne MobEnd
mov ,1
MobEnd:
jmp 015A1616
//================================
nokb1:
mov ,nokb
jmp MyLRend
nokb:
mov edi,
mov ,eax
cmp edi,01
mov ecx,
call 00a849c0
jmp 00AAA7BF //jnl next
//================================
JmpLR1:
mov ,JmpLR
jmp MyLRend
JmpLR:
mov eax,
cmp eax,
mov eax,2
jg JmpLRback
mov eax,3
JmpLRback:
jmp 0159DEE1
//================================
GoLR:
add ,bp
mov ecx,eax
mov eax,aaaaaaab
mul ecx
shr edx,1
mov ,ecx
lea edx,
sub ecx,edx
sub ecx,ebp
mov ,ebp
push ecx
inc ecx
cmp ,1
jne GoLR1
mov eax, //y
mov eax,
sub eax,50
cmp eax,
jl GoLR1
mov eax,
cmp eax,
jl GoLR3
pop ecx
mov ecx,1
push ecx
mov ,0
jmp GoLR6
GoLR3:
pop ecx
mov ecx,ffffffff
push ecx
mov ,0
jmp GoLR6
GoLR1:
mov eax,
cmp ecx, 1 //0左1停2右
je GoLR5
jg GoLR2
cmp eax,
mov eax,5
jl GoLRback
mov eax,1
jmp GoLRback
GoLR2:
cmp eax,
mov eax,5
jg GoLRback
mov eax,1
jmp GoLRback
GoLR5:
mov eax,1
GoLRback:
push eax
mov ecx,
call 004a2460
GoLR6:
mov ecx,
jmp 015A1478
//============================
01D7CC54:
dd 00d07e70
dealloc(MyLR)
unregistersymbol(MyLR)
dealloc(MyPt1) 感謝大大的提供 感謝板大的 熱情分享ˋ teddy60413 發表於 2015-1-21 20:51
感謝板大的 熱情分享ˋ
你會用嗎?
頁:
[1]