冰楓論壇
標題:
gms V158.2疾風
[打印本頁]
作者:
ta0926
時間:
2014-12-24 15:49
標題:
gms V158.2疾風
//g1582疾風
//無敵,走.跳怪跟隨,怪不擊退,走怪掉落,攻擊不停,紅點斷線
//左趴,設定定點,啟動走怪掉落,紅點斷線
//右趴, 停止走怪掉落,紅點斷線
[enable]
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 [esp+38],00AAA1E0 //怪不擊退
je nokb1
cmp [esp+2c],014A733C //無敵
je shunyi
cmp [esp+44],015A1786 //怪物type轉換
je MyLR1
cmp [esp+2c],0159E051 //跳怪跟隨
je JmpLR1
cmp [esp+2c],015A15BC //走怪跟隨
jne MyLRend
mov [esp+2c],GoLR
jmp MyLRend
MyLR1:
mov [esp+44],NoBack
jmp MyLRend
MyLRend:
cmp [01D92C74],0
je x05
push eax
mov eax,[01D92C74]
mov eax,[eax+790]
cmp eax,b //左趴,啟動
jne x04
mov [ra],1
mov eax,[01D92C74]
mov eax,[eax+CCB4]
mov [rx],eax
jmp x03
x04:
cmp eax,a //右趴,off
jne x03
mov [ra],0
jmp x03
x03:
mov eax,[01D92C74] //放不停
mov [eax+bb58], 0
mov eax,[01D92C74] //攻不停
mov [eax+bb48], 0
pop eax
cmp [ra],1
jne x05
push eax
mov eax,[01d97328] //紅點斷線
cmp [eax+2c],0
pop eax
jne 00000000
x05:
jmp 00d073c0
//================================
shunyi:
mov [esp+2c],014aa39e
jmp MyLRend
//================================
NoBack:
mov eax,[01D92C74]
mov eax,[eax+CCB8]
sub eax,20
cmp eax,[esi+7dc]
jl Right
jmp MobEnd
Left:
Right:
cmp [esi+3b8],0
jne MobEnd
mov [esi+3b8],1
MobEnd:
jmp 015A1786
//================================
nokb1:
mov [esp+38],nokb
jmp MyLRend
nokb:
mov edi,[esp+00000094]
mov [esi+0000008c],eax
cmp edi,01
mov ecx,[esp+14]
call 00a83fb0
jmp 00AAA1FF //jnl next
//================================
JmpLR1:
mov [esp+2c],JmpLR
jmp MyLRend
JmpLR:
mov eax,[rx]
cmp eax,[esi+7d8]
mov eax,2
jg JmpLRback
mov eax,3
JmpLRback:
jmp 0159E051
//================================
GoLR:
add [esi+00000450],bp
mov ecx,eax
mov eax,aaaaaaab
mul ecx
shr edx,1
mov [esi+00000474],ecx
lea edx,[edx+edx*2]
sub ecx,edx
sub ecx,ebp
mov [esi+0000047c],ebp
push ecx
inc ecx
cmp [ra],1
jne GoLR1
mov eax,[01D92C74] //y
mov eax,[eax+CCB8]
sub eax,50
cmp eax,[esi+7dc]
jl GoLR1
mov eax,[rx]
cmp eax,[esi+7d8]
jl GoLR3
pop ecx
mov ecx,1
push ecx
mov [esi+3b8],0
jmp GoLR6
GoLR3:
pop ecx
mov ecx,ffffffff
push ecx
mov [esi+3b8],0
jmp GoLR6
GoLR1:
mov eax,[rx]
cmp ecx, 1 //0左1停2右
je GoLR5
jg GoLR2
cmp eax,[esi+7d8]
mov eax,5
jl GoLRback
mov eax,1
jmp GoLRback
GoLR2:
cmp eax,[esi+7d8]
mov eax,5
jg GoLRback
mov eax,1
jmp GoLRback
GoLR5:
mov eax,1
GoLRback:
push eax
mov ecx,[esi+0000078c]
call 004a2460
GoLR6:
mov ecx,[esi+00000788]
jmp 015A15E8
//============================
[disable]
01D7CC54:
dd 00d073c0
dealloc(MyLR)
unregistersymbol(MyLR)
dealloc(MyPt1)
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓