TwMS v142.1_ICS_人物左右走(紅點)
- //TwMS v142.1 人物左右走(紅點)
 //更新:Onion
 [ENABLE]
 Alloc(AutoLRICSEntry, 64)
 Label(ICSReturn)
 RegisterSymbol(AutoLRMain)
 Alloc(AutoLRMain, 128)
 Label(GoLeft)
 Label(GoRight)
 RegisterSymbol(AutoLRRange)
 Alloc(AutoLRRange, 4)
 Alloc(AutoLRValue, 4)
 //-----------------------------------------------
 AutoLRRange: //左右走距離(範圍)
 DD A
 //-----------------------------------------------
 AutoLRICSEntry:
 //------紅點偵測
 push ebx
 mov ebx,[00cc44f8]
 mov ebx,[ebx+2c]
 cmp ebx,1 //紅點人數:1人
 pop ebx
 jge GetFocus
 //------不要的話請刪除(上面)段落
 Cmp [Esp], 008C11B6
 Jne ICSReturn
 Mov [Esp], AutoLRMain
 ICSReturn:
 Jmp GetFocus
 //-------------------
 AutoLRMain:
 Cmp [AutoLRRange], 0
 Je 008C11B6
 Push Eax
 Inc [AutoLRValue]
 Mov Eax, [AutoLRRange]
 Cmp Eax, [AutoLRValue]
 Jge GoLeft
 Add Eax, [AutoLRRange]
 Cmp Eax, [AutoLRValue]
 Jge GoRight
 Mov [AutoLRValue], 1
 Jmp GoLeft
 
 GoLeft:
 Mov [Ebp-08], FFFFFFFF
 Pop Eax
 Jmp 008C1440
 
 GoRight:
 Mov [Ebp-08], 00000001
 Pop Eax
 Jmp 008C1440
 //-----------------------------------------------
 00CCCA80:
 DD AutoLRICSEntry
 
 [DISABLE]
 00CCCA80:
 DD GetFocus
 
 Dealloc(AutoLRICSEntry)
 UnregisterSymbol(AutoLRMain)
 Dealloc(AutoLRMain)
 UnregisterSymbol(AutoLRRange)
 Dealloc(AutoLRRange)
 Dealloc(AutoLRValue)
 
洋蔥大大,如果我要自己設定左右的距離,要從哪邊修改呢?
回覆刪除不是有中文註釋嗎?
刪除AutoLRRange: //左右走距離(範圍)
DD A //16近位喔
恩恩 謝謝洋蔥大大,昨天回文後,想一想為什麼是A,後來就想到是不是16近位的,感謝洋蔥大大
刪除