Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'withdraw'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services

Blogs

  • Getting Started With TRiBot
  • The Best Way To Get Rid Of Termites
  • How to Generate Real Estate Leads Using Twitter
  • A Guide to Landing Pages

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Bio

Found 2 results

  1. is it possible to withdraw multiple items with Banking#withdraw with different quantity for each item and use Timing#waitCondition instead calling sleep after withdrawing every item? And how do I interact with items like ring of dueling & games necklace to teleport ? Sorry for asking questions like these but I'm really new to scripting, and many thanks!
  2. I noticed there was no code to see which rearrange/withdraw as mode was selected or to select them when in the bank. Source: package scripts.api;import org.tribot.api.Timing;import org.tribot.api.types.generic.Condition;import org.tribot.api2007.Banking;import org.tribot.api2007.Interfaces;import org.tribot.api2007.types.RSInterfaceChild;/** * @author Worthy */public class BankHelper { private static final int BANKING_INTERFACE = 12; private static final int SELECTED_TEXTURE = 813; public enum Widgets { SWAP(14, "Swap"), INSERT(16, "Insert"), ITEM(19, "Item"), NOTE(21, "Note"); String name; int index; private Widgets(final int index, final String name) { this.index = index; this.name = name; } } /** * @param widj The widget to check (swap/insert/item/note) * @return true if the widget is selected (in red) */ public static boolean isSelected(final Widgets widg) { if (!Banking.isBankScreenOpen() || Interfaces.get(BANKING_INTERFACE) == null) return false; final RSInterfaceChild itemWidget = Interfaces.get(BANKING_INTERFACE, widg.index); if (itemWidget != null) { return itemWidget.getTextureID() == SELECTED_TEXTURE; } return false; } /** * @param widg The widget to enable * @return true if the widget was successfully selected */ public static boolean select(final Widgets widg) { if (!Banking.isBankScreenOpen() || Interfaces.get(BANKING_INTERFACE) == null) return false; if (isSelected(widg)) return false; final RSInterfaceChild itemWidget = Interfaces.get(BANKING_INTERFACE, widg.index); if (itemWidget != null) { if (itemWidget.click(widg.name)) { return (Timing.waitCondition(new Condition() { @Override public boolean active() { return isSelected(widg); } }, 4000)); } } return false; }}Regards, Worthy
×
×
  • Create New...