冰楓論壇

標題: TwMS v229.2 ICS 自動掉血 [打印本頁]

作者: 麗麗    時間: 2020-10-21 20:41
標題: TwMS v229.2 ICS 自動掉血
  1. // TwMS v229.2 ICS 自動掉血

  2. [ENABLE]
  3. Alloc(SetDamageHook,256)
  4. Alloc(Mode,4)
  5. RegisterSymbol(Mode)
  6. Alloc(Timer,4)
  7. Alloc(Value,4)
  8. RegisterSymbol(Value)
  9. Alloc(SetDamageSW,4)
  10. RegisterSymbol(SetDamageSW)
  11. Alloc(SetDamegeDelay,4)
  12. RegisterSymbol(SetDamegeDelay)
  13. Label(SetDamage)
  14. Label(SetDamageExit)

  15. SetDamageSW:
  16. DD 1

  17. // 掉血模式 0=連續掉血 1=墜落掉血
  18. Mode:
  19. DD 0

  20. // 掉血量
  21. Value:
  22. DD 1

  23. // 掉血間隔
  24. SetDamegeDelay:
  25. DD 32

  26. // 請勿修改
  27. Timer:
  28. DD 0

  29. SetDamageHook:
  30. cmp [esp],00B9A36A
  31. jne GetFocus
  32. mov [esp],SetDamage
  33. jmp GetFocus

  34. SetDamage:
  35. pushad
  36. cmp [SetDamageSW],1
  37. jne SetDamageExit
  38. // SetDelay
  39. call 02BB0060
  40. mov edx,eax
  41. sub edx,[Timer]
  42. cmp edx,[SetDamegeDelay]
  43. jl SetDamageExit
  44. mov [Timer],eax
  45. //
  46. mov ecx,[042CFD74]
  47. push 00
  48. push 00
  49. push 01
  50. push [Mode]
  51. push 00
  52. push 00
  53. push 00
  54. push 00
  55. push 00
  56. push 00
  57. push 00
  58. push [Value]
  59. xor eax,eax
  60. xor edx,edx
  61. call 029F4A90
  62. popad
  63. jmp 00B9A36A

  64. SetDamageExit:
  65. popad
  66. jmp 00B9A36A

  67. 0457EC60:
  68. DD SetDamageHook

  69. [DISABLE]
  70. 0457EC60:
  71. DD GetFocus

  72. DeAlloc(SetDamageHook)
  73. DeAlloc(Mode)
  74. DeAlloc(Value)
  75. DeAlloc(SetDamegeDelay)
  76. DeAlloc(Timer)
  77. DeAlloc(SetDamageSW)
  78. UnRegisterSymbol(SetDamageSW)
  79. UnRegisterSymbol(Mode)
  80. UnRegisterSymbol(SetDamegeDelay)
  81. UnRegisterSymbol(Value)
複製代碼





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