Advertisement
Guest User

complete

a guest
Sep 1st, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. import java.awt.AWTException;
  2. import java.awt.Robot;
  3. import java.awt.event.InputEvent;
  4. import java.awt.event.KeyEvent;
  5. public class tryhardplasma {
  6.  
  7. public static void main(String[] args) throws InterruptedException, AWTException
  8. {
  9. int i =0;
  10. while (true)
  11. {
  12. toright();
  13. attack();
  14. toleft();
  15. attack();
  16. toright();
  17. attack();
  18. toleft();
  19. attack();
  20. i++;
  21. System.out.println(i);
  22. if(i==50||i==100||i==150||i==200||i==250||i==300|i==350||i==400||i==450||i==500||i==550||i==600||i==650||i==700||i==750)
  23. {
  24. press(41, 227, 250);//menue
  25. press(1004, 226, 250);
  26. press(302, 244, 250);//inventory
  27. press(1267, 238, 250);
  28. for(int j=0;j<80;j++)
  29. {
  30. sell();
  31. }
  32. press(627, 335, 250);
  33. press(1584, 334, 250);
  34. for (int j=0;j<300;j++)
  35. {
  36. sell();
  37. }
  38. press(699,339,250);
  39. press(1656,328,250);
  40. for(int j=0;j<80;j++)
  41. {
  42. sell();
  43. }
  44. press(768, 335, 250);
  45. press(1733, 327, 250);
  46. for(int j=0;j<80;j++)
  47. {
  48. sell();
  49. }
  50. press(64, 238, 50);//back
  51. press(1028, 236, 1000);
  52. i++;
  53. System.out.println(i);
  54. }
  55. //remake
  56. press(41, 225, 500);//menue
  57. press(1006, 218, 500);
  58. press(157, 892, 500);//worldmap
  59. press(1114, 907, 500);
  60. press(195, 876, 500);//hostgame
  61. press(1152, 875, 500);
  62. press(164, 876, 500);//password field open
  63. password();
  64. press(1126, 876, 500);// password feld opens
  65. password();
  66. Thread.sleep(1000);
  67. press(913, 721, 500);//plasmapyramid
  68. press(1875, 724, 500);
  69. press(468, 864, 50);//creategame
  70. press(1419, 880, 10000);
  71. System.out.println("Sold! "+i);
  72.  
  73. }
  74. }
  75. static void attack() throws InterruptedException, AWTException
  76. {
  77. for(int j=0;j<15;j++)//attack
  78. {
  79. press(951, 772, 50);//buff up1
  80. press(1910, 772, 50);//buff up1
  81. press(898, 771, 50);//buff up2
  82. press(1864, 773, 50);//buff up2
  83. press(950, 543, 50);//fire
  84. press(1910, 545, 50);//fire
  85. press(896, 613, 50);//heal
  86. press(1850, 616, 50);//heal
  87. press(898, 539, 50);//light
  88. press(1858, 541, 50);//light
  89. press(823, 688, 50);//debuff1
  90. press(1778, 685, 50);//debuff1
  91. press(901, 690, 50);//debuff2
  92. press(1857, 684, 50);//debuff2
  93. press(949, 694, 50);//drain
  94. press(1908, 696, 50);//drain
  95. press(950, 621, 50);//frostbite
  96. press(1911, 619, 50);//frostbite
  97. press(823, 549, 50);//icestorm
  98. press(1777, 540, 50);//icestorm
  99. }
  100. }
  101. static void toright() throws InterruptedException, AWTException
  102. {
  103. for(int j=0;j<20;j++)//move up>right
  104. {
  105. press(650, 398, 50);
  106. press(1541, 394, 50);
  107. }
  108. for(int j=0; j<100; j++)//move right
  109. {
  110. press(680, 566, 50);
  111. press(1611, 582, 50);
  112. }
  113. }
  114. static void toleft() throws InterruptedException, AWTException
  115. {
  116. for(int j=0;j<20;j++)// move up>left
  117. {
  118. press(506, 431, 50);
  119. press(1411, 446, 50);
  120. }
  121. for(int j=0;j<100;j++)// move left
  122. {
  123. press(356, 554, 50);
  124. press(1241, 565, 50);
  125. }
  126. }
  127. static void sell() throws InterruptedException, AWTException
  128. {
  129. press(771, 464, 75);// selects item
  130. press(1647, 455, 75);// selects item
  131. press(566, 902, 75);//sell
  132. press(1530, 892, 75);//sell
  133. press(531, 747, 75);//yes
  134. press(1481, 749, 75);//yes
  135. }
  136. static void password() throws InterruptedException, AWTException
  137. {
  138. Robot bot=new Robot();
  139. bot.keyPress(KeyEvent.VK_Q);
  140. bot.keyRelease(KeyEvent.VK_Q);// password Q
  141. Thread.sleep(500);
  142. bot.keyPress(KeyEvent.VK_O);
  143. bot.keyRelease(KeyEvent.VK_O);// password Q
  144. bot.keyPress(KeyEvent.VK_ENTER);
  145. bot.keyRelease(KeyEvent.VK_ENTER);// enter
  146.  
  147. }
  148. static void press(int x,int y,int t) throws InterruptedException, AWTException
  149. {
  150. Robot bot=new Robot();
  151. bot.mouseMove(x, y);
  152. bot.mousePress(InputEvent.BUTTON1_MASK);
  153. bot.mouseRelease(InputEvent.BUTTON1_MASK);// selects item
  154. Thread.sleep(t);
  155. }
  156.  
  157. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement