Jump to content

JoshuaMiddleton

Members
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

1121 profile views

JoshuaMiddleton's Achievements

Newbie

Newbie (1/10)

3

Reputation

  1. Could you show me how you've done you're on screen progress stuff?
  2. So basically I've decided to release my first script considering it was done solely for educational purposes and maybe someone will find use for it, probably gonna work more on this before moving onto a different project. If you find any bugs, let me know and i'll do my best to fix them! Also, if you have any feature requests, let me know and i'll implement them. Features: Crafts Air Runes (from Falador East Bank) Crafts Cosmic Runes (From Zanaris Bank - Currently only supports using the Agility Shortcut!) Note: Script doesn't support talismans (yet), to start the script equip either a Air Tiara or Cosmic Tiara and start in Zanaris bank/Falador East bank. Planned Feature Updates: Tweak sleep times so script runs more efficiently and only breaks when necessary Implement a better GUI Implement more Runecrafting Altars/Methods Toggle use Shortcut for Cosmic Runecrafting JashyRunecrafter.jar
  3. Can't think of a better way to check if player is still at the Air altar. Guess the only other option would be to check if the webwalker can find a way to the Falador bank?
  4. Thanks for the feedback! Adressing some of the points you made: make runecraft() method conditional (now called airRunecraft()) private void airRunecraft() throws InterruptedException { if (!AIR_ALTAR.contains(myPosition())) { getWalking().webWalk(new Position(2987, 3294, 0)); sleep(random(2500, 4000)); } if (AIR_ALTAR.contains(myPosition())) { useAltar(); sleep(random(2500, 4000)); } if (AIR_RUNES.contains(myPosition())) { craftRunes(); sleep(random(3500, 5000)); } while (AIR_RUNES.contains(myPosition())) { usePortal(); sleep(random(1500, 2500)); } } Could you elaborate on null checking objects and optional wrapping please? Also, I was under the impression that having static (random) sleeps was better simply to create random gaps inbetween tasks to increase anti-ban percentage? Could you elaborate on why you would have conditional sleeps/better ways to create random breaks inbetween tasks? Thanks
  5. So basically I've decided to start creating my own script for personal use, very basic script to Runecraft air runes, let me know what you think/any general improvements moving forwards, thanks. import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Jashy", info = "Air Runecrafter - First Script.", logo = "", version = 0.1, name = "Air Runecrafter") public final class Air extends Script { private final Area AIR_ALTAR = new Area(2989,3295,2982,3289); private final Area AIR_RUNES = new Area(2839, 4826, 2849, 4840); @Override public final int onLoop() throws InterruptedException { if (hasPureEssense()) { runecraft(); } else { bank(); } return random(2500, 4000); } private void runecraft() throws InterruptedException { if(!AIR_ALTAR.contains(myPosition())) { getWalking().webWalk(new Position(2987, 3294, 0)); sleep(random(2500, 4000)); useAltar(); sleep(random(2500, 4000)); } craftRunes(); sleep(random(3500, 5000)); } private boolean hasPureEssense() { return getInventory().contains("Pure essence"); } private boolean useAltar() { return getObjects().closest("Mysterious ruins").interact("Enter"); } private boolean craftRunes() { return getObjects().closest("Altar").interact("Craft-rune"); } private boolean usePortal() { return getObjects().closest("Portal").interact("Use"); } private void bank() throws InterruptedException { //Added this in case script was started inside air runes area. while(AIR_RUNES.contains(myPosition())) { usePortal(); sleep(random(1500, 2500)); } if (!Banks.FALADOR_EAST.contains(myPosition())) { getWalking().webWalk(Banks.FALADOR_EAST); } else if (!getBank().isOpen()) { getBank().open(); sleep(random(2000, 3000)); } else if (!getInventory().isEmptyExcept("Pure essence")) { getBank().depositAll(); sleep(random(2000, 3000)); } else if (getBank().contains("Pure essence")) { getBank().withdrawAll("Pure essence"); sleep(random(2000, 3000)); } else { stop(true); } } }
  6. Client keeps freezing when I run the script @ barb fishing?
  7. [ERROR][Bot #1][06/29 06:55:56 PM]: Error executing event : org.osbot.rs07.event.WalkingEvent@1933734 java.lang.IllegalStateException: Could not identify minimap interface child! Please report to developers. at org.osbot.rs07.api.util.GraphicUtilities.IiIiiiiiiiiI(ae:505) at org.osbot.rs07.api.util.GraphicUtilities.getMinimapScreenCoordinate(ae:738) at org.osbot.rs07.api.map.Position.isOnMiniMap(dh:518) at org.osbot.rs07.event.WalkingEvent.IiiIIiiiIiii(el:670) at org.osbot.rs07.event.WalkingEvent.execute(el:246) at org.osbot.rs07.event.EventExecutor$2.run(xe:230) at org.osbot.rs07.event.EventExecutor.execute(xe:101) at org.osbot.rs07.script.MethodProvider.execute(vk:519) at org.osbot.rs07.api.Walking.walk(bi:48) at org.khal.agility.e.b.AUx.L(l:159) at org.khal.agility.e.prn.L(m:176) at org.khal.agility.KhalAgility.onLoop(mb:139) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(yl:161) at java.lang.Thread.run(Unknown Source) This error seems to occur at the end of most courses, I have rooftops disabled.
×
×
  • Create New...