Jump to content

RickyD

Members
  • Posts

    149
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by RickyD

  1. This is a great section to help you start scripting: http://osbot.org/forum/forum/250-tutorials/
  2. in onLoop you could do something like: Position myPosition = new Position(myPlayer().getPosition()); Area myRadius = new Area(new Position(myPosition.getX()+2, myPosition.getY()+2,0), new Position(myPosition.getX()-2, myPosition.getY()-2,0)); the "myRadius" creates a square radius around you. I'm not sure how a mining script works so you have to figure out where you'd want to logically ask if a there are only null rocks in "myRadius" if(myRadius.contains(NULLROCK.getPosition)){ //all the rocks here are NULL, dropping inventory... }
  3. private State getState() { Entity rock = objects.closest(targetRock); // Dropping state if(inventory.isFull()){ return State.DROP; }else{ if(myPlayer().isAnimating()){ return State.SLEEP; }else{ if(rock != null){ return State.MINE; }else{ return State.SLEEP; } } } }
  4. instead of !inventory.isEmptyExcept(1269) use inventory.isFull() And for if (rock != null && !myPlayer().isAnimating()) return State.MINE; return State.SLEEP; You cant return two states at once. Just use MINE in that one Add sleep in case MINE if its spamclicking
  5. He needs an account with the necessary ores to test and debug his script. I'll probably make a basic free one. Just got my git account.
  6. RickyD

    VIP help

    I PMed Divinity
  7. RickyD

    VIP help

    Thanks guys. If a mod sees this, can you help me out?
  8. RickyD

    VIP help

    So i had VIP and i cancelled it. It says VIP expires August 19th but I've already been demoted to regular member status. Why?
  9. definitely after santa hat became big where I made it my goal to be that rich irl
  10. Bought one for PC, thanks
  11. I could use a PC one. added you
  12. So I set up GUI to enter text. I added the jbutton. I'd like to know how and where (recommendations) to submit entered text.
  13. I have variables in my secondary class I want to implement in the onPaint of my main class. How would I pull in those vars?
×
×
  • Create New...