Jump to content

Rare scripts

Scripter I
  • Posts

    246
  • Joined

  • Last visited

  • Feedback

    98.1%

Everything posted by Rare scripts

  1. Thats a great start buddy!! Wish u all the best! -Rare.
  2. I had to read this over twice Can u try with my snippet? This never failed for me personally. -Rare.
  3. U should always use else if statements, If i can help with anything else feel free to shoot me a PM on discord.
  4. if (!getInventory().contains("Kebab")) { if (getBank().isOpen()) { getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE); if (getBank().contains("Kebab")) { getBank().withdrawAll("Kebab"); if (getBank().close()) { Sleep.sleepUntil(() -> !getBank().isOpen(), 9000); } } } else { if (getBank().open()) { Sleep.sleepUntil(() -> getBank().isOpen(), 9000); } } } else { NPC n = npcs.closest("Grand Exchange Clerk"); if (n != null) { if (n.interact("Exchange")) { Sleep.sleepUntil(() -> getGrandExchange().isOpen(), 9000); } } } I'm sorry if its messy, dont got a IDE here to make it look clean CTRL + SHIFT + F on eclipse would clean this for u. U can wrap around another boolean for if the grand exchange is open on this Sleep.sleepUntil(() -> (geClerk.interact("Exchange")), 5000); Here u do a interact in a sleep, i dont think that is possible (or would be accepted as a good way of making scripts) U dont need this code either: Sleep.sleepUntil(() -> !getBank().contains("Kebab"),5000); OSBot's api will handle the wait with only the withdraw function getBank().withdraw("Kebab"); is all u need Best of luck buddy! -Rare.
×
×
  • Create New...