Tutorial Custom Script Mouse

Discussion in 'Tutorials & Resources' started by BoneCode, Jan 5, 2015.

  1. 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 bot.

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

    Add this anywhere in the script bot.
    Code (Text):
    1. private Mouse.PathRenderer pathRenderer = new Mouse.PathRenderer() {
    2.         @Override
    3.         public void render(Graphics2D graphics2D) {
    4.             //Paint your mouse here.
    5.         }
    6.     };
    Add this to the onStart() method
    Code (Text):
    1. Mouse.setPathRenderer(pathRenderer);
    If you have managed to do it correctly then it should work.

    Falixus and Arbiter like this.
  2. 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)
    Falixus likes this.
  3. Looking good, man.
    Keep it up.
  4. Thx u it means a lot
  5. Pass your code m8.
  6. g.fillSquare("Hello World", (double) 1, (double) Mouse.getZ());
  7. Or just learn how lambdas and do it that way to begin with ;)
  8. or use intellij
  9. ¿Por qué no los dos?
    dex7111 likes this.
  10. I ain't no illegal immi

Share This Page