Advertisement
Guest User

Untitled

a guest
May 5th, 2012
7,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. begin
  2. Function.Execute setting 1 variable("getGUI", "windowID", "0")
  3. end
  4.  
  5. function("getGUI")
  6. if Variable.Is equal to("windowID", "0")
  7. begin
  8. Window.Request user multiple buttons choice("DaMaGeX DMO Bot - Launcher", "Start Bot;Settings;Support;Exit;", "mainGUI")
  9. if Variable.Is not empty("mainGUI")
  10. begin
  11. if Variable.Contains text("mainGUI", "Start Bot")
  12. begin
  13. Function.Execute setting 1 variable("getGUI", "windowID", "1")
  14. end
  15. if Variable.Contains text("mainGUI", "Settings")
  16. begin
  17. Function.Execute setting 1 variable("getGUI", "windowID", "2")
  18. end
  19. if Variable.Contains text("mainGUI", "Support")
  20. begin
  21. Function.Execute setting 1 variable("getGUI", "windowID", "3")
  22. end
  23. end
  24. if Macro.Previous criteria was not met()
  25. or
  26. Variable.Contains text("mainGUI", "Exit")
  27. begin
  28. Macro.Abort()
  29. end
  30. end
  31. if Variable.Is equal to("windowID", "1")
  32. begin
  33. Window.Request user multiple choice input("What features do you want to use?", "Use Skills;Auto-Heal Digimon;Auto-DS Digimon;Auto-DS Tamer;Pickup Drops;", "useFeatures")
  34. if Variable.Exists("useFeatures")
  35. begin
  36. if Variable.Contains text("useFeatures", "Use Skills")
  37. begin
  38. Window.Request user multiple choice input("Which skill slots do you want to use?", "F1;F2;F3;F4;F5;F6;", "useSkillSlots")
  39. end
  40. if Variable.Contains text("useFeatures", "Auto-Heal Digimon")
  41. begin
  42. Window.Request user multiple buttons choice("At how many percent (%) of Digimon HP do you want to use a HP Disk? (Digimon Slot F7)", "25% of Digimon HP;50% of Digimon HP;75% of Digimon HP;", "useHPDisk")
  43. end
  44. if Variable.Contains text("useFeatures", "Auto-DS Digimon")
  45. begin
  46. Window.Request user multiple buttons choice("At how many percent (%) of Digimon DS do you want to use a DS Disk? (Digimon Slot F8)", "25% of Digimon DS;50% of Digimon DS;75% of Digimon DS;", "useDSDisk")
  47. end
  48. if Variable.Contains text("useFeatures", "Auto-DS Tamer")
  49. begin
  50. Window.Request user multiple buttons choice("At how many percent (%) of Tamer DS do you want to use a DS Item? (Tamer Slot 8)", "25% of Tamer DS;50% of Tamer DS;75% of TamerDS;", "useDSItem")
  51. end
  52. end
  53. Window.Bring to front("DMO", "No")
  54. while Window.Is visible("DMO", "No")
  55. begin
  56. Function.Execute("getScreenSettings")
  57. Function.Execute("getHPDSSettings")
  58. if Color.At coordinate is within (RGB range)("36", "99", "195", "20", "{mobContainerX}", "{mobContainerY}")
  59. begin
  60. Function.Execute("attackMob")
  61. end
  62. if Macro.Previous criteria was not met()
  63. begin
  64. Function.Execute("findMob")
  65. end
  66. end
  67. end
  68. if Variable.Is equal to("windowID", "2")
  69. begin
  70. Window.Request user multiple buttons choice("Select your option", "Set new RGB values;Set new RGB ranges;Back;", "settingsOneGUI")
  71. if Variable.Is not empty("settingsOneGUI")
  72. begin
  73. if Variable.Contains text("settingsOneGUI", "RGB values")
  74. begin
  75. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  76. end
  77. if Variable.Contains text("settingsOneGUI", "RGB ranges")
  78. begin
  79. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  80. end
  81. end
  82. if Macro.Previous criteria was not met()
  83. or
  84. Variable.Contains text("settingsOneGUI", "Back")
  85. begin
  86. Function.Execute setting 1 variable("getGUI", "windowID", "0")
  87. end
  88. end
  89. if Variable.Is equal to("windowID", "3")
  90. begin
  91. Window.Request user multiple buttons choice("Please go to the Blue Eye Macro forum to get support! http://www.blueeye-macro.com/viewtopic.php?f=304&t=5547", "Back;", "supportGUI")
  92. if Variable.Is empty("supportGUI")
  93. or
  94. Variable.Contains text("supportGUI", "Back")
  95. begin
  96. Function.Execute setting 1 variable("getGUI", "windowID", "0")
  97. end
  98. end
  99. if Variable.Is equal to("windowID", "4")
  100. begin
  101. Window.Request user multiple buttons choice("Select your option", "Set RGB value of Digimon HP;Set RGB value of Digimon DS;Set RGB value of Tamer DS;Back;", "settingsTwoGUI")
  102. if Variable.Is not empty("settingsTwoGUI")
  103. begin
  104. if Variable.Contains text("settingsTwoGUI", "Digimon HP")
  105. begin
  106. Function.Execute setting 1 variable("getGUI", "windowID", "6")
  107. end
  108. if Variable.Contains text("settingsTwoGUI", "Digimon DS")
  109. begin
  110. Function.Execute setting 1 variable("getGUI", "windowID", "7")
  111. end
  112. if Variable.Contains text("settingsTwoGUI", "Tamer DS")
  113. begin
  114. Function.Execute setting 1 variable("getGUI", "windowID", "8")
  115. end
  116. end
  117. if Macro.Previous criteria was not met()
  118. or
  119. Variable.Contains text("settingsTwoGUI", "Back")
  120. begin
  121. Function.Execute setting 1 variable("getGUI", "windowID", "2")
  122. end
  123. end
  124. if Variable.Is equal to("windowID", "5")
  125. begin
  126. Window.Request user multiple buttons choice("Select your option", "Set RGB range of Digimon HP;Set RGB range of Digimon DS;Set RGB range of Tamer DS;Back", "settingsThreeGUI")
  127. if Variable.Is not empty("settingsThreeGUI")
  128. begin
  129. if Variable.Contains text("settingsThreeGUI", "Digimon HP")
  130. begin
  131. Function.Execute setting 1 variable("getGUI", "windowID", "9")
  132. end
  133. if Variable.Contains text("settingsThreeGUI", "Digimon DS")
  134. begin
  135. Function.Execute setting 1 variable("getGUI", "windowID", "10")
  136. end
  137. if Variable.Contains text("settingsThreeGUI", "Tamer DS")
  138. begin
  139. Function.Execute setting 1 variable("getGUI", "windowID", "11")
  140. end
  141. end
  142. if Macro.Previous criteria was not met()
  143. or
  144. Variable.Contains text("settingsThreeGUI", "Back")
  145. begin
  146. Function.Execute setting 1 variable("getGUI", "windowID", "2")
  147. end
  148. end
  149. if Variable.Is equal to("windowID", "6")
  150. begin
  151. Window.Request user text input("Set the RGB value of the Digimons HP seperated a period (.) and then a minus (-) (E.G.: 14.241-255)", "DigimonHPRGB")
  152. if Variable.Is not empty("DigimonHPRGB")
  153. begin
  154. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRGB.txt")
  155. begin
  156. if Variable.Is match (Regex)("DigimonHPRGB", "^[0-9]{1,3}\.[0-9]{1,3}\-[0-9]{1,3}$")
  157. begin
  158. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRGB.txt", "No", "{DigimonHPRGB}")
  159. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  160. end
  161. if Macro.Previous criteria was not met()
  162. begin
  163. Window.Display message box("Invalid RGB value! Seperate the RGB by a period (.) and then a minus (-).", "Yes")
  164. Function.Execute setting 1 variable("getGUI", "windowID", "6")
  165. end
  166. end
  167. if Macro.Previous criteria was not met()
  168. begin
  169. Window.Display message box("File DigimonHPRGB.txt does not exist!", "Yes")
  170. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  171. end
  172. end
  173. if Macro.Previous criteria was not met()
  174. begin
  175. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  176. end
  177. end
  178. if Variable.Is equal to("windowID", "7")
  179. begin
  180. Window.Request user text input("Set the RGB value of the Digimons DS seperated by a period (.) and then a minus (-) (E.G.: 14.241-255)", "DigimonDSRGB")
  181. if Variable.Is not empty("DigimonDSRGB")
  182. begin
  183. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRGB.txt")
  184. begin
  185. if Variable.Is match (Regex)("DigimonDSRGB", "^[0-9]{1,3}\.[0-9]{1,3}\-[0-9]{1,3}$")
  186. begin
  187. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRGB.txt", "No", "{DigimonDSRGB}")
  188. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  189. end
  190. if Macro.Previous criteria was not met()
  191. begin
  192. Window.Display message box("Invalid RGB value! Seperate the RGB by a period (.) and then a minus (-).", "Yes")
  193. Function.Execute setting 1 variable("getGUI", "windowID", "7")
  194. end
  195. end
  196. if Macro.Previous criteria was not met()
  197. begin
  198. Window.Display message box("File DigimonDSRGB.txt does not exist!", "Yes")
  199. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  200. end
  201. end
  202. if Macro.Previous criteria was not met()
  203. begin
  204. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  205. end
  206. end
  207. if Variable.Is equal to("windowID", "8")
  208. begin
  209. Window.Request user text input("Set the RGB value of the Tamers HP seperated by a period (.) and then a minus (-) (E.G.: 14.241-255)", "TamerDSRGB")
  210. if Variable.Is not empty("TamerDSRGB")
  211. begin
  212. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRGB.txt")
  213. begin
  214. if Variable.Is match (Regex)("TamerDSRGB", "^[0-9]{1,3}\.[0-9]{1,3}\-[0-9]{1,3}$")
  215. begin
  216. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRGB.txt", "No", "{TamerDSRGB}")
  217. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  218. end
  219. if Macro.Previous criteria was not met()
  220. begin
  221. Window.Display message box("Invalid RGB value! Seperate the RGB by a period (.) and then a minus (-).", "Yes")
  222. Function.Execute setting 1 variable("getGUI", "windowID", "8")
  223. end
  224. end
  225. if Macro.Previous criteria was not met()
  226. begin
  227. Window.Display message box("File TamerDSRGB.txt does not exist!", "Yes")
  228. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  229. end
  230. end
  231. if Macro.Previous criteria was not met()
  232. begin
  233. Function.Execute setting 1 variable("getGUI", "windowID", "4")
  234. end
  235. end
  236. if Variable.Is equal to("windowID", "9")
  237. begin
  238. Window.Request user text input("Set the RGB range of the Digimons HP","DigimonHPRange")
  239. if Variable.Is not empty("DigimonHPRange")
  240. begin
  241. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRange.txt")
  242. begin
  243. if Variable.Is numeric("DigimonHPRange")
  244. begin
  245. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRange.txt", "No", "{DigimonHPRange}")
  246. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  247. end
  248. if Macro.Previous criteria was not met()
  249. begin
  250. Window.Display message box("Invalid RGB Range! Make sure the range is numeric.", "Yes")
  251. Function.Execute setting 1 variable("getGUI", "windowID", "9")
  252. end
  253. end
  254. if Macro.Previous criteria was not met()
  255. begin
  256. Window.Display message box("File DigimonHPRange.txt does not exist!", "Yes")
  257. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  258. end
  259. end
  260. if Macro.Previous criteria was not met()
  261. begin
  262. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  263. end
  264. end
  265. if Variable.Is equal to("windowID", "10")
  266. begin
  267. Window.Request user text input("Set the RGB range of the Digimons DS","DigimonDSRange")
  268. if Variable.Is not empty("DigimonDSRange")
  269. begin
  270. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRange.txt")
  271. begin
  272. if Variable.Is numeric("DigimonDSRange")
  273. begin
  274. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRange.txt", "No", "{DigimonDSRange}")
  275. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  276. end
  277. if Macro.Previous criteria was not met()
  278. begin
  279. Window.Display message box("Invalid RGB Range! Make sure the range is numeric.", "Yes")
  280. Function.Execute setting 1 variable("getGUI", "windowID", "10")
  281. end
  282. end
  283. if Macro.Previous criteria was not met()
  284. begin
  285. Window.Display message box("File DigimonDSRange.txt does not exist!", "Yes")
  286. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  287. end
  288. end
  289. if Macro.Previous criteria was not met()
  290. begin
  291. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  292. end
  293. end
  294. if Variable.Is equal to("windowID", "11")
  295. begin
  296. Window.Request user text input("Set the RGB range of the Tamers HP", "TamerDSRange")
  297. if Variable.Is not empty("TamerDSRange")
  298. begin
  299. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRange.txt")
  300. begin
  301. if Variable.Is numeric("TamerDSRange")
  302. begin
  303. File.Write text("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRange.txt", "No", "{TamerDSRange}")
  304. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  305. end
  306. if Macro.Previous criteria was not met()
  307. begin
  308. Window.Display message box("Invalid RGB Range! Make sure the range is numeric.", "Yes")
  309. Function.Execute setting 1 variable("getGUI", "windowID", "11")
  310. end
  311. end
  312. end
  313. if Macro.Previous criteria was not met()
  314. begin
  315. Function.Execute setting 1 variable("getGUI", "windowID", "5")
  316. end
  317. end
  318. function
  319.  
  320. function("getScreenSettings")
  321. begin
  322. Window.Get size("DMO", "No", "screenWidth", "screenHeight")
  323. Window.Get location("DMO", "No", "No", "screenX", "screenY")
  324. Variable.Evaluate (Math)("{screenX} + ({screenWidth} / 2) + 42", "mobContainerX")
  325. Variable.Evaluate (Math)("{screenY} + 78", "mobContainerY")
  326. Variable.Evaluate (Math)("{screenX} + ({screenWidth} / 2)", "centerX")
  327. Variable.Evaluate (Math)("{screenY} + ({screenHeight} / 2)", "centerY")
  328. end
  329. function
  330.  
  331. function("getHPDSSettings")
  332. if Variable.Exists("useHPDisk")
  333. begin
  334. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRGB.txt")
  335. and
  336. File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRange.txt")
  337. begin
  338. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRGB.txt", "DigimonHPRGB")
  339. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonHPRange.txt", "DigimonHPRange")
  340. Variable.Split("DigimonHPRGB", ".", "DigimonHPR", "DigimonHPGB")
  341. Variable.Split("DigimonHPGB", "-", "DigimonHPG", "DigimonHPB")
  342. if Variable.Contains text("useHPDisk", "25")
  343. begin
  344. Variable.Evaluate (Math)("{screenX} + 140","digimonHPX")
  345. Variable.Evaluate (Math)("{screenY} + 158","digimonHPY")
  346. end
  347. if Variable.Contains text("useHPDisk", "50")
  348. begin
  349. Variable.Evaluate (Math)("{screenX} + 171","digimonHPX")
  350. Variable.Evaluate (Math)("{screenY} + 158","digimonHPY")
  351. end
  352. if Variable.Contains text("useHPDisk", "75")
  353. begin
  354. Variable.Evaluate (Math)("{screenX} + 200","digimonHPX")
  355. Variable.Evaluate (Math)("{screenY} + 158","digimonHPY")
  356. end
  357. end
  358. if Macro.Previous criteria was not met()
  359. begin
  360. Window.Display message box("Cannot find the setting files!", "Yes")
  361. Macro.Abort()
  362. end
  363. end
  364. if Variable.Exists("useDSDisk")
  365. begin
  366. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRGB.txt")
  367. and
  368. File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRange.txt")
  369. begin
  370. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRGB.txt", "DigimonDSRGB")
  371. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\DigimonDSRange.txt", "DigimonDSRange")
  372. Variable.Split("DigimonDSRGB", ".", "DigimonDSR", "DigimonDSGB")
  373. Variable.Split("DigimonDSGB", "-", "DigimonDSG", "DigimonDSB")
  374. if Variable.Contains text("useDSDisk", "25")
  375. begin
  376. Variable.Evaluate (Math)("{screenX} + 140","digimonDSX")
  377. Variable.Evaluate (Math)("{screenY} + 172","digimonDSY")
  378. end
  379. if Variable.Contains text("useDSDisk", "50")
  380. begin
  381. Variable.Evaluate (Math)("{screenX} + 171","digimonDSX")
  382. Variable.Evaluate (Math)("{screenY} + 172","digimonDSY")
  383. end
  384. if Variable.Contains text("useDSDisk", "75")
  385. begin
  386. Variable.Evaluate (Math)("{screenX} + 200","digimonDSX")
  387. Variable.Evaluate (Math)("{screenY} + 172","digimonDSY")
  388. end
  389. end
  390. if Macro.Previous criteria was not met()
  391. begin
  392. Window.Display message box("Cannot find the setting files!", "Yes")
  393. Macro.Abort()
  394. end
  395. end
  396. if Variable.Exists("useDSItem")
  397. begin
  398. if File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRGB.txt")
  399. and
  400. File.Exists("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRange.txt")
  401. begin
  402. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRGB.txt", "TamerDSRGB")
  403. File.Read first line("C:\BlueEyeMacro\DaMaGeX\DMO\TamerDSRange.txt", "TamerDSRange")
  404. Variable.Split("TamerDSRGB", ".", "TamerDSR", "TamerDSGB")
  405. Variable.Split("TamerDSGB", "-", "TamerDSG", "TamerDSB")
  406. if Variable.Contains text("useDSItem", "25")
  407. begin
  408. Variable.Evaluate (Math)("{screenX} + 140","tamerDSX")
  409. Variable.Evaluate (Math)("{screenY} + 98","tamerDSY")
  410. end
  411. if Variable.Contains text("useDSItem", "50")
  412. begin
  413. Variable.Evaluate (Math)("{screenX} + 170","tamerDSX")
  414. Variable.Evaluate (Math)("{screenY} + 98","tamerDSY")
  415. end
  416. if Variable.Contains text("useDSItem", "75")
  417. begin
  418. Variable.Evaluate (Math)("{screenX} + 200","tamerDSX")
  419. Variable.Evaluate (Math)("{screenY} + 98","tamerDSY")
  420. end
  421. end
  422. if Macro.Previous criteria was not met()
  423. begin
  424. Window.Display message box("Cannot find the setting files!", "Yes")
  425. Macro.Abort()
  426. end
  427. end
  428. function
  429.  
  430. function("findMob")
  431. begin
  432. Keyboard.Hold keys("{<tab>}")
  433. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  434. Keyboard.Release keys("{<tab>}")
  435. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "400", "pauseTimeMax", "800")
  436. end
  437. function
  438.  
  439. function("attackMob")
  440. begin
  441. if Variable.Contains text("useFeatures","Use Skills")
  442. begin
  443. while Color.At coordinate is within (RGB range)("36", "99", "195", "20", "{mobContainerX}", "{mobContainerY}")
  444. begin
  445. Variable.Get text length("useSkillSlots", "useSkillLength")
  446. Variable.Evaluate (Math)("5200/(({useSkillLength}+1)/3)", "cooldownMinTime")
  447. Variable.Evaluate (Math)("5800/(({useSkillLength}+1)/3)", "cooldownMaxTime")
  448. Variable.Set("skillCount", "1")
  449. While Variable.Is not equal to("skillCount", "7")
  450. begin
  451. Variable.Evaluate (Text)("F{skillCount}", "skillKey")
  452. Variable.Evaluate (Text)("{<{skillKey}>}", "useKey")
  453. Variable.Increment (Math)("skillCount")
  454. Function.Execute("useSkill")
  455. Function.Execute("checkDrops")
  456. end
  457. Function.Execute("antiBan")
  458. end
  459. end
  460. if Macro.Previous criteria was not met()
  461. begin
  462. Keyboard.Hold keys("{useKey}")
  463. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  464. Keyboard.Release keys("{useKey}")
  465. end
  466. while Color.At coordinate is within (RGB range)("36", "99", "195", "20", "{mobContainerX}", "{mobContainerY}")
  467. begin
  468. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  469. end
  470. Function.Execute setting 1 variable("checkHPDS", "checkFor", "tamer;digimon")
  471. end
  472. function
  473.  
  474. function("useSkill")
  475. if Variable.Contains text("useSkillSlots", "{skillKey}")
  476. begin
  477. Keyboard.Hold keys("{useKey}")
  478. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  479. Keyboard.Release keys("{useKey}")
  480. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "{cooldownMinTime}", "pauseTimeMax", "{cooldownMaxTime}")
  481. Function.Execute setting 1 variable("checkHPDS", "checkFor", "digimon")
  482. end
  483. function
  484.  
  485. function("checkDrops")
  486. if Variable.Contains text("useFeatures", "Pickup Drops")
  487. begin
  488. Variable.Increment (Math)("dropCount")
  489. Keyboard.Hold keys("4")
  490. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  491. Keyboard.Release keys("4")
  492. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "300", "pauseTimeMax", "500")
  493. end
  494. function
  495.  
  496. function("checkHPDS")
  497. if Variable.Contains text("checkFor", "digimon")
  498. begin
  499. if Variable.Contains text("useFeatures", "Auto-Heal Digimon")
  500. begin
  501. if Color.At coordinate is not within (RGB range)("{DigimonHPR}", "{DigimonHPG}", "{DigimonHPB}", "{DigimonHPRange}", "{digimonHPX}", "{digimonHPY}")
  502. begin
  503. Keyboard.Hold keys("{<f7>}")
  504. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  505. Keyboard.Release keys("{<f7>}")
  506. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "400", "pauseTimeMax", "800")
  507. end
  508. end
  509. if Variable.Contains text("useFeatures", "Auto-DS Digimon")
  510. begin
  511. if Color.At coordinate is not within (RGB range)("{DigimonDSR}", "{DigimonDSG}", "{DigimonDSB}", "{DigimonDSRange}", "{digimonDSX}", "{digimonDSY}")
  512. begin
  513. Keyboard.Hold keys("{<f8>}")
  514. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  515. Keyboard.Release keys("{<f8>}")
  516. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "400", "pauseTimeMax", "800")
  517. end
  518. end
  519. end
  520. if Variable.Contains text("checkFor", "tamer")
  521. begin
  522. if Variable.Contains text("useFeatures", "Auto-DS Tamer")
  523. begin
  524. if Color.At coordinate is not within (RGB range)("{TamerDSR}", "{TamerDSG}", "{TamerDSB}", "{TamerDSRange}", "{tamerDSX}", "{tamerDSY}")
  525. begin
  526. Keyboard.Hold keys("8")
  527. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  528. Keyboard.Release keys("8")
  529. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "400", "pauseTimeMax", "800")
  530. end
  531. end
  532. end
  533. function
  534.  
  535. function("randomPause")
  536. begin
  537. Variable.Set random number("pauseTime", "{pauseTimeMin}", "{pauseTimeMax}")
  538. Macro.Pause("{pauseTime}")
  539. end
  540. function
  541.  
  542. function("antiBan")
  543. begin
  544. Variable.Set random number("getAntiBan", "0", "20")
  545. if Variable.Is equal to("getAntiBan", "1")
  546. begin
  547. Variable.Set random number("scrollTimes", "1", "15")
  548. Mouse.Scroll down("{scrollTimes}")
  549. end
  550. if Variable.Is equal to("getAntiBan", "2")
  551. begin
  552. Variable.Set random number("scrollTimes", "1", "15")
  553. Mouse.Scroll up("{scrollTimes}")
  554. end
  555. if Variable.Is equal to("getAntiBan", "3")
  556. begin
  557. Keyboard.Hold keys("i")
  558. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  559. Keyboard.Release keys("i")
  560. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  561. end
  562. if Variable.Is equal to("getAntiBan", "4")
  563. begin
  564. Keyboard.Hold keys("n")
  565. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  566. Keyboard.Release keys("n")
  567. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  568. end
  569. if Variable.Is equal to("getAntiBan", "5")
  570. begin
  571. Keyboard.Hold keys("m")
  572. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  573. Keyboard.Release keys("m")
  574. Function.Execute setting 2 variables("randomPause", "pauseTimeMin", "60", "pauseTimeMax", "120")
  575. end
  576. end
  577. function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement