冰楓論壇

標題: TwMS v196.3_ICS_取得人物血魔 [打印本頁]

作者: prt    時間: 2017-3-2 20:00
標題: TwMS v196.3_ICS_取得人物血魔
  1. //TwMS v196.3_ICS_取得人物血魔
  2. //Author: neilwaker

  3. [Enable]
  4. Alloc(GetHpMp,256)
  5. RegisterSymbol(GetHpMp)
  6. Alloc(Hp,4)
  7. RegisterSymbol(Hp)
  8. Alloc(MaxHp,4)
  9. RegisterSymbol(MaxHp)
  10. Alloc(Mp,4)
  11. RegisterSymbol(Mp)
  12. Alloc(MaxMp,4)
  13. RegisterSymbol(MaxMp)
  14. Label(L1)
  15. Label(L2)
  16. Label(GetHp)
  17. Label(GetMp)

  18. GetHpMp:
  19. cmp [esp+20],00FF8A80 //a1 ?? ?? ?? ?? ff 76 ?? 8d b8 ?? ?? ?? ?? 05
  20. jne L1
  21. nop
  22. mov [esp+20],GetHp
  23. jmp L2

  24. L1:
  25. cmp [esp+20],00FF8D76 //ff 77 ?? 8b 1d ?? ?? ?? ?? 83 c7 ?? 57 81 c3 ?? ?? ?? ?? e8
  26. jne L2
  27. nop
  28. mov [esp+20],GetMp

  29. L2:
  30. nop
  31. push InterlockedDecrement
  32. ret
  33.         
  34. GetHp:
  35. mov eax,[0213A540]
  36. push [esi+5E]
  37. lea edi,[eax+00002238]
  38. add eax,000024B0
  39. add esi,56
  40. push esi
  41. mov [ebp-24],eax
  42. call 00403FC1
  43. mov [Hp],eax
  44. push [edi+68]
  45. mov esi,eax
  46. add edi,60
  47. push edi
  48. mov [ebp-28],esi
  49. call 00403FC1
  50. mov [MaxHp],eax
  51. jmp 00FF8AB0

  52. GetMp:
  53. push [edi+76]
  54. mov ebx,[0213A540]
  55. add edi,6E
  56. push edi
  57. add ebx,00002238
  58. call 00403FC1
  59. mov [Mp],eax
  60. push [ebx+00000080]
  61. add ebx,78
  62. push ebx
  63. mov edi,eax
  64. call 00403FC1
  65. mov [MaxMp],eax
  66. jmp 00FF8D9F
  67.         
  68. 0198B134:
  69.         DD GetHpMp

  70. [Disable]
  71. 0198B134:
  72.         DD InterlockedDecrement

  73. DeAlloc(GetHpMp)
  74. UnRegisterSymbol(GetHpMp)
  75. DeAlloc(Hp)
  76. UnRegisterSymbol(Hp)
  77. DeAlloc(MaxHp)
  78. UnRegisterSymbol(MaxHp)
  79. DeAlloc(Mp)
  80. UnRegisterSymbol(Mp)
  81. DeAlloc(MaxMp)
  82. UnRegisterSymbol(MaxMp)
複製代碼

作者: awd6113520    時間: 2017-3-25 10:07
請問這個取得血魔後
如何自動補水?




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