Swizzbeat Posted February 19, 2014 Share Posted February 19, 2014 (edited) Was trying to figure this out and stumbled upon an old thread on another botting site with the code. All credit goes to a member over there by the name of Enfilade. Needed variable in your main class (where you'll be doing the painting): private final LinkedList<MousePathPoint> mousePath = new LinkedList<MousePathPoint>(); The MousePathPoint class (could also of course just be made into an inner class): import java.awt.Point; //ALL CREDITS TO ENFILADE class MousePathPoint extends Point { private long finishTime; private double lastingTime; public MousePathPoint(int x, int y, int lastingTime) { super(x, y); this.lastingTime = lastingTime; finishTime = System.currentTimeMillis() + lastingTime; } public boolean isUp() { return System.currentTimeMillis() > finishTime; } } And the code that should go into your onPaint method: while (!mousePath.isEmpty() && mousePath.peek().isUp()) mousePath.remove(); Point clientCursor = client.getMousePosition(); MousePathPoint mpp = new MousePathPoint(clientCursor.x, clientCursor.y, 300); //1000 = lasting time/MS if (mousePath.isEmpty() || !mousePath.getLast().equals(mpp)) mousePath.add(mpp); MousePathPoint lastPoint = null; for (MousePathPoint a : mousePath) { if (lastPoint != null) { g.setColor(Color.YELLOW); //trail color g.drawLine(a.x, a.y, lastPoint.x, lastPoint.y); } lastPoint = a; } Edited February 19, 2014 by Swizzbeat 1 Link to comment Share on other sites More sharing options...
redsub Posted April 20, 2014 Share Posted April 20, 2014 Thanks for this Link to comment Share on other sites More sharing options...
lazyy Posted April 20, 2014 Share Posted April 20, 2014 MousePath can't be resolved?? Link to comment Share on other sites More sharing options...
lolmanden Posted April 22, 2014 Share Posted April 22, 2014 Good work ;) Link to comment Share on other sites More sharing options...
lazyy Posted April 22, 2014 Share Posted April 22, 2014 Good work do you even script? ? Link to comment Share on other sites More sharing options...
Fisk4rn Posted April 22, 2014 Share Posted April 22, 2014 do you even script? ? Probably just wants the post count or something. Link to comment Share on other sites More sharing options...
lolmanden Posted April 22, 2014 Share Posted April 22, 2014 do you even script? ? Of course not, In it for post count. Link to comment Share on other sites More sharing options...