Tutorial Custom Script Mouse

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

  1. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    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.

    [​IMG]
     
    Falixus and Arbiter like this.
  2. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    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. Falixus

    Falixus Guest

    Looking good, man.
    Keep it up.
    wahey
     
  4. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    Thx u it means a lot
    wahey
     
  5. Infinite Inferno

    Joined:
    Sep 14, 2014
    Messages:
    415
    Likes Received:
    115
    Pass your code m8.
     
  6. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    g.fillSquare("Hello World", (double) 1, (double) Mouse.getZ());
     
  7. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,779
    Likes Received:
    731
    Or just learn how lambdas and do it that way to begin with ;)
     
  8. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    or use intellij
     
  9. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,779
    Likes Received:
    731
    ¿Por qué no los dos?
     
    dex7111 likes this.
  10. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    28
    I ain't no illegal immi
     

Share This Page

Loading...