Jump 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.

Interaction with a GroundItem on a table

Featured Replies

I'm working on my first script, a wine of zamorak grabber. Whenever the wine spawns, it calls this block of code:

GroundItem wine = groundItems.closest("Wine of zamorak");
    		if(wine != null){
    			magic.castSpellOnEntity(Spells.NormalSpells.TELEKINETIC_GRAB, wine);
                        sleep(random(400,600));
    		}

Whenever a wine spawns, however, it first tries to click underneath the table and then clicks the wine in the second run-through. How can I fix this?

 

 

I also have trouble when trying to walk from the bank to the temple. Whenever the program decides that the user is not in the temple and does not have a full inventory, it calls:

Position[] pathToWine = {
    			new Position(2954,3378,0), 
    			new Position(2965,3389,0), 
    			new Position(2962,3404,0),
    			new Position(2955,3417,0),
    			new Position(2949,3431,0), 
    			new Position(2947,3447,0), 
    			new Position(2945,3461,0), 
    			new Position(2942,3477,0),
    			new Position(2940,3493,0), 
    			new Position(2941,3508,0), 
    			new Position(2931,3515,0)
    		};
    		localWalker.walkPath(pathToWine);

The walker, however, only manages to get to one of the positions then clicks at its feet once before stopping. What am I doing wrong?

 

Thank you,

BTheBrave

Edited by bthebrave

  • Author

For the walker you should make the distance between tiles shorter. I run into this problem often biggrin.png

 

Wow. I made the changes so the distance between tiles was shorter, and it worked. That gave me so much pain... Mr. Guru, do you have any advice for the GroundItem issue?

Edited by bthebrave

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.