冰楓論壇

標題: 召喚獸短擊-CRC For TWMS109 [打印本頁]

作者: qkckcqkckcq    時間: 2012-9-26 12:30
標題: 召喚獸短擊-CRC For TWMS109
  1. //==================================================
  2. // 召喚獸短擊-CRC For TWMS109
  3. // 更新: king3005518小
  4. // 更新時間: 2010/1/27
  5. //==================================================
  6. [enable]

  7. [ENABLE]
  8. registersymbol(FIR)
  9. alloc(FIR,1024)
  10. registersymbol(FIRTIMESS)
  11. alloc(FIRTIMESS,4)
  12. registersymbol(FIRSKILL)
  13. alloc(FIRSKILL,4)
  14. registersymbol(FIREDI)
  15. alloc(FIREDI,4)
  16. label(FIR00)
  17. label(FIR01)
  18. //-----------------------------------------------
  19. FIRTIMESS:
  20. DD 0     //招喚獸攻擊時間

  21. FIRSKILL:
  22. DD 0     //招喚獸攻擊次數

  23. FIREDI:
  24. DD 0     //招喚獸EDI
  25. //-----------------------------------------------

  26. FIR:
  27. cmp [FIREDI],edi
  28. je FIR00



  29. push eax

  30. mov eax,[00b94658]

  31. mov [eax+039C],ffffffff //正常值 ffffffff = -1 只要固定正常值就會無延遲了

  32. pop eax
  33. call FIR01
  34. pop ecx
  35. pop ecx
  36. mov dword ptr [ebx+000000d4],01
  37. push [ebx+000000f0]
  38. lea eax,[ebx+000000e8]
  39. push eax
  40. call FIR01
  41. pop ecx
  42. pop ecx
  43. mov dword ptr [ebx+000000c8],01
  44. push [ebx+000000b4]
  45. call 0074f4d9
  46. pop ecx
  47. push esi
  48. mov ecx,ebx
  49. call 00787d70
  50. push eax
  51. mov eax,[ebx+00000114]
  52. cmp [FIRTIMESS],eax
  53. pop eax
  54. je 00787120
  55. push eax
  56. mov eax,[ebx+00000114]
  57. mov [FIRTIMESS],eax
  58. mov [FIREDI],edi
  59. pop eax
  60. jmp 00787120
  61. //-----------------------------------------------
  62. FIR00:
  63. call 00415e22
  64. jmp 00786fc9
  65. //-----------------------------------------------
  66. FIR01:
  67. push ebp
  68. mov ebp,esp
  69. mov eax,[ebp+08]
  70. push ebx
  71. mov ebx,[eax+04]
  72. push esi
  73. mov esi,[eax]
  74. push edi
  75. push 05
  76. push ebx
  77. call 00a316bb
  78. mov edi,eax
  79. xor edi,esi
  80. push 05
  81. xor esi,baadf00d
  82. push esi
  83. call 00a31304
  84. add eax,ebx
  85. add esp,10
  86. mov eax,edi
  87. pop edi
  88. pop esi
  89. pop ebx
  90. pop ebp
  91. ret

  92. 00786FC4:
  93. jmp FIR
  94. //-----------------------------------------------
  95. [DISABLE]
  96. 00786FC4:
  97. call 00415e22

  98. dealloc(FIR)
  99. unregistersymbol(FIR)
  100. dealloc(FIRTIMESS)
  101. unregistersymbol(FIRTIMESS)
  102. dealloc(FIREDI)
  103. unregistersymbol(FIREDI)
  104. dealloc(FIRSKILL)
  105. unregistersymbol(FIRSKILL)
複製代碼





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