Jump to content

Sebastian

Members
  • Posts

    283
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Sebastian

  1. Trinity fixed the issue. God bless haha. But the problem now is. I'm cutting yew logs at varrock castle. There are 3 tree's. 2 standing next to each other, and one is a bit away. We tried to let the character walk to another yew tree, if the tree's i'm standing at are null. This is the code we have so far. But everything we tried didn't work. case CHOP: Entity treeToChop = getObjects().closest(tree); if (treeToChop != null){ if (treeToChop.getPosition().distance(myPosition()) <= 5){ //checks distance to your player if (treeToChop.isVisible()){ if (treeToChop.interact("Chop down")){ new ConditionalSleep(2500) { @Override public boolean condition() throws InterruptedException { return myPlayer().isAnimating(); } }.sleep(); } } else { getCamera().toEntity(treeToChop); } } else { log("Walking"); getLocalWalker().walk(treeToChop); //walks if farther than 6 tiles } } else { log("Tree is null"); }
  2. Hey! Thanks for the reply. I will try this after dinner. Thing is, i have a GUI. Works on willows and oaks. But the yew he cant find. Even tho i'm standing next to it. Maybe insert the id of the yew instead of the name? And for the lower case vars. Thanks, really apriciate it!
  3. Alright, thanks. Will contact you later this day.
  4. Will do. Problem is that i'm free from school in 5 mins. Can i come back later this day?
  5. Have set a log for every tree type. Willow and Oak logs perfectly. But the Yew log doesn't show up.. so i'm guessing it doesn't read that peace of code.. [INFO][Bot #1][11/30 02:09:51 PM]: Started script : SBWoodcutter [INFO][Bot #1][11/30 02:09:52 PM]: Chopping Oak tree [INFO][Bot #1][11/30 02:09:56 PM]: Script SBWoodcutter has paused! [INFO][Bot #1][11/30 02:09:58 PM]: Script SBWoodcutter has resumed! [INFO][Bot #1][11/30 02:09:58 PM]: Chopping Oak tree case CHOP: Entity Yew = objects.closest("Yew"); Entity Willow = objects.closest("Willow"); Entity Oak = objects.closest("Oak"); if (Willow != null) { if (Willow.isVisible()) { Willow.interact("Chop down"); log("Chopping Willow tree"); } else { sleep(random(500, 700)); } } else if (Oak != null) { if (Oak.isVisible()) { Oak.interact("Chop down"); log("Chopping Oak tree"); } else { sleep(random(500, 700)); } } else if (Yew != null) { if (Yew.isVisible()) { Yew.interact("Chop down"); log("Chopping Yew tree"); } else { sleep(random(500, 700)); } } break;
  6. Will do. Just put some logs in every case? Like: "Going to bank", "Chopping willows" bla bla?
  7. I will look into interactionEvent. But i find it very difficult to understand the api somehow.. private State getState() { Entity treeE = objects.closest(tree); if (inventory.isFull()) return State.BANK; if (treeE != null && treeE.isVisible()) if (!myPlayer().isAnimating()) return State.CHOP; return State.WAIT; } private enum State { CHOP, WAIT, BANK, // DROP };
  8. Hi Osbot scripters! I have been f*cking around with this all morning. I have no idea what i'm doing wrong. removing the } else { wont work either.. Oaks and Willows are working. Yews are not.. EDIT: Tried Else if statements. Didn't work either. case CHOP: Entity Yew = objects.closest("Yew"); Entity Willow = objects.closest("Willow"); Entity Oak = objects.closest("Oak"); if (Willow != null) { if (Willow.isVisible()) { Willow.interact("Chop down"); } else { sleep(random(500, 700)); } } else if (Oak != null) { if (Oak.isVisible()) { Oak.interact("Chop down"); } else { sleep(random(500, 700)); } } else if (Yew != null) { if (Yew.isVisible()) { Yew.interact("Chop down"); } else { sleep(random(500, 700)); } } case CHOP: Entity Willow = objects.closest("Willow"); if (Willow != null) { if (Willow.isVisible()) { Willow.interact("Chop down"); } else { sleep(random(500, 700)); } } else { Entity Oak = objects.closest("Oak"); if (Oak != null) { if (Oak.isVisible()) { Oak.interact("Chop down"); } else { sleep(random(500, 700)); } } else { Entity Yew = objects.closest("Yew"); if (Yew != null) { if (Yew.isVisible()) { Yew.interact("Chop down"); } else { sleep(random(500, 700)); } } } }
  9. Very awesome! Gratz on release bro!
  10. Very nice! Perfect for 'People are awesome' video's in my opinion! EDIT: Yep, tried watching the video above with your music. Syncs almost perfect lol.
  11. Welcome to the forums. Enjoy your stay!
  12. Nope. didn't too.. and i'm from 1993..
  13. I have a macbook too. Since the newest update of OSX my laptop had the same problem as yours. I think that you can only fix this by setting up a new osx on your macbook. I did that and i have no problems anymore whatsoever. Good luck tho!
  14. Hey everyone, I have a Ubuntu 14.04 server at home. I was wondering if i can only setup a proxy for that server. Also, i only want it to work with OSbot. Because i have school related stuff on my server that i need to access via the internet. Very new to proxy's, so thats why i ask.
  15. Who still downloads? #SpotifyGod Also, maybe try the vid2mp3 website.
×
×
  • Create New...