Jump to content

Search the Community

Showing results for tags 'unfinished potions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OSBot
    • News & Announcements
    • Community Discussion
    • Bot Manager
    • Support Section
    • Mirror Client VIP
    • Script Factory
  • Scripts
    • Official OSBot Scripts
    • Script Factory
    • Unofficial Scripts & Applications
    • Script Requests
  • Market
    • OSBot Official Voucher Shop
    • Currency
    • Accounts
    • Services
    • Other & Membership Codes
    • Disputes
  • Graphics
    • Graphics
  • Archive

Product Groups

  • Premium Scripts
    • Combat & Slayer
    • Money Making
    • Minigames
    • Others
    • Plugins
    • Agility
    • Mining & Smithing
    • Woodcutting & Firemaking
    • Fishing & Cooking
    • Fletching & Crafting
    • Farming & Herblore
    • Magic & Prayer
    • Hunter
    • Thieving
    • Construction
    • Runecrafting
  • Donations
  • OSBot Membership
  • Backup

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location:


Interests

Found 1 result

  1. This is my first script i made. Everything works fine except when it starts using the items. It will keep spamming them. I've used if(!myplayer().isanimating()). But there seems to be a small gap in the animations so it will still be spamming the vials of water and herbs and it will eventually cancel the crafting. import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "MarWo", info = "simple bot for making unfinished potions", logo = "", name = "HerbloreBot", version = 0) public class Bot extends Script { private enum State { BANK, MAKE }; private State getState() { if(inventory.contains(227) && inventory.contains(255)) return State.MAKE; return State.BANK; } public void onStart(){ } public void onExit() { } public int onLoop() throws InterruptedException { switch (getState()) { case BANK: if(!getBank().isOpen()) { getBank().open(); } sleep(100); bank.depositAll(); sleep(100); bank.withdraw(227, 14); sleep(100); bank.withdraw(255, 14); sleep(100); bank.close(); break; case MAKE: if(!getWidgets().isVisible(270, 14)) { if(!myPlayer().isAnimating()) { inventory.interact("Use", 227); sleep(250); inventory.interact("Use", 255); } } if (getWidgets().isVisible(270, 14)) { getWidgets().interact(270, 14, "Make"); } break; } return 500; } }
×
×
  • Create New...