12we12qw12 Posted May 5, 2019 Share Posted May 5, 2019 I am new to scripting having troubles getting my script sent to my OsBot application. IntelliJ is sending the script to C:\Users\Me\OSBot\Scripts but this is not showing up on the OsBot application. Yes I have tried refreshing. Any feedback would be very helpful. ty Quote Link to comment Share on other sites More sharing options...
FuryShark Posted May 5, 2019 Share Posted May 5, 2019 Do you have the script manifest Quote Link to comment Share on other sites More sharing options...
12we12qw12 Posted May 5, 2019 Author Share Posted May 5, 2019 1 minute ago, FuryShark said: Do you have the script manifest I do have this skeleton on my script, i have one that is just the skeleton but it wont send. My problem is that the scripts are located in different files possible? Or something could be wrong on my script? Kind of clueless. Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted May 5, 2019 Share Posted May 5, 2019 Take a look at this example script Spoiler import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "Imthabawse", info = "Catches Shrimps and Banks when full", logo = "", name = "Shrimper", version = 1) public class Shrimper extends Script { private Area fishingArea = new Area(3239, 3142, 3245, 3155); @Override public int onLoop() throws InterruptedException { if(canFish()) { catchShrimp(); }else{ bankShrimp(); } return(random(500,750)); } private boolean canFish() { return !getInventory().isFull() && getInventory().contains("Small fishing net") && !getBank().isOpen(); } private boolean readyToCatch() { return !myPlayer().isAnimating() && fishingArea.contains(myPlayer()); } private void catchShrimp() throws InterruptedException { NPC netSpot = getNpcs().closest(fishingArea,"Fishing spot"); if(!getDialogues().isPendingContinuation() && readyToCatch() && netSpot != null && netSpot.interact("Net")) { log("Shrimpin!"); sleep(random(1200,1350)); getMouse().moveOutsideScreen(); new ConditionalSleep(5000) { @Override public boolean condition() { return myPlayer().isAnimating(); } }.sleep(); }else if(!fishingArea.contains(myPlayer())) { log("Walking back to fishing area.."); getWalking().webWalk(fishingArea); }else if(getDialogues().isPendingContinuation()) { sleep(random(550,750)); getDialogues().clickContinue(); } } private void bankShrimp() throws InterruptedException { if(getInventory().isFull() && !myPlayer().isAnimating() && !Banks.LUMBRIDGE_UPPER.contains(myPlayer())) { log("Walking to bank.."); getWalking().webWalk(Banks.LUMBRIDGE_UPPER); }else if(!getBank().isOpen() && Banks.LUMBRIDGE_UPPER.contains(myPlayer())) { log("Banking Shrimps.."); getBank().open(); }else if(getInventory().contains("Raw shrimps","Raw anchovies")) { getBank().depositAll("Raw shrimps","Raw anchovies"); }else if(!getInventory().contains("Raw shrimps","Raw anchovies")) { getBank().close(); } } } Make sure you have all the right imports and also in Project structure under Artifacts you have your JAR Output directory set to OSbot\Scripts If you need further help check this out: Will teach you everything you need to get started. Hope this helps Quote Link to comment Share on other sites More sharing options...
12we12qw12 Posted May 5, 2019 Author Share Posted May 5, 2019 Solved - had to uninstall and reinstall OsBot. I think that I had multiple copies of OsBot making it complicated for me. Thanks for all the messages they actually did help me. Quote Link to comment Share on other sites More sharing options...