· 7 years ago · Nov 30, 2018, 05:20 PM
1import java.io.BufferedWriter;
2import java.io.IOException;
3import java.awt.event.KeyEvent;
4import java.util.Scanner;
5
6import java.io.FileReader;
7import java.io.FileWriter;
8import javax.swing.JFrame;
9import javax.swing.JOptionPane;
10import org.powerbot.game.api.methods.Environment;
11
12import org.powerbot.concurrent.strategy.Strategy;
13import org.powerbot.game.api.ActiveScript;
14import org.powerbot.game.api.Manifest;
15import org.powerbot.game.api.methods.Game;
16import org.powerbot.game.api.methods.Widgets;
17import org.powerbot.game.api.methods.input.Keyboard;
18import org.powerbot.game.api.methods.widget.Lobby;
19import org.powerbot.game.api.util.Time;
20
21@Manifest(name = "Account Creator", authors = {"Noneo"}, description = "Creates new trial accounts, teleports to Lumbridge, and turns off tutorial stuff.")
22public class Accountcreator extends ActiveScript {
23
24 public static int emailCurrent = 0;
25 public static int password = 123456789;
26 public static int age = 21;
27 public static void incrementedEmail(){
28 emailCurrent++;
29 }
30 public void setup(){
31 }
32public static void runCreator() {
33//while(emailCurrent < 1001)
34
35 //click on create new account
36 Widgets.get(596, 60).click(true);
37 //enter email
38 if(Widgets.get(673, 98).click(true)) {
39 Keyboard.sendText("test", false);
40 }
41 //enter email again
42 if(Widgets.get(673, 117).click(true)) {
43 Time.sleep(100, 200);
44 Keyboard.sendText("runetestaccount" + emailCurrent + "@gmail.com", false);
45 }
46 //enter password
47 if(Widgets.get(673, 88).click(true)) {
48 Time.sleep(100, 200);
49 Keyboard.sendText(password, false);
50 }
51 //enter passowrd again
52 if(Widgets.get(673, 78).click(true)) {
53 Time.sleep(100, 200);
54 Keyboard.sendText(password, false);
55 }
56 //enter age
57 if(Widgets.get(673, 124).click(true)) {
58 Time.sleep(100, 200);
59 Keyboard.sendText(age, false);
60 }
61 //uncheck the check box
62 Widgets.get(673, 40).click(true);
63 //click on continue
64 Widgets.get(673, 68).click(true);
65 Time.sleep(100, 200);
66 //click the x on email verification screen
67 Widgets.get(906, 296).click(true);
68 incrementedEmail();
69}
70}