Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.12 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Graphics;
  3. import java.awt.Point;
  4. import java.io.BufferedReader;
  5. import java.io.InputStreamReader;
  6. import java.net.URL;
  7. import java.net.URLConnection;
  8.  
  9. import org.rsbot.event.listeners.PaintListener;
  10. import org.rsbot.script.Script;
  11. import org.rsbot.script.util.WindowUtil;
  12. import org.rsbot.script.wrappers.RSArea;
  13. import org.rsbot.script.wrappers.RSItem;
  14. import org.rsbot.script.wrappers.RSObject;
  15. import org.rsbot.script.wrappers.RSPath;
  16. import org.rsbot.script.wrappers.RSTile;
  17.  
  18. @org.rsbot.script.ScriptManifest(authors = { "Eagledude4" }, name = "EDYewWoodcutter", version = 3, description = "This script is a woodcutter that cuts outside east Varrock, and then banks. Also, feedback, progress reports and new ideas are extremely welcome!")
  19.  
  20. public class EDYewWoodcutter extends Script implements PaintListener {
  21.  
  22. // Script Variables
  23. public boolean hasHatchet = false;
  24. public boolean toldUpdate = false;
  25. public boolean canStart = false;
  26.  
  27. public boolean hatchetEquipped = false;
  28.  
  29. public boolean chopping = false;
  30.  
  31. public boolean walkedToRoad = false;
  32.  
  33. public boolean isAtSouth = false;
  34. public boolean isAtNorth = false;
  35.  
  36. public boolean goingSouth = false;
  37. public boolean goingNorth = false;
  38.  
  39. public boolean didlast1 = false;
  40. public boolean didlast2 = false;
  41. public boolean didlast3 = false;
  42. public boolean didlast4 = false;
  43. public boolean didlast5 = false;
  44.  
  45. public boolean hour10 = false;
  46. public boolean hour15 = false;
  47. public boolean hour20 = false;
  48. public boolean hour25 = false;
  49. public boolean hour30 = false;
  50. public boolean hour35 = false;
  51. public boolean hour40 = false;
  52. public boolean hour45 = false;
  53. public boolean hour50 = false;
  54.  
  55. public boolean is99 = false;
  56.  
  57. public int switched = 0;
  58.  
  59. public int runeHatchet = 1359;
  60. public int dragonHatchet = 6739;
  61.  
  62. public RSArea southYewArea = new RSArea(new RSTile(3266, 3466), new RSTile(3276, 3476));
  63. public RSArea northYewArea = new RSArea(new RSTile(3262, 3489), new RSTile(3272, 3499));
  64.  
  65. public RSTile bankLoc = new RSTile(3254, 3420);
  66. public RSTile roadWalkLoc = new RSTile(3283, 3428);
  67. public RSTile southYewWalkLoc = new RSTile (3269, 3471);
  68. public RSTile southYewChopLoc = new RSTile (3271, 3473);
  69. public RSTile southYewLoc = new RSTile (3271, 3471);
  70. public RSTile middleLoc = new RSTile(3268, 3481);
  71. public RSTile northYewChopLoc = new RSTile (3267, 3492);
  72. public RSTile northYewLoc = new RSTile (3267, 3494);
  73.  
  74. //Paint Variables
  75. public boolean hasBanked = false;
  76.  
  77. public boolean displayAntiban = false;
  78.  
  79. public int timesBanked = 0;
  80.  
  81. public int totalLogsP = 0;
  82. public int yewPrice = 0;
  83. public int profit = 0;
  84.  
  85. public long startTime = 0;
  86. public long EXPGained;
  87.  
  88. public int startLevel;
  89. public int startEXP;
  90. public int levelsGained;
  91.  
  92. public String status = "Starting";
  93.  
  94.  
  95.  
  96. //Paint Methods
  97. public void onRepaint(Graphics g) {
  98. if (game.isLoggedIn()) {
  99. drawMouse(g);
  100. long millis = System.currentTimeMillis() - startTime;
  101. long hours = millis / (1000 * 60 * 60);
  102. millis -= hours * (1000 * 60 * 60);
  103. long minutes = millis / (1000 * 60);
  104. millis -= minutes * (1000 * 60);
  105. long seconds = millis / 1000;
  106. EXPGained = skills.getCurrentExp(8) - startEXP;
  107. levelsGained = skills.getCurrentLevel(8) - startLevel;
  108. int x;
  109. int LTL;
  110. LTL = skills.getExpToNextLevel(8) / 175;
  111. int xpTillLvl = skills.getExpToNextLevel(8);
  112.  
  113. g.setColor(new Color(0, 0, 0, 150));
  114. g.fillRect(197, 1, 321, 120);
  115. g.setColor(Color.YELLOW);
  116. g.drawString("ED Yew Woodcutter", 305, 20);
  117.  
  118. //Left
  119. x = 200;
  120. g.setColor(Color.GREEN);
  121. g.drawString(""+status, x, 40);
  122. g.setColor(Color.WHITE);
  123. if (status == "Checking" || status == "Starting") {
  124. g.drawString("Runtime: 0:0:0", x, 55);
  125. } else if (status != "Checking" && status != "Starting") {
  126. g.drawString("Runtime: "+hours+":"+minutes+":"+seconds, x, 55);
  127. }
  128.  
  129. //Center
  130. x = 300;
  131. g.setColor(Color.WHITE);
  132. g.drawString("Current Level: "+skills.getCurrentLevel(8), x, 40);
  133. if (status == "Checking" || status == "Starting") {
  134. g.drawString("Levels Gained: 0", x, 55);
  135. } else {
  136. g.drawString("Levels Gained: "+levelsGained, x, 55);
  137. }
  138. if (status == "Checking" || status == "Starting") {
  139. g.drawString("EXP Gained: 0", x, 70);
  140. } else {
  141. if (EXPGained < 1000) {
  142. g.drawString("EXP Gained: "+EXPGained+"xp", x, 70);
  143. } else if (EXPGained > 1000 && EXPGained < 10000) {
  144. g.drawString("EXP Gained: "+EXPGained / 1000+"k xp", x, 70);
  145. } else if (EXPGained > 10000 && EXPGained < 100000) {
  146. g.drawString("EXP Gained: "+EXPGained/ 1000+"k xp", x, 70);
  147. } else if (EXPGained > 100000 && EXPGained < 1000000) {
  148. g.drawString("EXP Gained: "+EXPGained / 1000+"k xp", x, 70);
  149. } else if (EXPGained > 1000000) {
  150. g.drawString("EXP Gained: "+EXPGained / 1000000+"m xp", x, 70);
  151. }
  152. }
  153.  
  154. if (is99 == true) {
  155. g.drawString("Logs till level: 0", x, 85);
  156. } else if (is99 == false) {
  157. if (LTL < 1000) {
  158. g.drawString("Logs till level: "+LTL+"", x, 85);
  159. } else if (LTL > 1000 && LTL< 10000) {
  160. g.drawString("Logs till level: "+LTL / 1000+"k", x, 85);
  161. } else if (LTL > 10000 && LTL < 100000) {
  162. g.drawString("Logs till level: "+LTL / 1000+"k", x, 85);
  163. }
  164. }
  165.  
  166. //Right
  167. x = 415;
  168. if (timesBanked == 0) {
  169. g.drawString("Banked: Not Yet", x, 40);
  170. g.drawString("Logs In Bank: TBA", x, 55);
  171. } else if (timesBanked == 1) {
  172. g.drawString("Banked: Once", x, 40);
  173. } else if (timesBanked > 1) {
  174. g.drawString("Banked: "+timesBanked+" times", x, 40);
  175. }
  176. if (totalLogsP < 1000 && timesBanked != 0) {
  177. g.drawString("Logs In Bank: "+totalLogsP+"", x, 55);
  178. } else if (totalLogsP > 1000 && totalLogsP < 10000) {
  179. g.drawString("Logs In Bank: "+totalLogsP / 1000+"k", x, 55);;
  180. } else if (totalLogsP > 10000 && totalLogsP < 100000) {
  181. g.drawString("Logs In Bank: "+totalLogsP / 1000+"k", x, 55);
  182. } else if (totalLogsP > 100000 && totalLogsP < 1000000) {
  183. g.drawString("Logs In Bank: "+totalLogsP / 1000+"k", x, 55);
  184. } else if (totalLogsP > 1000000) {
  185. g.drawString("Logs In Bank: "+totalLogsP / 1000000+"m", x, 55);
  186. }
  187. g.drawString("Log Price: "+yewPrice+" gp", x, 70);
  188. g.setColor(Color.GREEN);
  189. if (profit < 1000) {
  190. g.drawString("Profit: "+profit+" gp", x, 85);
  191. } else if (profit > 1000 && profit < 10000) {
  192. g.drawString("Profit: "+profit / 1000+"k", x, 85);
  193. } else if (profit > 10000 && profit < 100000) {
  194. g.drawString("Profit: "+profit / 1000+"k", x, 85);
  195. } else if (profit > 100000 && profit < 1000000) {
  196. g.drawString("Profit: "+profit / 1000+"k", x, 85);;
  197. } else if (profit > 1000000) {
  198. g.drawString("Profit: "+profit / 1000000+"m", x, 85);
  199. }
  200.  
  201. //Progress Bar
  202. g.setColor(Color.WHITE);
  203. g.drawRect(202, 94, 311, 21);
  204. g.setColor(Color.RED);
  205. g.fillRect(203, 95, 310, 20);
  206. g.setColor(Color.GREEN);
  207. g.fillRect(203, 95, (310*skills.getPercentToNextLevel(8))/100, 20);
  208. g.setColor(Color.BLACK);
  209. g.drawString(+skills.getPercentToNextLevel(8)+"% -", 290, 109);
  210. if (xpTillLvl < 1000) {
  211. g.drawString("Exp till level: "+xpTillLvl+"xp", 330, 109);
  212. } else if (xpTillLvl > 1000 && xpTillLvl < 10000) {
  213. g.drawString("Exp till level: "+xpTillLvl / 1000+"k xp", 330, 109);
  214. } else if (xpTillLvl > 10000 && xpTillLvl < 100000) {
  215. g.drawString("Exp till level: "+xpTillLvl / 1000+"k xp", 330, 109);
  216. } else if (xpTillLvl > 100000 && xpTillLvl < 1000000) {
  217. g.drawString("Exp till level: "+xpTillLvl/ 1000+"k xp", 330, 109);
  218. } else if (xpTillLvl > 1000000) {
  219. g.drawString("Exp till level: "+xpTillLvl / 1000000+"m xp", 330, 109);
  220. }
  221.  
  222.  
  223. //AntiBan Display
  224. g.setColor(Color.RED);
  225. if (displayAntiban == true) {
  226. g.drawString("Antiban", 460, 330);
  227. } else if (displayAntiban == false) {
  228. g.drawString("", 460, 330);
  229. }
  230. }
  231. }
  232.  
  233. private void drawMouse(final Graphics g) {
  234. final Point loc = mouse.getLocation();
  235. if (loc.x < 516) {
  236. g.setColor(Color.GREEN);
  237. } else if (loc.x > 516)
  238. g.setColor(Color.RED);
  239. g.drawOval(loc.x - 14, loc.y - 14, 28, 28);
  240. g.fillOval(loc.x - 7, loc.y - 7, 14, 14);
  241. }
  242.  
  243.  
  244.  
  245. //Script Methods
  246. public boolean onStart() {
  247. if (game.isLoggedIn()) {
  248. mouse.setSpeed(5);
  249.  
  250. if (skills.getCurrentLevel(8) == 99) {
  251. is99 = true;
  252. }
  253. }
  254. return true;
  255. }
  256.  
  257. public void onFinish() {
  258. log("Thanks for using my script.");
  259. return;
  260. }
  261.  
  262. public int loop() {
  263. RSPath toRoad = walking.getPath(roadWalkLoc);
  264. RSPath toYews = walking.getPath(southYewWalkLoc);
  265. RSPath toBank = walking.getPath(bankLoc);
  266. long millis = System.currentTimeMillis() - startTime;
  267. long hours = millis / (1000 * 60 * 60);
  268. millis -= hours * (1000 * 60 * 60);
  269. long minutes = millis / (1000 * 60);
  270. millis -= minutes * (1000 * 60);
  271. long seconds = millis / 1000;
  272. try {
  273. if (game.isLoggedIn()) {
  274. camera.setPitch(true);
  275. if (hatchetEquipped == false) {
  276. profit = (timesBanked * 27 * yewPrice) + (inventory.getCount(1515) * yewPrice);
  277. } else if (hatchetEquipped == false) {
  278. profit = (timesBanked * 28 * yewPrice) + (inventory.getCount(1515) * yewPrice);
  279. }
  280.  
  281. if (hasHatchet == false) {
  282. game.openTab(4);
  283. checkInventory();
  284. }
  285.  
  286. if (yewPrice == 0) {
  287. yewPrice = grandExchange.lookup(1515).getGuidePrice();
  288. }
  289.  
  290. if (hours == 10 && minutes == 0 && seconds == 0) {
  291. hour10 = true;
  292. log("Nice, 10 hours! Screenshot :)");
  293. } else {
  294. hour10 = false;
  295. }
  296.  
  297. if (hours == 15 && minutes == 0 && seconds == 0) {
  298. hour15 = true;
  299. log("Nice, 15 hours! Screenshot :)");
  300. } else {
  301. hour15 = false;
  302. }
  303.  
  304. if (hours == 20 && minutes == 0 && seconds == 0) {
  305. hour20 = true;
  306. log("Nice, 20 hours! Screenshot :)");
  307. } else {
  308. hour20 = false;
  309. }
  310.  
  311. if (hours == 25 && minutes == 0 && seconds == 0) {
  312. hour25 = true;
  313. log("Nice, 25 hours! Screenshot :)");
  314. } else {
  315. hour25 = false;
  316. }
  317.  
  318. if (hours == 30 && minutes == 0 && seconds == 0) {
  319. hour30 = true;
  320. log("Nice, 30 hours! Screenshot :)");
  321. } else {
  322. hour30 = false;
  323. }
  324.  
  325. if (hours == 35 && minutes == 0 && seconds == 0) {
  326. hour35 = true;
  327. log("Nice, 35 hours! Screenshot :)");
  328. } else {
  329. hour35 = false;
  330. }
  331.  
  332. if (hours == 40 && minutes == 0 && seconds == 0) {
  333. hour40 = true;
  334. log("Nice, 40 hours! Screenshot :)");
  335. } else {
  336. hour40 = false;
  337. }
  338.  
  339. if (hours == 45 && minutes == 0 && seconds == 0) {
  340. hour45 = true;
  341. log("Nice, 45 hours! Screenshot :)");
  342. } else {
  343. hour45 = false;
  344. }
  345.  
  346. if (hours == 50 && minutes == 0 && seconds == 0) {
  347. hour50 = true;
  348. log("Nice, 50 hours! Screenshot :)");
  349. } else {
  350. hour50 = false;
  351. }
  352.  
  353. if (hour10 == true || hour15 == true || hour20 == true || hour25 == true || hour30 == true || hour35 == true || hour40 == true || hour45 == true || hour50 == true) {
  354. env.saveScreenshot(true);
  355. }
  356.  
  357.  
  358. if (is99 == false && skills.getCurrentLevel(8) == 99) {
  359. env.saveScreenshot(true);
  360. log("Grats on 99, Wo0T!");
  361. is99 = true;
  362. }
  363.  
  364. if (startTime == 0 && skills.getCurrentLevel(8) != 0) {
  365. startTime = System.currentTimeMillis();
  366. startLevel = skills.getCurrentLevel(8);
  367. startEXP = skills.getCurrentExp(8);
  368. }
  369.  
  370. if (calc.distanceTo(bankLoc) <= 5 || calc.distanceTo(southYewWalkLoc) <= 5) {
  371. walkedToRoad = false;
  372. }
  373.  
  374. if (calc.distanceTo(roadWalkLoc) < 3) {
  375. walkedToRoad = true;
  376. }
  377.  
  378. if (calc.distanceTo(walking.getDestination()) > 3) {
  379. sleep(500);
  380. }
  381.  
  382. if (inventory.isFull()) {
  383. if (calc.distanceTo(bankLoc) <= 5) {
  384. useBank();
  385. } else if (getMyPlayer().getLocation().getY() < 3499) {
  386. if (walkedToRoad == false) {
  387. status = "Walking";
  388. toRoad.traverse();
  389. sleep(random(2000, 2500));
  390. } else if (walkedToRoad == true) {
  391. toBank.traverse();
  392. sleep(random(2000, 2500));
  393. }
  394. }
  395. }
  396.  
  397. if (!inventory.isFull()) {
  398. if (getMyPlayer().getLocation().getY() < 3471) {
  399. if (walkedToRoad == false) {
  400. status = "Walking";
  401. toRoad.traverse();
  402. sleep(random(2000, 2500));
  403. } else if (walkedToRoad == true) {
  404. toYews.traverse();
  405. sleep(random(2000, 2500));
  406. }
  407. }
  408. if (isAtSouth == true) {
  409. chopSouthTree();
  410. goingSouth = false;
  411. } else if (isAtNorth == true) {
  412. chopNorthTree();
  413. goingNorth = false;
  414. }
  415. }
  416.  
  417. if (goingNorth == true && getMyPlayer().getLocation().getY() < 3492) {
  418. status = "Switching";
  419. walking.walkTileMM(northYewChopLoc);
  420. sleep(random(2000, 2500));
  421. } else if (goingSouth == true && getMyPlayer().getLocation().getY() > 3473) {
  422. status = "Switching";
  423. walking.walkTileMM(southYewChopLoc);
  424. sleep(random(2000, 2500));
  425. }
  426.  
  427. if (southYewArea.contains(getMyPlayer().getLocation())) {
  428. isAtSouth = true;
  429. } else if (!southYewArea.contains(getMyPlayer().getLocation())) {
  430. isAtSouth = false;
  431. }
  432. if (northYewArea.contains(getMyPlayer().getLocation())) {
  433. isAtNorth = true;
  434. } else if (!northYewArea.contains(getMyPlayer().getLocation())) {
  435. isAtNorth = false;
  436. }
  437. }
  438. } catch (final Exception e) {
  439. }
  440. return 500;
  441. }
  442.  
  443. public void checkInventory() {
  444. RSItem runeHatchet = inventory.getItem(1359);
  445. RSItem dragonHatchet = inventory.getItem(6739);
  446. game.openTab(4);
  447. sleep(1000);
  448. if (inventory.contains(1359) && skills.getCurrentLevel(0) >= 41) {
  449. runeHatchet.doClick(true);
  450. hasHatchet = true;
  451. } else if (inventory.contains(6739) && skills.getCurrentLevel(0) >= 61) {
  452. dragonHatchet.doClick(true);
  453. hasHatchet = true;
  454. }
  455. if (inventory.contains(1359) && skills.getCurrentLevel(0) < 41) {
  456. hasHatchet = true;
  457. } else if (inventory.contains(6739) && skills.getCurrentLevel(0) < 61) {
  458. hasHatchet = true;
  459. }
  460. if (!inventory.contains(1359) && !inventory.contains(6739)) {
  461. checkEquipment();
  462. }
  463. }
  464.  
  465. public void checkEquipment() {
  466. game.openTab(5);
  467. sleep(1000);
  468. if (equipment.containsOneOf(runeHatchet) == true || equipment.containsOneOf(dragonHatchet) == true) {
  469. hasHatchet= true;
  470. hatchetEquipped = true;
  471. } else if (equipment.containsOneOf(runeHatchet) == false && equipment.containsOneOf(dragonHatchet) == false) {
  472. hatchetEquipped = false;
  473. WindowUtil.showDialog("You don't have an appropriate hatchet");
  474. log("You must have either a rune or dragon hatchet equiped or in your");
  475. log("inventory to use this script.");
  476. game.logout(true);
  477. sleep(1000);
  478. stopScript();
  479. }
  480. }
  481.  
  482. public void chopSouthTree() {
  483. RSObject Tree = objects.getNearest(1309);
  484. RSTile treeLoc = Tree.getLocation();
  485. if (getMyPlayer().getAnimation() == 879) {
  486. chopping = true;
  487. status = "Chopping";
  488. } else {
  489. chopping = false;
  490. }
  491.  
  492. if (calc.distanceTo(treeLoc) > 5 && calc.distanceTo(southYewLoc) <= 3) {
  493. if (switched != 2) {
  494. status = "No Tree";
  495. walking.walkTileMM(middleLoc);
  496. switched++;
  497. goingNorth = true;
  498. } else if (switched == 2) {
  499. status = "Waiting";
  500. antiBan();
  501. }
  502. }
  503.  
  504. if (chopping == false && calc.distanceTo(treeLoc) <= 3) {
  505. if (!getMyPlayer().isMoving()) {
  506. sleep(random(800, 1500));
  507. Tree.doAction("Chop down");
  508. switched = 0;
  509. antiBan();
  510. }
  511. }
  512. }
  513.  
  514. public void chopNorthTree() {
  515. RSObject Tree = objects.getNearest(1309);
  516. RSTile treeLoc = Tree.getLocation();
  517. if (getMyPlayer().getAnimation() == 879) {
  518. chopping = true;
  519. status = "Chopping";
  520. } else {
  521. chopping = false;
  522. }
  523.  
  524. if (calc.distanceTo(treeLoc) > 5 && calc.distanceTo(northYewLoc) <= 3) {
  525. if (switched != 2) {
  526. status = "No Tree";
  527. walking.walkTileMM(middleLoc);
  528. switched++;
  529. goingSouth = true;
  530. } else if (switched == 2) {
  531. status = "Waiting";
  532. antiBan();
  533. }
  534. }
  535.  
  536. if (chopping == false && calc.distanceTo(treeLoc) <= 3) {
  537. if (!getMyPlayer().isMoving()) {
  538. sleep(random(800, 1500));
  539. Tree.doAction("Chop down");
  540. switched = 0;
  541. antiBan();
  542. }
  543. }
  544. }
  545.  
  546. public void useBank() {
  547. final RSObject bankBooth = objects.getNearest(782);
  548. try {
  549. if (bank.getInterface().isValid()) {
  550. depositLogs();
  551. } else if (!getMyPlayer().isMoving() && !bank.getInterface().isValid()) {
  552. bankBooth.doAction("Use-quickly");
  553. }
  554. } catch (final Exception e) {
  555. }
  556. }
  557.  
  558. public void depositLogs() {
  559. int Bank = bank.getCount(1515);
  560. int Inventory = inventory.getCount(1515);
  561. int totalLogs = Bank + Inventory;
  562. sleep(random(1000, 1500));
  563. if (hatchetEquipped == false) {
  564. bank.depositAllExcept(runeHatchet, dragonHatchet);
  565. } else if (hatchetEquipped == true) {
  566. mouse.move(random(382, 410), (random(299, 312)));
  567. sleep(random(800, 1200));
  568. mouse.click(true);
  569. }
  570. sleep(random(4000, 4500));
  571. bank.close();
  572. timesBanked++;
  573. totalLogsP = totalLogs;
  574. }
  575.  
  576. public void antiBan() {
  577. final int ranNo = random(1, 75);
  578. try {
  579. if (ranNo == 1 && didlast1 == false && is99 == false) { //check woodcutting stat
  580. displayAntiban = true;
  581. mouse.move(random(587, 608), random(173, 196));
  582. sleep(random(800, 1200));
  583. mouse.move(random(682, 726), random(354, 370));
  584. sleep(random(1500, 2500));
  585. game.openTab(4);
  586. didlast1 = true;
  587. didlast2 = false;
  588. didlast3 = false;
  589. didlast4 = false;
  590. didlast5 = false;
  591. displayAntiban = false;
  592. } else if (ranNo == 2 && didlast2 == false) { //check friends tab
  593. displayAntiban = true;
  594. game.openTab(9);
  595. sleep(random(800, 1200));
  596. mouse.click(true);
  597. sleep(random(2000, 3000));
  598. game.openTab(4);
  599. didlast1 = false;
  600. didlast2 = true;
  601. didlast3 = false;
  602. didlast4 = false;
  603. didlast5 = false;
  604. displayAntiban = false;
  605. } else if (ranNo == 3 && didlast3 == false) { //turn camera
  606. displayAntiban = true;
  607. camera.setAngle(random(90, 180));
  608. sleep(random(400, 800));
  609. didlast1 = false;
  610. didlast2 = false;
  611. didlast3 = true;
  612. didlast4 = false;
  613. didlast5 = false;
  614. displayAntiban = false;
  615. } else if (ranNo == 4 && didlast4 == false) { //move mouse randomly
  616. displayAntiban = true;
  617. mouse.move(random(25, 500), random(16, 291));
  618. sleep(random(800, 1200));
  619. didlast1 = false;
  620. didlast2 = false;
  621. didlast3 = false;
  622. didlast4 = true;
  623. didlast5 = false;
  624. displayAntiban = false;
  625. } else if (ranNo == 5 && didlast5 == false) { //move mouse offscreen
  626. displayAntiban = true;
  627. mouse.moveOffScreen();
  628. sleep(random(10000, 25000));
  629. didlast1 = false;
  630. didlast2 = false;
  631. didlast3 = false;
  632. didlast4 = false;
  633. didlast5 = true;
  634. displayAntiban = false;
  635. }
  636. } catch (final Exception e) {
  637. }
  638. }
  639. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement