1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial Custom Script Mouse

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

  1. BoneCode

    Joined:
    Dec 13, 2013
    Messages:
    105
    Likes Received:
    26
    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:
    26
    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:
    26
    Thx u it means a lot
    wahey
     
  5. Infinite Inferno

    Infinite Inferno The Pip Collector

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

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

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    Or just learn how lambdas and do it that way to begin with ;)
     
  8. BoneCode

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

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    ¿Por qué no los dos?
     
    dex7111 likes this.
  10. BoneCode

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

Share This Page

Loading...