Jump to content

Rumple

Members
  • Posts

    184
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Rumple

  1. I think im going to cry. I tried this loop 50 different ways nothing seems to work. So even though shop has stock it keeps trying to hop saying there is no stock. @Override public int onLoop() throws InterruptedException { RS2Widget shop = getWidgets().get(300, 1, 0); if(this.hopper.isHopping()) { return this.hopper.execute(); } if (getInventory().contains("Coins")) { log("Had coins and started @ crew"); crewMember(); sleep(random(250)); if (shop != null && sodaToBuy()) { log("Soda in stock buying soda!"); buySoda(); } if (!sodaToBuy()) { if (sandToBuy()) buySand(); } if(!sandToBuy() && !sodaToBuy() && shop != null) { log("No Soda or Sand Hopping!"); widgets.closeOpenInterface(); this.hopper.hop(FrostHopper.HopMode.P2P); } }else if (!getInventory().contains("Coins")) { log("Had no coins started @ crew"); sleep(random(250)); bankAll(); sleep(random(250)); withdrawCoins(); sleep(random(250)); } else if (getInventory().isFull()){ log("Inv full going to bank!"); walkToBank(); sleep(random(250)); bankAll(); } return 250; } }
  2. So one question why do you check null and less than 0. Shouldn’t I be checking to see if there is more than 0? okay so If I need to check if it’s false do I just add .equals(False) or == false? Because if both are false I need to hop worlds.
  3. That’s what he is saying it continues to draw a box over “Please wait” when it should be sleeping.
  4. He is trying to explain to you that he does not want the bot to draw a box around the word “Please waiting” he wants the script to sleep when it does not see “Click to Continue”. And the only problem is that OSBot does not have the “Please wait” widget available. He is a perfectionist. His script already clicks to continue he just wants it to sleep when it doesn’t ask to click. I think it’s an anti ban method he is working on for Botting multiple tut island accounts.
  5. Don’t I have to specify which widget I’m using as I have a few that I am checking. These are just the ones that are getting flagged because I’m checking if there is stock in shop?!
  6. I keep getting this error. I believe I called everything correctly. private boolean sodaToBuy(){ RS2Widget sodaAsh = getWidgets().get(300, 16, 23); if(sodaAsh.getItemAmount() < 0) return true; else return false; } private boolean sandToBuy(){ RS2Widget bucketSand = getWidgets().get(300, 16, 21); if(bucketSand.getItemAmount() < 0) return true; else return false; } Loop @Override public int onLoop() throws InterruptedException { RS2Widget shop= getWidgets().get(300, 1, 1); if(this.hopper.isHopping()) { return this.hopper.execute(); } if (getInventory().contains("Coins") && atCrew() == true) { log("Had coins and started @ crew"); crewMember(); sleep(random(250)); }else if (getInventory().contains("Coins") && atBank() == true){ walkToCrew(); sleep(random(250)); }else if (!getInventory().contains("Coins") && atCrew() == true) { log("Had no coins started @ crew"); walkToBank(); sleep(random(250)); bankAll(); sleep(random(250)); withdrawCoins(); sleep(random(250)); }else if (!getInventory().contains("Coins") && atBank() == true){ log("Had no coins started @ bank"); bankAll(); sleep(random(250)); withdrawCoins(); sleep(random(250)); }else if (sodaToBuy() == true) { buySoda(); }else if (sodaToBuy() == false){ if (sandToBuy() == true){ buySand(); } }else if (sandToBuy() == false && sodaToBuy() == false){ this.hopper.hop(FrostHopper.HopMode.P2P); }else if (getInventory().isFull()){ walkToBank(); sleep(random(250)); bankAll(); } return 250; } }
  7. Thats the thing is that you do not stop animating after 5 minutes u keep pumping except it is without exp. I either have to set a timer for 5 mins or check to make sure im getting str exp before continuing to pump.
  8. Steals seeds from stall. Does not detect Olivia so it will continue to click so baby sit if u want. Good for 10 hp ironmen that need seeds to start farmining/birdhouses. Leave a like or Rep if you do use it. import java.awt.*; import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Toxic/Rumple", info = "Steals seeds from Seed Stall", name = "Seed thiever", version = 0, logo = "") public class SeedStall extends Script { private long startTime; private final Color transBackground = new Color(0, 0, 0, 178); private final Color rsOrange = new Color(252, 155, 31); private final Font font = new Font("Helvetica", 0, 12); public static Area SSA = new Area(3076,3251,3074,3248); @Override public void onStart() { this.startTime = System.currentTimeMillis(); this.getExperienceTracker().start(Skill.THIEVING); log("Let's get started!"); } @Override public int onLoop() throws InterruptedException { RS2Object stall = getObjects().closest(SSA,"Seed Stall"); Position myPos = myPosition(); Position targetPos = new Position(3074, 3249, 0); if (getInventory().isFull()) { RS2Object bank = getObjects().closest("Bank Booth"); if(bank != null){ bank.interact("Bank"); sleep(random(250)); getBank().depositAll(); } } else if (stall != null && !myPlayer().isAnimating() && myPos.equals(targetPos)) { log("Found stall stealing"); stall.interact("Steal from"); } return random(8000); } @Override public void onExit() { log("Thanks for running my Seed Thiever!"); } @Override public void onPaint(Graphics2D g) { g.setFont(this.font); g.setColor(this.transBackground); g.fillRect(1, 250, 225, 88); g.setColor(this.rsOrange); g.drawRect(1, 250, 225, 88); g.drawString("Toxic Seed Stall by Toxic/Rumple", 10, 265); g.drawString("Runtime: " + this.formatTime(System.currentTimeMillis() - this.startTime), 10, 285); g.drawString("Thieving XP (p/h): " + this.getExperienceTracker().getGainedXP(Skill.THIEVING) + " (" + this.getExperienceTracker().getGainedXPPerHour(Skill.THIEVING) + ")", 10, 300); g.drawString("Thieving Level: " + this.getSkills().getStatic(Skill.THIEVING) + " (" + this.getExperienceTracker().getGainedLevels(Skill.THIEVING) + ")", 10, 315); g.drawString("Time to level: " + this.formatTime(this.getExperienceTracker().getTimeToLevel(Skill.THIEVING)), 10, 330); } private String formatTime(long time) { long s = time / 1000L; long m = s / 60L; long h = m / 60L; s %= 60L; m %= 60L; h %= 24L; return String.format("%02d:%02d:%02d", h, m, s); } }
  9. Okay So i thought i did this right. @Override public int onLoop() throws InterruptedException { int starting = getExperienceTracker().getGainedXP(Skill.STRENGTH); Entity nextObj = getObjects().closest(obj -> Arrays.asList(names).contains(obj.getName()) && Arrays.asList(actions).contains(obj.getActions()[0]) && (getMap().canReach(obj)) && !obj.equals(previous)); if(nextObj != null && myPlayer().getInteracting() == null && getExperienceTracker().getGainedXP(Skill.STRENGTH) > starting){ if(nextObj.interact(nextObj.getActions()[0])){ new ConditionalSleep(1000){ @Override public boolean condition() throws InterruptedException{ return getExperienceTracker().getGainedXP(Skill.STRENGTH) < starting; } }.sleep(); }if (getExperienceTracker().getGainedXP(Skill.STRENGTH) > starting && getDialogues().isPendingContinuation()) { previous = nextObj; } } return 250; } I want it to pump until it doesnt get str exp. which is 5 mins. once the xp stops it should move on the the next object which is the shoveling the coke until it sees a message (should do whole inv) move on to filling the furnace it should give another message when you are out of coke. then move on back to pumping and loop around like that, but it doesnt. just starts to pump and gets few exp then skips to furnace and stops when gets message. help pls.
  10. Thanks you resolved, got banned trying to write this script. -_-
  11. Hi I am struggling a little bit with compiling. I want this to pump indefinntly until I stop getting str xp witch should be every 5 mins, then it should continue to the next object which is the coke and fill up until it recieves a message to continue (which mean all spades full x 28) then should move on to fill the stove with coke and wait for another message to continue, once it sees the message it should go back to pumping until the xp stop and loop again. public int onLoop() throws InterruptedException { int starting = getExperienceTracker().getGainedXP(Skill.STRENGTH); Entity nextObj = getObjects().closest(obj -> Arrays.asList(names).contains(obj.getName()) && Arrays.asList(actions).contains(obj.getActions()[0]) && (getMap().canReach(obj)) && !obj.equals(previous)); if (nextObj != null && myPlayer().getInteracting() == null && !getDialogues().isPendingContinuation()) { if (nextObj.interact(nextObj.getActions()[0])) { new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return getExperienceTracker().getGainedXP(Skill.STRENGTH) < starting; } }.sleep(); } if (getExperienceTracker().getGainedXP(Skill.STRENGTH) > starting){ previous = nextObj; } } return 250; } Please help. http://prntscr.com/lnqzk2
  12. Hi I am struggling a little bit with compiling. I want this to pump indefinntly until I stop getting str xp witch should be every 5 mins, then it should continue to the next object which is the coke and fill up until it recieves a message to continue (which mean all spades full x 28) then should move on to fill the stove with coke and wait for another message to continue, once it sees the message it should go back to pumping until the xp stop and loop again. public int onLoop() throws InterruptedException { int starting = getExperienceTracker().getGainedXP(Skill.STRENGTH); Entity nextObj = getObjects().closest(obj -> Arrays.asList(names).contains(obj.getName()) && Arrays.asList(actions).contains(obj.getActions()[0]) && (getMap().canReach(obj)) && !obj.equals(previous)); if (nextObj != null && myPlayer().getInteracting() == null && !getDialogues().isPendingContinuation()) { if (nextObj.interact(nextObj.getActions()[0])) { new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return getExperienceTracker().getGainedXP(Skill.STRENGTH) < starting; } }.sleep(); } if (getExperienceTracker().getGainedXP(Skill.STRENGTH) > starting){ previous = nextObj; } } return 250; } Please help.
  13. Yea cuz it’s broken. Does not empty bag. as stated in forums these are unofficial scripts meaning you are more likely to be banned.
  14. This does not support mirror mode.
  15. Script mines 82 full bag and has full inv gets stuck trying to add more instead of emptying sack at 82 before going back to mine more dirt.
  16. When are you going to add the healing option so that I can set up solo runs?
  17. Give me ur skype or discord. And what account you want the gold to be traded to I’ll buy it.
  18. I have a hc only I can pay cash pp what’s ur skype or discord
×
×
  • Create New...