This week I decided to go through the API and ensure that we're running the most up-to-date methods. A large part of these patches is due to the recent release of Bounty Hunter. Alas everything appears to be in working order and I even decided to make a few improvements.
Changelog:
-Updated deprecated Spell class to reflect Spells.NormalSpells
-Added Bank method withdraw(HashMap<String, Integer>)
-Updated Ancient and Lunar magic Spellbooks (huge thanks to )
-Added Skills value SKILLS_GUIDE_INTERFACE
-Added Skills method isGuideOpen()
-Added Skills method closeGuide()
-Updated Interface method getOpenInterface() to include Skill Guides
-Updated Interface method closeOpenInterface() to include Skill Guides
-Improved interface closing speed in InteractionEvent execute()
-Patched two possible null pointers in InteractionEvent
-Added Combat value WILDERNESS_INTERFACE
-Added Combat value WILDERNESS_LEVEL_INTERFACE_CHILD
-Patched Combat method isWilderness()
-Patched Combat method getWildernessLevel()
-Patched Combat method isMultiway()
-Added Combat method hasBountyTarget()
How to use bank.withdraw(HashMap<String, Integer>):
HashMap<String, Integer> items = new HashMap<>();
items.put("Tin ore", 12);
items.put("Willow logs", 9);
bank.withdraw(items);
Thanks for your support!
-The OSBot Staff