Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.AWTException;
- import java.awt.Robot;
- import java.awt.event.InputEvent;
- import java.awt.event.KeyEvent;
- public class tryhardplasma {
- public static void main(String[] args) throws InterruptedException, AWTException
- {
- int i =0;
- while (true)
- {
- toright();
- attack();
- toleft();
- attack();
- toright();
- attack();
- toleft();
- attack();
- i++;
- System.out.println(i);
- 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)
- {
- press(41, 227, 250);//menue
- press(1004, 226, 250);
- press(302, 244, 250);//inventory
- press(1267, 238, 250);
- for(int j=0;j<80;j++)
- {
- sell();
- }
- press(627, 335, 250);
- press(1584, 334, 250);
- for (int j=0;j<300;j++)
- {
- sell();
- }
- press(699,339,250);
- press(1656,328,250);
- for(int j=0;j<80;j++)
- {
- sell();
- }
- press(768, 335, 250);
- press(1733, 327, 250);
- for(int j=0;j<80;j++)
- {
- sell();
- }
- press(64, 238, 50);//back
- press(1028, 236, 1000);
- i++;
- System.out.println(i);
- }
- //remake
- press(41, 225, 500);//menue
- press(1006, 218, 500);
- press(157, 892, 500);//worldmap
- press(1114, 907, 500);
- press(195, 876, 500);//hostgame
- press(1152, 875, 500);
- press(164, 876, 500);//password field open
- password();
- press(1126, 876, 500);// password feld opens
- password();
- Thread.sleep(1000);
- press(913, 721, 500);//plasmapyramid
- press(1875, 724, 500);
- press(468, 864, 50);//creategame
- press(1419, 880, 10000);
- System.out.println("Sold! "+i);
- }
- }
- static void attack() throws InterruptedException, AWTException
- {
- for(int j=0;j<15;j++)//attack
- {
- press(951, 772, 50);//buff up1
- press(1910, 772, 50);//buff up1
- press(898, 771, 50);//buff up2
- press(1864, 773, 50);//buff up2
- press(950, 543, 50);//fire
- press(1910, 545, 50);//fire
- press(896, 613, 50);//heal
- press(1850, 616, 50);//heal
- press(898, 539, 50);//light
- press(1858, 541, 50);//light
- press(823, 688, 50);//debuff1
- press(1778, 685, 50);//debuff1
- press(901, 690, 50);//debuff2
- press(1857, 684, 50);//debuff2
- press(949, 694, 50);//drain
- press(1908, 696, 50);//drain
- press(950, 621, 50);//frostbite
- press(1911, 619, 50);//frostbite
- press(823, 549, 50);//icestorm
- press(1777, 540, 50);//icestorm
- }
- }
- static void toright() throws InterruptedException, AWTException
- {
- for(int j=0;j<20;j++)//move up>right
- {
- press(650, 398, 50);
- press(1541, 394, 50);
- }
- for(int j=0; j<100; j++)//move right
- {
- press(680, 566, 50);
- press(1611, 582, 50);
- }
- }
- static void toleft() throws InterruptedException, AWTException
- {
- for(int j=0;j<20;j++)// move up>left
- {
- press(506, 431, 50);
- press(1411, 446, 50);
- }
- for(int j=0;j<100;j++)// move left
- {
- press(356, 554, 50);
- press(1241, 565, 50);
- }
- }
- static void sell() throws InterruptedException, AWTException
- {
- press(771, 464, 75);// selects item
- press(1647, 455, 75);// selects item
- press(566, 902, 75);//sell
- press(1530, 892, 75);//sell
- press(531, 747, 75);//yes
- press(1481, 749, 75);//yes
- }
- static void password() throws InterruptedException, AWTException
- {
- Robot bot=new Robot();
- bot.keyPress(KeyEvent.VK_Q);
- bot.keyRelease(KeyEvent.VK_Q);// password Q
- Thread.sleep(500);
- bot.keyPress(KeyEvent.VK_O);
- bot.keyRelease(KeyEvent.VK_O);// password Q
- bot.keyPress(KeyEvent.VK_ENTER);
- bot.keyRelease(KeyEvent.VK_ENTER);// enter
- }
- static void press(int x,int y,int t) throws InterruptedException, AWTException
- {
- Robot bot=new Robot();
- bot.mouseMove(x, y);
- bot.mousePress(InputEvent.BUTTON1_MASK);
- bot.mouseRelease(InputEvent.BUTTON1_MASK);// selects item
- Thread.sleep(t);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement