sirjechtx Posted January 29, 2016 Share Posted January 29, 2016 Hi guys, I want to learn to write my own scripts however I am struggling understanding the API and how to implement certain functions. I've decided I can't do it by myself and would like to know if anyone would be willing to walk me through writing my own script. It's a very simple idea and believe it's a great place to start. If you are interested and can help me please pm me. I don't have a lot of knowledge so please bear that in mind. Thank you. Quote Link to comment Share on other sites More sharing options...
Chris Posted January 29, 2016 Share Posted January 29, 2016 (edited) Do you at least know basic Java? http://osbot.org/forum/topic/91021-basic-java-tutorial-i-found-online-for-anyone-wanting-to-learn-basics-also-contains-link-for-more-information/ Edited January 29, 2016 by Sinatra Quote Link to comment Share on other sites More sharing options...
sirjechtx Posted January 29, 2016 Author Share Posted January 29, 2016 Do you at least know basic Java? http://osbot.org/forum/topic/91021-basic-java-tutorial-i-found-online-for-anyone-wanting-to-learn-basics-also-contains-link-for-more-information/ Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API. 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted January 29, 2016 Share Posted January 29, 2016 Yes I know basics but knowing the basics and trying to figure out the API at the same time is way to much. Ive looked at codes from public scripts and I understand the java parts but I do not get the implementation of the API. hmm..got any snippets you can show me of what you cannot understand? you can post the code like this: 1 Quote Link to comment Share on other sites More sharing options...
sirjechtx Posted January 29, 2016 Author Share Posted January 29, 2016 Ok so with this script I can see what they are doing, I understand how this is supposed to work. What I do not understand is how do you know what to type when wanting to interact with the client. public boolean interactItems(String item1, String item2) throws InterruptedException { if (!this.bank.isOpen() && !this.players.myPlayer().isAnimating() && this.inventory.getItem(new String[]{item1}).interact(new String[0])) { return this.inventory.getItem(new String[]{item2}).interact(new String[0]); } return false; case 2: { if (this.amIAnimating() && this.players.myPlayer().isMoving()) break; this.bank.open(); if (this.sweetcorn && !this.inventory.contains(new int[]{this.rawSweetcorn})) { this.state = "banking"; if (!this.inventory.isEmpty()) { this.bank.depositAll(); What im really trying to understand is where do you learn what to interact with. This script was the tuna potatoes script. The code snippets such as this.amIAnimating or state banking. What is animating do animations have different codes or are they all the same? Im sure its second nature to you but when starting this is really my only issue. Quote Link to comment Share on other sites More sharing options...
BurritoBug Posted January 29, 2016 Share Posted January 29, 2016 u can use [code][/code] Quote Link to comment Share on other sites More sharing options...
sirjechtx Posted January 29, 2016 Author Share Posted January 29, 2016 u can use Thank you Quote Link to comment Share on other sites More sharing options...
KEVzilla Posted January 29, 2016 Share Posted January 29, 2016 I already offered my help a few weeks ago, so just Skype me Quote Link to comment Share on other sites More sharing options...