Advertisement
Guest User

Simone

a guest
Aug 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. include C:\Program Files (x86)\AC Tool\BOT MK FLORENSIA\UMoveWindow.inc
  2.  
  3. //VARIABLES CODE
  4. Constants
  5. //Variabile per SHOWWINDOW
  6. i = 0
  7.  
  8. //tempo per UMoveWindow
  9. WindowDelay = 2
  10.  
  11. //Finestra di Florensia
  12. WindowName = Florensia ver2.02.00
  13.  
  14. //Posizione Targhet (Membro 1)
  15. M1X = 35
  16. M1Y = 61
  17. //////////////////////////////////////////////////////////////////////////////////////
  18. //Posizione Skill Sword of Spirit in pixel /////////////////////
  19. Sword_of_SpiritX = 643 //COSA DA IMPOSTARE//
  20. Sword_of_SpiritY = 701 //COSA DA IMPOSTARE//
  21. //Posizione Skill Magic Boost in pixel /////////////////////
  22. Magic_BoostX = 565 //COSA DA IMPOSTARE//
  23. Magic_BoostY = 701 //COSA DA IMPOSTARE//
  24. //////////////////////////////////////////////////////////////////////////////////////
  25. // le coordinate X e Y degli HP MAX e degli MP MAX (Membro 1)
  26. HPmaxX = 206
  27. HPmaxY = 57
  28. MPmaxX = 206
  29. MPmaxY = 77
  30.  
  31. // le coordinate X e Y degli HP 50% e degli MP 50% (Membro 1)
  32. HP50X = 146
  33. HP50Y = 65
  34. MP50X = 146
  35. MP50Y = 85
  36.  
  37. //RGB degli HP MAX rispettivi a HPmaxX e HPmaxY (Membro 1)
  38. HPmaxRED = 175
  39. HPmaxGREEN = 71
  40. HPmaxBLUE = 96
  41.  
  42. //RGB degli MP MAX rispettivi a MPmaxX e MPmaxY (Membro 1)
  43. MPmaxRED = 1
  44. MPmaxGREEN = 153
  45. MPmaxBLUE = 153
  46.  
  47. //RGB degli HP 50% rispettivi a HP50X e HP50Y (Membro 1)
  48. HP50RED = 210
  49. HP50GREEN = 21
  50. HP50BLUE = 83
  51.  
  52. //RGB degli MP 50% rispettivi a MP50X e MP50Y (Membro 1)
  53. MP50RED = 0
  54. MP50GREEN = 144
  55. MP50BLUE = 144
  56.  
  57. //Risoluzione richiesta 1024 * 768 * 32
  58. WindowWidth = 1030
  59. WindowHeight = 797
  60. End
  61.  
  62. //BUFF CODE
  63.  
  64. //1 BUFF SWORD OF SPIRITS
  65. Procedure Sword_of_Spirits Every 5 min
  66. SetActiveWindow $windowname
  67. Keys {F2}
  68. MousePos $M1X, $M1Y
  69. Delay 100
  70. Leftclick
  71. Delay 100
  72. MousePos $Sword_of_SpiritX, $Sword_of_SpiritY
  73. Delay 250
  74. Rightclick
  75. Delay 2000
  76. Keys {F1}
  77. SetActiveWindow $windowname
  78. Delay 100
  79. End
  80.  
  81. //2 BUFF MAGIC BOOST
  82. Procedure Magic_Boost Every 20 min
  83. SetActiveWindow $windowname
  84. Keys {F2}
  85. MousePos $M1X, $M1Y
  86. Delay 100
  87. Leftclick
  88. Delay 100
  89. MousePos $Magic_BoostX, $Magic_BoostY
  90. Delay 250
  91. Rightclick
  92. Delay 2000
  93. Keys {F1}
  94. SetActiveWindow $windowname
  95. Delay 100
  96. End
  97.  
  98. //BEFORE START CODE
  99. ShowMessage i = Status, ok , Posizionamento Finestra, Premere ok e non toccare nulla.
  100. Delay 100
  101. Call MoveWindow $WindowName
  102. Delay 1000
  103. MousePos 958, 575//sposta mouse sul tasto ok
  104. ShowMessage i = Status, ok , Finestra Spostata a x:0,y:0: per un corretto funzionamento del bot non spostare la finestra
  105. SetActiveWindow $WindowName
  106. ShowMessage i = Status, ok , Controllo Risoluzione
  107. If {WindowHeight} = $WindowHeight
  108. If {WindowWidth} = $WindowWidth
  109. ShowMessage i = Status, ok , Hai la risoluzione giusta, Enjoy By Polpetta! :D
  110. Else
  111. ShowMessage i = Error, ok , La Risoluzione non è 1024 * 768 * 32 bot arrestato.
  112. Stop
  113. End
  114. Else
  115. ShowMessage i = Error, ok , La Risoluzione non è 1024 * 768 * 32 bot arrestato.
  116. Stop
  117. End
  118. SetActiveWindow $WindowName
  119.  
  120. //MAIN CODE
  121.  
  122. While 1 = 1
  123. ProcessMessages
  124. GetRed 577, 38 = 195 //controlla se ho un targhet dal bordino grigioazzurro
  125. GetRed 576, 52 = 155 //155 = MK
  126. Keys {ESC}
  127. delay 100
  128. Else
  129. Call startAttack //Richiama startAttack
  130. End
  131. else //Se non ho un targhet allora premo TAB
  132. Keys {TAB}
  133. Delay 100
  134. end
  135. End
  136.  
  137. //EVENT CODE
  138.  
  139. procedure startAttack
  140. while 1 = 1
  141. getred 406, 57 = 175 //finche la vita e' ancora rossa continua ad attaccare
  142. GetRed 576, 52 = 155 //155 = MK
  143. Keys {ESC}
  144. delay 100
  145. Else
  146. keys {SPACE}
  147. End
  148. Else
  149. keys {SPACE} //ultimo attacco per sicurezza
  150. delay 100
  151. break
  152. End
  153.  
  154. //CREDO QUI
  155.  
  156. End
  157. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement