jdps507 發表於 2013-7-27 20:19:06

//TwMS TwMS v158.4_ICS_人物座標左右走(紅點 + 怪物控制)

//TwMS TwMS v158.4_ICS_人物座標左右走(紅點  + 怪物控制)
//更新時間:2013-07-20
//更新: 乂Boyue乂
//原創: 未知 有知道的麻煩私信 將改正


Alloc(AutoLRICS, 512)
Alloc(ChrX, 04)
Alloc(MyLR, 04)
Alloc(Step, 04)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
Label(SetX)

Step:
DD 1 //0為停止

MyLR:
DD 1 //開啟後向右走

AutoLRICS:
Cmp ,0
Je GetFocus
Cmp ,1
Je SetX

//不要怪物數量請刪除以下
Push Eax
Mov Eax,
Mov Eax,
Cmp Eax, 01 //怪物數量:1隻
Pop Eax
Jle GetFocus
//不要怪物數量請刪除以上

//不要紅點停止請刪除以下
Push Ebx
Mov Ebx,
Mov Ebx,
Cmp Ebx, 01 //紅點人數:1人
Pop Ebx
Jge GetFocus
//不要紅點停止請刪除以上

Cmp ,00B111C2
Jne GetFocus
Mov ,AutoLR
Jmp GetFocus

SetX:
Call GetChrX
Mov ,Eax
Inc
Jmp GetFocus

AutoLR:
Call GetWall
Mov ,Eax
Jmp 00B1150E

GetWall:
Call GetChrX
Mov Ecx,
Sub Eax,Ecx
Cmp Eax,0
Jle GoRight
Call GetChrX
Mov Ecx,
sub Ecx,Eax
cmp Ecx,0
Jle GoLeft
Mov Eax,
Ret

GetChrX:
Mov Eax,
Mov Eax,
Ret

GoRight:
Mov ,1
Mov Eax,1
Ret

GoLeft:
Mov ,FFFFFFFF
Mov Eax,FFFFFFFF
Ret

0116FA88:
DD AutoLRICS



0116FA88:
DD GetFocus

DeAlloc(MyLR)
DeAlloc(SetX)
DeAlloc(AutoLRICS)
頁: [1]
查看完整版本: //TwMS TwMS v158.4_ICS_人物座標左右走(紅點 + 怪物控制)