Essence1000 Posted June 25, 2014 Share Posted June 25, 2014 Hello all past, and current scripters. Currently just starting to learn java, had some moderate cpp experience, so catching on pretty quick to how things work and stuff, it's actually pretty english as oppose to some less developed languages, just working on how things get put together in this language... anyways, I see most scripts run with the OS client, so I was just wondering in the example of this statement: if(client.getInventory().isFull() == false) { Your statements like client.whatever for example, where can you find the little sub statements that go there for different actions? LIke... If you defined an Enum for both cooking or burning persay, (this being the firemaking case) and I wanted to persay tell the client to check if logs are available in inventory to light, what are the possible statements that are available check or to fit: client.'here'() ? Besides this example of .getinventory() ? Can't say I'm a pro at explaining things, but hope this question comes across clearly with the example I used! Thanks in advance, - Essence Link to comment Share on other sites More sharing options...
Pandemic Posted June 25, 2014 Share Posted June 25, 2014 Right here bud: Client API Check out all of the API here. Link to comment Share on other sites More sharing options...
Jack Posted June 25, 2014 Share Posted June 25, 2014 ctrl+space is your friend. Link to comment Share on other sites More sharing options...
Mysteryy Posted June 25, 2014 Share Posted June 25, 2014 I believe you are asking for something like, inventory.contains("Logs"); Or am I wrong? Link to comment Share on other sites More sharing options...
Essence1000 Posted June 25, 2014 Author Share Posted June 25, 2014 (edited) Thanks guys Appreciate it. And no, I am talking about OSbot2, The example I pulled however, is from OS1, just figured it was sufficient enough to get my point across to ask the question properly , and it was :P And yes, pretty much. Figured it out now with all of the help, thanks again. Edited June 25, 2014 by Essence1000 Link to comment Share on other sites More sharing options...
Joseph Posted June 25, 2014 Share Posted June 25, 2014 I believe you are asking for something like, inventory.contains("Logs"); Or am I wrong? you are correct if he was talking about osbot 2, but he isnt hes talking about osbot 1 Link to comment Share on other sites More sharing options...
Mysteryy Posted June 25, 2014 Share Posted June 25, 2014 you are correct if he was talking about osbot 2, but he isnt hes talking about osbot 1 Ooooh. Why are you using osbot 1? >.> Link to comment Share on other sites More sharing options...
Joseph Posted June 25, 2014 Share Posted June 25, 2014 Thanks guys Appreciate it. And yes, pretty much. Figured it out now with all of the help, thanks again. your welcome, since your trying to learn to script. i would suggest learning it from osbot 2. ctrl+space is your friend. i never knew about this, thanks man love you 1 Link to comment Share on other sites More sharing options...
Essence1000 Posted June 25, 2014 Author Share Posted June 25, 2014 Any suggestions on where to start ? Java is so broad, and half the stuff you learn (even when I tried cpp) has nothing to do with how you apply it in terms of script coding for games and altering things, etc... Link to comment Share on other sites More sharing options...
Jack Posted June 25, 2014 Share Posted June 25, 2014 i never knew about this, thanks man love you I saw it on reddit and i was like Link to comment Share on other sites More sharing options...
Joseph Posted June 25, 2014 Share Posted June 25, 2014 Any suggestions on where to start ? Java is so broad, and half the stuff you learn (even when I tried cpp) has nothing to do with how you apply it in terms of script coding for games and altering things, etc... just a head sup we dont use client as offend for OSbot 2, as we use to do it for OSbot 1. um java is broad but you should learn the basics. Like if/ else if/ else statements, for loops, methods, return types, etc... They are a key fundamental of java. If you want to learn some java go online and start reading up. You could also download a java decompiler. and decompile script from the local script section to help you better understand how scripting works Link to comment Share on other sites More sharing options...
Essence1000 Posted June 25, 2014 Author Share Posted June 25, 2014 Yeah, I pretty much caught on to the if, else if loops etc.. Learning more methods and return types atm, Im checking out W3 school atm for java script... is there any fundamental differences between JAVA and Javascript? Heard there was, idk. Also, do you recommend any decompilers over others? Thanks. Link to comment Share on other sites More sharing options...
Joseph Posted June 25, 2014 Share Posted June 25, 2014 Yeah, I pretty much caught on to the if, else if loops etc.. Learning more methods and return types atm, Im checking out W3 school atm for java script... is there any fundamental differences between JAVA and Javascript? Heard there was, idk. Also, do you recommend any decompilers over others? Thanks. java and javascript are two different things. Also learn arguments of methods ;) Also here the link for the dj (which accepts .jar files) click here Link to comment Share on other sites More sharing options...
blabla123 Posted June 25, 2014 Share Posted June 25, 2014 your welcome, since your trying to learn to script. i would suggest learning it from osbot 2. i never knew about this, thanks man love you How did you survive without ctrl + space? Link to comment Share on other sites More sharing options...
Joseph Posted June 25, 2014 Share Posted June 25, 2014 How did you survive without ctrl + space? This. Link to comment Share on other sites More sharing options...