冰楓論壇

標題: TwMS v206.1 CRC 取得人物經驗、等級 [打印本頁]

作者: prt    時間: 2018-4-13 17:25
標題: TwMS v206.1 CRC 取得人物經驗、等級
  1. //TwMS v206.1 CRC 取得人物經驗、等級
  2. //Author:zeach01


  3. [Enable]
  4. RegisterSymbol(NowExp)
  5. RegisterSymbol(MaxExp)
  6. RegisterSymbol(NowLevel)
  7. Alloc(NowExp,4)
  8. Alloc(MaxExp,4)
  9. Alloc(NowLevel,4)
  10. Alloc(GetExp_Main,64)
  11. Label(GetLevel)

  12. 021D45CA:
  13. jmp GetExp_Main

  14. GetExp_Main:
  15. mov ecx,eax
  16. mov [NowExp],eax
  17. call 028D0280
  18. movzx eax,bl
  19. push eax
  20. DB F2 0F 11 45 A8
  21. call GetLevel
  22. mov [MaxExp],eax
  23. jmp 021D45DF

  24. GetLevel:
  25. push ebp
  26. mov ebp,esp
  27. mov edx,[ebp+08]
  28. mov [NowLevel],edx
  29. cmp edx,000000FA
  30. jg 0083D0E8
  31. mov eax,00000001
  32. cmp edx,eax
  33. cmovl edx,eax
  34. mov eax,[edx*8+03643AE0]
  35. mov edx,[edx*8+03643AE4]
  36. pop ebp
  37. ret



  38. [Disable]
  39. 021D45CA:
  40. DB 8B C8 E8 AF BC 6F 00

  41. DeAlloc(NowExp)
  42. DeAlloc(MaxExp)
  43. DeAlloc(NowLevel)
  44. UnRegisterSymbol(NowExp)
  45. UnRegisterSymbol(MaxExp)
  46. UnRegisterSymbol(NowLevel)
複製代碼





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