冰楓論壇

標題: TwMS 208.3 ICS 人物左右走+紅點斷線 [打印本頁]

作者: simon20594    時間: 2018-7-10 18:58
標題: TwMS 208.3 ICS 人物左右走+紅點斷線
  1. //TwMS 208.3 ICS 人物左右走+紅點斷線
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry, 64)
  4. Label(ICSReturn)
  5. RegisterSymbol(AutoLRMain)
  6. Alloc(AutoLRMain, 128)
  7. Label(GoLeft)
  8. Label(GoRight)
  9. RegisterSymbol(AutoLRRange)
  10. Alloc(AutoLRRange, 4)
  11. Alloc(AutoLRValue, 4)
  12. //-----------------------------------------------
  13. AutoLRRange:
  14. DD A        //距離 16進制 A=10
  15. //-----------------------------------------------
  16. AutoLRICSEntry:
  17. Cmp   [Esp], 009682FE               
  18. Jne   ICSReturn
  19. Mov   [Esp], AutoLRMain
  20. ICSReturn:
  21. Jmp   GetFocus
  22. //-------------------
  23. AutoLRMain:
  24. //不要紅點停止請刪除以下
  25. Push Ebx
  26. mov ebx,[038DEAD0]
  27. Mov Ebx,[Ebx+4c]
  28. Cmp Ebx,         3 //紅點人數:1人(自己也要算+1)
  29. Pop Ebx
  30. Jge GetFocus
  31. //不要紅點停止請刪除以上
  32. Cmp   [AutoLRRange], 0
  33. Je 009682FE               
  34. Push  Eax
  35. Inc   [AutoLRValue]
  36. Mov   Eax, [AutoLRRange]
  37. Cmp   Eax, [AutoLRValue]
  38. Jge   GoLeft
  39. Add   Eax, [AutoLRRange]
  40. Cmp   Eax, [AutoLRValue]
  41. Jge   GoRight
  42. Mov   [AutoLRValue], 1
  43. Jmp   GoLeft

  44. GoLeft:
  45. Mov   [Ebp-1C], FFFFFFFF
  46. Pop   Eax
  47. Jmp   00968B2A               

  48. GoRight:
  49. Mov   [Ebp-1C], 00000001
  50. Pop   Eax
  51. Jmp   00968B2A               
  52. //-----------------------------------------------
  53. 038E0600:
  54. DD AutoLRICSEntry
  55. [DISABLE]
  56. 038E0600:               
  57. DD GetFocus

  58. Dealloc(AutoLRICSEntry)
  59. UnregisterSymbol(AutoLRMain)
  60. Dealloc(AutoLRMain)
  61. UnregisterSymbol(AutoLRRange)
  62. Dealloc(AutoLRRange)
  63. Dealloc(AutoLRValue)
複製代碼

作者: yuan950555    時間: 2018-7-10 19:05
你紅點裡面那個 怎麼找的
我是找不出來不敢更新
作者: simon20594    時間: 2018-7-10 19:10
yuan950555 發表於 2018-7-10 19:05
你紅點裡面那個 怎麼找的
我是找不出來不敢更新

請參考
https://bingfong.com/forum.php?m ... peid=17%26typeid=17
作者: yuan950555    時間: 2018-7-10 19:22
.... 對齁
作者: a0612009    時間: 2018-7-11 00:43
大大你好,請問我只要紅點停止,不需要人物左右走的話,只需要這樣就行了嗎

//不要紅點停止請刪除以下
Push Ebx
mov ebx,[038DEAD0]
Mov Ebx,[Ebx+4c]
Cmp Ebx,         3 //紅點人數:1人(自己也要算+1)
Pop Ebx
Jge GetFocus
//不要紅點停止請刪除以上





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓