冰楓論壇

標題: TwMS v229.4 ICS 人物移動加速 [打印本頁]

作者: prt    時間: 2020-11-4 22:09
標題: TwMS v229.4 ICS 人物移動加速
  1. // TwMS v229.4 ICS 人物移動加速
  2. [Enable]
  3. Alloc(Check_Esp,256)
  4. Alloc(Speed,04)
  5. Alloc(FakeTime,04)
  6. RegisterSymbol(Speed)
  7. Label(SpeedChk)
  8. Label(Return)
  9. Label(SetFakeTime)
  10. Label(InitFakeTime)
  11. Label(CharSpeedUp)

  12. Speed: // 速度設定
  13. DD 03

  14. FakeTime:
  15. DD 00

  16. //-----------------------
  17. Check_Esp:
  18. cmp [esp+94],029DAA90
  19. jne GetLastError
  20. mov [esp+94],CharSpeedUp
  21. jmp GetLastError

  22. CharSpeedUp:
  23. push esi
  24. mov esi,[Speed]

  25. SpeedChk:
  26. test esi,esi
  27. je Return

  28. dec esi
  29. push esi
  30. mov ecx,[ebp-000000A8]
  31. call 00B710D0
  32. pop esi
  33. jmp SpeedChk

  34. Return:
  35. pop esi
  36. jmp 029DAA90

  37. //-----------------------
  38. SetFakeTime:
  39. cmp [FakeTime],00
  40. je InitFakeTime

  41. mov eax,[FakeTime]
  42. add eax,000001FE

  43. InitFakeTime:
  44. mov [FakeTime],eax
  45. DB 60 57 50 52 0F 31 5A 58
  46. jmp 04AE84D3

  47. //-----------------------
  48. 03A681A8:
  49. DD Check_Esp

  50. 04AE84C5:
  51. jmp SetFakeTime
  52. //-----------------------

  53. [Disable]
  54. 03A681A8:
  55. DD GetLastError

  56. 04AE84C5:
  57. DB 60 57 50 52 0F 31 5A 58

  58. DeAlloc(Check_Esp)
  59. DeAlloc(FakeTime)
  60. DeAlloc(Speed)
  61. UnRegisterSymbol(Speed)
複製代碼





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