Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Tutorial Custom Script Mouse

Joined
Dec 13, 2013
Messages
105
I got the answer from arbiter on how you can replace the standard white dot with a white trail mouse that RuneMate comes with in your script.

It's really simple so I'm just going to post the code for it:

Add this anywhere in the script.
Code:
private Mouse.PathRenderer pathRenderer = new Mouse.PathRenderer() {
        @Override
        public void render(Graphics2D graphics2D) {
            //Paint your mouse here.
        }
    };

Add this to the onStart() method
Code:
Mouse.setPathRenderer(pathRenderer);

If you have managed to do it correctly then it should work.

7424dc36991df5c5e8b0cbe13ab9ac95.gif
 
Joined
Dec 13, 2013
Messages
105
Quick side note if you are using intellij afterwards use it to replace the code into lambda to make it sexy aswell as make you look like an elite java programmer who codes bomb launch programs for ISIS (@Magorium)
 
Joined
Dec 10, 2014
Messages
3,255
Quick side note if you are using intellij afterwards use it to replace the code into lambda to make it sexy aswell as make you look like an elite java programmer who codes bomb launch programs for ISIS (@Magorium)

Or just learn how lambdas and do it that way to begin with ;)
 
Top