HanixD Posted February 12, 2016 Posted February 12, 2016 Awesome tutorial man thank you so much, by the way can you give me the link to your graphical part? Else, perfect guide.
Birdaking Posted February 15, 2016 Posted February 15, 2016 That was actually alot less complicated than i thought it would be, i do need to go back and read over a couple of things again but im really looking forward t getting stuck into anther guide =]
Normallan Posted February 16, 2016 Posted February 16, 2016 pls help, after i installed Eclipse i try to run the eclipse .exe file for application and i get a huge error msg
The Hero of Time Posted March 4, 2016 Posted March 4, 2016 this is pretty weird when you're used to C#, i understand everything tho and thanks for the basic explanation pls help, after i installed Eclipse i try to run the eclipse .exe file for application and i get a huge error msg do you have java JDK installed? this is needed. http://www.oracle.com/technetwork/java/javase/downloads/index.html 1
kerklais Posted March 8, 2016 Posted March 8, 2016 (edited) Just asking how i can get any item what are in the bank? Thx public int onLoop() throws InterruptedException { switch (getState()) { case BANK: Entity stall = objects.closest("Bank Booth"); if (stall != null) { stall.interact("Bank"); } break; case GET: bank.getItem("Maple Logs"); break; case WAIT: sleep(random(500, 700)); break; default: break; } return random(200, 300); Edited March 9, 2016 by kerklais
Vilius Posted March 13, 2016 Posted March 13, 2016 Just asking how i can get any item what are in the bank? Thx public int onLoop() throws InterruptedException { switch (getState()) { case BANK: Entity stall = objects.closest("Bank Booth"); if (stall != null) { stall.interact("Bank"); } break; case GET: bank.getItem("Maple Logs"); break; case WAIT: sleep(random(500, 700)); break; default: break; } return random(200, 300); This will withdraw a specific numbergetBank().withdraw("item", 5); This will withdraw all getBank().withdrawAll("item");
one_punch Posted May 15, 2016 Posted May 15, 2016 Hey, i had a question, which program language do u recommend to make a osbot script? I have only little knowledge about python.
Vilius Posted May 15, 2016 Posted May 15, 2016 Hey, i had a question, which program language do u recommend to make a osbot script? I have only little knowledge about python. Java is the only language you can do it.
one_punch Posted May 15, 2016 Posted May 15, 2016 Java is the only language you can do it. oh oke, is java hard to learn?
Vilius Posted May 15, 2016 Posted May 15, 2016 oh oke, is java hard to learn? Depends on you, if you want to learn it you will, if not then no bueno
tony3 Posted May 16, 2016 Posted May 16, 2016 If i thoroughly follow all the tutorials and start practicing a lot of scripting will i eventually be able to sell my scripts on the forums and help contribute as a fellow team member?
hace_ Posted May 16, 2016 Posted May 16, 2016 Trying to make a barbarian power fisher! The bot drops all of the fish but it doesn't try to fish them! private enum State { FISH, DROP, WAIT }; private State getState() { Entity fishspot = objects.closest("Fishing spot"); if (!inventory.isEmptyExcept("Feather","Barbarian rod")) return State.DROP; if (fishspot != null) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case FISH: Entity fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); } break; case DROP: inventory.dropAll("Leaping trout","Leaping salmon","Leaping sturgeon"); break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); }
Chris Posted May 16, 2016 Posted May 16, 2016 Trying to make a barbarian power fisher! The bot drops all of the fish but it doesn't try to fish them! private enum State { FISH, DROP, WAIT }; private State getState() { Entity fishspot = objects.closest("Fishing spot"); if (!inventory.isEmptyExcept("Feather","Barbarian rod")) return State.DROP; if (fishspot != null) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case FISH: Entity fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); } break; case DROP: inventory.dropAll("Leaping trout","Leaping salmon","Leaping sturgeon"); break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); } Entity fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); } fishing spots are NPC's so NPC fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); }