Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • banking method not withdrawing


    randalthor
     Share

    Recommended Posts

    My current method trying to withdraw trout from a bank for a combat bot is not working. In practice the player goes to the bank, opens it, deposits the whole inventory, and then runs back to the monsters it is fighting without withdrawing trout. Because I have a condition in my script to go to the bank when out of food and my player never withdraws food before returning, there is an endless cycle of running from and back to the bank without fighting monsters. Could someone please point out the error in my script method? I would also like advice on making it more efficient and more readable. http://pastebin.com/7hFjc6dn

     

    edit: my link had a space after the "dn" it should work now.

    http://pastebin.com/7hFjc6dn

    Edited by randalthor
    Link to comment
    Share on other sites

    what changed with the update pandemic? Same code as yesterday yet now it it working.


    Now that my script is banking, another problem occurs. My method also opens a door if it is closed when returning to the fighting location. By using log(string) I've confirmed that the "Large door" is not null and has the option to "Open". However my script does not follow the door.interact("Open"); command as expected. Is this another problem that will be fixed in the latest version like the last one, or is it a scripting mistake?  http://pastebin.com/ePmby6D3

    Link to comment
    Share on other sites

     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.