Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import net.xotiksys.api.ActiveScript;
- import net.xotiksys.api.Manifest;
- import net.xotiksys.api.methods.input.Mouse;
- import java.awt.Color;
- import java.awt.Point;
- @Manifest(author = "Magic", description = "Auto buys an item specified", name = "Auto Buyer", version = 0.1)
- public class AutoBuyer extends ActiveScript {
- private static final Point ITEM = new Point(238, 225);
- /** Coordinates of the item you wish to buy */
- private static final Color MOUSE_COLOR = new Color(165, 55, 0, 100);
- @Override
- public int script() {
- Mouse.setSpeed(1);
- Mouse.hop(ITEM);
- Mouse.click(ITEM, false);
- ITEM.translate(0, 71);
- Mouse.hop(ITEM);
- Mouse.click(ITEM, true);
- ITEM.translate(0, -71);
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment