TwMS v150.2_ICS_人物座標左右走 (紅點)


//TwMS v150.2_ICS_人物座標左右走 (紅點)
//Auther:Onion
//好處是不會有偏移問題(需開起小地圖)
//這個版本支援CEAutoAssembler了,也就是說可以加到打勾掛裡了這樣XD

[Enable]
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 [Step],0
Je  GetFocus
Cmp [Step],1
Je  SetX

//不要紅點停止請刪除以下
Push Ebx
Mov  Ebx, [00E1CAB8]
Mov  Ebx, [Ebx+002c]
Cmp  Ebx, 01 //紅點人數:1人
Pop  Ebx
Jge  GetFocus
//不要紅點停止請刪除以上

Cmp [Esp],009895EC
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus

SetX:
Call GetChrX
Mov [ChrX],Eax
Inc [Step]
Jmp GetFocus

AutoLR:
Call GetWall
Mov  [Ebp-04],Eax
Jmp  009898BF

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

GetChrX:
Mov Eax,[00E20700]
Mov Eax,[Eax+0F98]
Ret

GoRight:
Mov [MyLR],1
Mov Eax,1
Ret

GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret

00E25EC0:
DD AutoLRICS

[Disable]
00E25EC0:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(SetX)
DeAlloc(AutoLRICS)

留言

  1. 謝謝^^每次更新最重要的 超開心的~~

    回覆刪除
  2. 請問一下
    洋蔥裡的自訂數據要怎用壓?

    回覆刪除

張貼留言

本月最夯

偷用電腦,怎知?事件檢視器全記錄!(開機時間、啟動項時間...)

[Chrome] 不用任何擴充功能,Chrome 內建開發者工具讓您輕鬆下載任何影片!