gms V161.2
//g1612疾風//無敵,走.跳怪跟隨,怪不擊退,走怪掉落,攻擊不停,紅點斷線
//左趴,設定定點,啟動走怪掉落,紅點斷線
//右趴, 停止走怪掉落,紅點斷線
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
01E15CFC:
DD MyLR
//================================
MyLR:
cmp ,00ADD6B9 //怪不擊退
je nokb1
cmp ,01518A17 //無敵
je shunyi
cmp ,01612A81 //跳怪跟隨
je JmpLR1
cmp ,0161223C //走怪跟隨
je MyLR1
cmp ,01601610 //走怪掉落,016083d1
jle MyLRend
cmp ,0160202c //走怪掉落,01601610-0160202c
jge MyLRend
cmp ,1
jne MyLRend
cmp ,016083d1
jne MyLRend
mov ,NoBack
jmp MyLRend
MyLR1:
mov ,GoLR
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 00d428e0
//================================
shunyi:
mov ,0151bb1b
jmp MyLRend
//================================
NoBack:
cmp ,01c02928
jne 016083d1
mov eax,
mov eax,
push 00
lea ecx,
push ecx
lea edx,
push edx
mov ecx,esi
call 016002d0
Left:
Right:
MobEnd:
jmp 016083e5
//================================
nokb1:
mov ,nokb
jmp MyLRend
nokb:
mov edi,
mov ,eax
cmp edi,01
mov ecx,
call 00ab2f50
jmp 00ADD6D8 //jnl next
//================================
JmpLR1:
mov ,JmpLR
jmp MyLRend
JmpLR:
mov eax,
cmp eax,
mov eax,2
jg JmpLRback
mov eax,3
JmpLRback:
jmp 01612A81
//================================
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
GoLR3:
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 004a98e0
GoLR6:
mov ecx,
jmp 01612268
//============================
01E15CFC:
dd 00d428e0
dealloc(MyLR)
unregistersymbol(MyLR)
dealloc(MyPt1) //g1612寵吸
registersymbol(PetGetItem)
alloc(PetGetItem,1024)
alloc(r0c,4)
alloc(r10,4)
label(x001)
label(x009)
label(x016)
label(x017)
PetGetItem:
cmp ,006F4A1E
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 01498de0
test eax,eax
jne 006f4a51
cmp dword ptr ,00
jne x016
mov ecx,
push ecx
mov ecx,
call 009a2550
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 00640990
mov ecx,
add esp,1c
push eax
mov eax,
push edi
push eax
push ecx
mov ecx,
call 00bcb5a0
push edi
push ebx
mov edi, //ebp+0c= item X
mov ebx,
mov ,ebx
mov ebx,
mov ,ebx
pop ebx
pop edi
jmp 006f4adc
01e41954:
dd PetGetItem
01e41954:
dd PtInRect
unregistersymbol(PetGetItem)
dealloc(PetGetItem)
//g1612笨怪
alloc(Stupid,256)
registersymbol(Stupid)
label(S4)
//================================
Stupid:
cmp ,01610b9e
jne RtlGetLastWin32Error
mov ,S4
jmp RtlGetLastWin32Error
S4:
xor edi,edi
jmp 01610ba2
//================================
019F9194:
DD Stupid
019F9194:
DD RtlGetLastWin32Error
dealloc(Stupid)
unregistersymbol(Stupid) //g1612超級笨怪
alloc(MobStupid,64)
registersymbol(MobStupid)
label(S2)
//================================
MobStupid:
cmp ,00AF7A43
je S2
cmp ,00AF7AB9
jne IsRectEmpty
mov ,00af7f52
jmp IsRectEmpty
S2:
mov ,00af7f52
jmp IsRectEmpty
//================================
019f93a8:
DD MobStupid
019f93a8:
DD IsRectEmpty
dealloc(MobStupid)
unregistersymbol(MobStupid)
頁:
[1]