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

Sell OSRS Gold
Sign in to follow this  
HerpDerp93

Withdraw multiple items & interact with jewellery to teleport?

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Array

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!

 

Just chain the Banking.withdraw's and have and sleep after all of them?

You mean while equipped? Get the RSItem and interact with that

https://tribot.org/doc/org/tribot/api2007/Equipment.html

Share this post


Link to post
Share on other sites

@ITryNotToTroll Isn't it better to wait condition in the event of lag or w/e it will still withdraw? Can you give an example on how to "chain" the withdraw? And I want to interact while in inventory :o

if(Inventory.getCount(Item1) < amountNeeded1) Banking.withdraw(amountNeeded1 -Inventory.getCount(Item1);if(Inventory.getCount(Item2) < amountNeeded2) Banking.withdraw(amountNeeded2 -Inventory.getCount(Item2);Timing.waitCondition(new Condition() { @Override public boolean active() {  General.sleep(10, 20);  return Inventory.getCount(Item1) >= amountNeeded1 && Inventory.getCount(Item2) >= amountNeeded2; }}, General.random(2000, 3000));

Something like that

 

For interacting:

RSItem[] item = Inventory.find(itemID);if(item.length > 0 && item[0] != null) { item[0].click("Click string"); Conditional wait in here}

Something like that

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By drunksigma
      I get nothing as output even though my bank  is open.
      @Override public void run() { while(true) { sleep(200); RSItem itemarray[] = Banking.getAll(); for(RSItem index : itemarray) { General.println(index.name + " ID: " + index.getID() + " Stack: " + index.getStack()); } }  
    • By triram33
      can somebody tell me if you need a proxy to bot safely on two different accounts at the same time with vip / premium or does tribot do that for you
      (botting noob)
    • By gbaelement7
      Introduction: My third script. Saw some requests for a curser script. I plan to eventually expand this to a AIO magic script.
       
      Status: WORKING 05/03/17
       
      GUI:


      Paint:

       
      Features:
      Antiban ABCL10 What is ABCL? These ABC (anti-ban compliance) methods aren't your standard anti-ban. TRiBot generates unique characteristics for every different botter. These characteristics will hold data such as if the botter should hover the next object/npc, if the botter should go to the next anticipated object/npc location if waiting for an object/npc to spawn, wait times for switching objects/npcs, how often to check XP, and more! By assigning unique characteristics for every different botter, TRiBot will be able to make your character seem different from all of the other botters, thus making it more human-like. Alching Alches any item Cursing - all spells! Confuse Weaken Curse Vulnerability Enfeeble Stun Stun alching Stun and alch for maximum exp! Teleporting Varrock Lumbridge Falador Camelot GUI Clean and simple All NPCs and items supported Just enter its name Paint Keep track of the gains Logs out when out of supplies Instructions: Choose mode. Then enter in the NPC and/or item name (NOT ID) exactly as it is. Press start. Post any bugs to this thread.
       
      Repository Link:
      https://tribot.org/repository/script/id/1082-auto-magic/

      To Do:
      - Gem and bolt enchanting. Already done, but I need accounts to test on.
       
      Changelog:
      Version 1.8 (5/03/2017) - Fixed bug after clicking wrong spell Version 1.7 (4/14/2015) - Fixed out of runes bug Version 1.68 (3/25/2015) - Fixed a bug with alching too fast Version 1.66 (2/22/2015) - Script walks back to starting position Version 1.6 (1/14/2015) - Added ABCL10 Version 1.5 (1/13/2015) - Added teleporting Version 1.4 (1/12/2015) - Fixed logging out issue Version 1.3 (1/11/2015) - Added stun alching Version 1.2 (1/11/2015) - Added alching Version 1.1 (1/10/2015) - Cleaned up code Version 1.00 (1/10/2015) - Initial release
    • By SGMlife.com
      SGMlife Buying RuneScape, Old School Gold, items 24/7
      Online Chat
      Payment Methods:
      1. Paypal (verified paypal account)
      2. Webmoney
      _____________________________________________________________________________
      Contact US:
      Email: [email protected]
      Skype: SGMlife
      _____________________________________________________________________________
    • By HabbaTheJutt
      Is it safe to transfer items/gold from one bot to another if they are both running on separate proxies? I would most likely be careful and try to keep it to like 3-5 trades between each at most. 
      Thanks
      P.S. Sorry if this is the wrong forum. I'm new. 
       
  • Our picks

    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 49 replies
    • Come give us feedback on the next version of TRiBot!
      • 86 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
      • 25 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
      • 90 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...