Jump to content

dokato

Members
  • Posts

    129
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by dokato

  1. Excuse me, better things to do? I am a paying customer. If fixing the problem to get my money isn't one of their "better" things to do, then I can take my money elsewhere.

     

    But thankfully, I know this isn't the case. Hopefully they come out with a fix very soon.

     

    Edit: Typo.

     

    not soon enough, couldnt bot properly for 2 days and lost alot of money cuz of this

  2. So while this happens, is onLoop still being called?

    If this is the case, it's your script. If not, and you have no while loops, some API method is most likely blocking.

    The only method im aware of which may do that is localwalker#walk.

    It shouldn't be difficult to check where it goes wrong if you just add a shitload of log messages.

     

    no while loops 

  3. ok, so i never had this problem before and all my scripts used to run good.

    But now it seems the bot or my script (idk) takes like random breaks of like 30 seconds every minute or so, while it should be just doing its thing. 

    It just freezes and waits, like the bot is afk and then resumes. 

    This used to happens before to but now its waaay longer and it rlly effects my exp/h and gp/h.

    Standard client (not mirror)

     

    Can I ifx this?

    Any reply would be appreciated.

  4. Hi

    Im working on a bot that makes crude wooden chairs (lvl 1) in your house.

     

    The problem is, after opening the interface/menu with all the different chairs, I've got no clue how i should make my mouse go to the "Crude wooden chair" and let it select the "Build" option.

     

    Ive cheked the API on interfaces and menus and stuff but it's still a little confusing to me.

    Can anyone help me with this pls?

     

    ALRDY FIXED (since no one replied)

    I used the colorPicker for a boolean for the interface and moving mouse to rectangle stuff

  5. So I want my mouse to move to a entity, right click on it and then move to an option from the "Choose option" menu but not click on it.

    I already have this for example:

     

    Entity door = objects.closest("Door");

    EntityDestination mouseDoor = new EntityDestination(getBot(),door);

     

    getMouse().click(mouseChest, true); 

     

    now the mouse just moves to the door and right clicks on it. But what should i add to make it even move to the "Open" action but not click on it yet?

  6. Is it possible to determin wether ANOTHER player (someone you dont know the name of) is in a certain area with like a boolean? (for example the area where u are in). Is there a method for that or do u have to create something urself?

     

    for example:

     

    final Area YOUR_AREA = new Area(bla,bla,bla,bla);

     

    if(YOUR_AREA.contains(/*a player*/)){

           //...

    }

     

     

  7. What mouse event are you using. 

     

    Did you override the client mouse event and or register a new listener?

     

    all i have is what i posted + some imported thingy's:

     

    import java.awt.event.MouseEvent;

    import java.awt.event.MouseListener; //it says is not used

  8. put a log inside of your event and see if it registers the mouse press. This is how you should start debugging. Start at a high level and work your way down seeing what works and what doesnt.

     

    doesnt register, as expected

  9. Ok so I've got this  somewhere in my script:

     

        boolean showPaint=true;
        
        public void mousePressed(MouseEvent e) {
        Rectangle hideButton = new Rectangle(473,346,41,32);
            if(hideButton.contains(e.getPoint())) {
            showPaint = !showPaint;
            }
         }
     
    and in my onPaint there is this:
     
    if(showPaint){
         //paint stuff
    }else{
         //something else
    }
     
    But that doesnt work.
    Do i have to put the method mousePressed(MouseEvent e) somewhere else? cuz i've no clue what to do.
     
     
  10. ok so keep this in the onStart

     GUI window = new GUI();
    

    Your gui class extend JFrame so use it. What you did was created a new jFrame instance instead of using the classes JFrame. So delete

    frame = new JFrame();
    private JFrame frame;
    

    you will get a few error with "frame." simply remove it and it should be good.

     

    finally at the end of gui constructor the last line should be 

    Gui() {
    //stuff
    setVisible(true);
    }
    
    

    no need for setVisible in the onstart since its in the constructor 

     

    still doesnt work :(

    and the script doesnt startup

×
×
  • Create New...