Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Issue with pickaxe repair

Featured Replies

Can anyone help me out? Paths are set accordingly in the actual script ,as it entity/ints etc. However, it doesn't do anything at all

EDIT: FFS put this in wrong section, could a mod PLEASE move it.. so tired i can't think. :(
 

public int onLoop() throws InterruptedException {

        Player player = client.getMyPlayer();
        Bank bank = client.getBank();
        Inventory inv = client.getInventory();
        Entity stairs = closestObject(Stairs);
        Entity stairs2 = closestObject(Stairs2);
        Entity stairstop = closestObject(StairsTop);
        Entity LBanker = closestObject(18491);


        if (equipmentTab.isWieldingWeaponThatContains("Broken pickaxe")) {
            WalkToBank();
            Entity Banker = closestObject(2481);
            if (inv.contains(478)) {
            WalkToBank();


            if (Banker != null && Banker.isVisible()) {
                Banker.interact("Bank");
                if (bank.isOpen()) {
                    bank.getSlotForId(Cash);
                    bank.withdrawX(1100, Cash);
                    if (inv.contains(Cash)) {
                        walkToBob();
                           Entity Bob = closestNPCForName("Bob");
                        if (Bob != null && Bob.isVisible() ) {
                            equipmentTab.unequip(478);
                            if (client.getInventory().contains(478)) {
                            selectOption(null,Bob.getMouseDestination(),"Use", client.getInventory().getItemForId(478).getName()+" -> Bob");
                            selectInterfaceOption(242, 4);
                            selectInterfaceOption(228, 1);

                        }
                        }
                    }
                }

            }
        }
        }

        return 1;


    }

Edited by SavageNerdz

Well I can't work out your problem just by looking at the script but instead of doing Entity Banker and Entity LBanker try using

RS2Object Bank = closestObjectForName("Bank booth");

That will negate the need to update your script when the ID's change which they inevitably will. Sorry I cannot help you with your problem but another thing you should try doing is adding log(*number*); throughout your script to see what path your script is taking through your code.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.