lfcandy Posted April 4, 2017 Share Posted April 4, 2017 @Apaec I get the same error now for RS2Object now. I have the OSBot 2.4.118 jar in referenced libraries. Eclipse quick-fixed it for me when I clicked on RS2Object and selected import RS2Object(or something similar). not sure what was going on Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 4, 2017 Author Share Posted April 4, 2017 2 minutes ago, lfcandy said: @Apaec I get the same error now for RS2Object now. I have the OSBot 2.4.118 jar in referenced libraries. Eclipse quick-fixed it for me when I clicked on RS2Object and selected import RS2Object(or something similar). not sure what was going on Can you send me a screenshot of the exact error you're getting perhaps? Quote Link to comment Share on other sites More sharing options...
lfcandy Posted April 4, 2017 Share Posted April 4, 2017 (edited) forgot to crop... If I click 'import entity from osbot' the red line goes away and the script works. @Apaec Edited April 4, 2017 by lfcandy Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 4, 2017 Author Share Posted April 4, 2017 18 minutes ago, lfcandy said: forgot to crop... If I click 'import entity from osbot' the red line goes away and the script works. @Apaec Ah, yeah. You need to make sure you import the things that you're using! Quote Link to comment Share on other sites More sharing options...
lfcandy Posted April 4, 2017 Share Posted April 4, 2017 Oh I see now it includes it at the top. thanks Quote Link to comment Share on other sites More sharing options...
szc325 Posted April 15, 2017 Share Posted April 15, 2017 I,m new player Quote Link to comment Share on other sites More sharing options...
skeetballs Posted April 23, 2017 Share Posted April 23, 2017 (edited) Alright so I'm trying to make a basic powerfisher using my very limited knowledge. Here's what I have Quote import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.model.NPC; @ScriptManifest(name = "skeetfish", author = "skeetballs", version = 1.0, info = "", logo = "") public class Todfish extends Script { private enum State { FISH, DROP, WAIT }; private State getState() { NPC fishspot = (NPC) objects.closest("Fishing Spot"); if (!inventory.isEmptyExcept("Feather","Fly fishing rod")) return State.DROP; if (fishspot != null) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case FISH: NPC fishspot = (NPC) objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Lure"); } break; case DROP: inventory.dropAll("Trout","Salmon"); break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); } } Edited April 23, 2017 by skeetballs Quote Link to comment Share on other sites More sharing options...
PressedBar Posted April 25, 2017 Share Posted April 25, 2017 Thank you for this! Quote Link to comment Share on other sites More sharing options...
kaakki Posted May 28, 2017 Share Posted May 28, 2017 Very nice! Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 28, 2017 Author Share Posted May 28, 2017 Just rewrote a few parts of the tutorial since a few sections were unclear and poorly written. If you're reading, please refresh the page! Cheers -Apa Quote Link to comment Share on other sites More sharing options...
Abysm Posted June 13, 2017 Share Posted June 13, 2017 Really nice tutorial! I managed to make my first script ever! It only powerchops oak tho 1 Quote Link to comment Share on other sites More sharing options...
Funfight Posted June 27, 2017 Share Posted June 27, 2017 thank you thank you Quote Link to comment Share on other sites More sharing options...
Jakobson Posted June 28, 2017 Share Posted June 28, 2017 Well writed guide, nice. How did you start your own coding career? Quote Link to comment Share on other sites More sharing options...
Apaec Posted June 28, 2017 Author Share Posted June 28, 2017 9 hours ago, Jakobson said: Well writed guide, nice. How did you start your own coding career? Started out here, found a reputable scripter and annoyed them alot with questions! Quote Link to comment Share on other sites More sharing options...
osrs_pvm Posted July 5, 2017 Share Posted July 5, 2017 (edited) On 6/28/2017 at 5:21 AM, Apaec said: Started out here, found a reputable scripter and annoyed them alot with questions! Thanks for the guide, this will probably be me Edited July 5, 2017 by osrs_pvm Quote Link to comment Share on other sites More sharing options...