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.

Need some help with my script please

Featured Replies

Dear Scripters, 
So i ran into a problem while making my first script, so basically the problem is :
When the item is in my inventory, it has to run to the next case. But the problem is, even when the item is achieved, the bot still spam clicks the Cupboard. Instead if running to the second case.

case GetPicture2:
walking.webWalk(new Position(2984, 3335, 2));
objects.closest("Cupboard").interact("Open");
objects.closest("Cupboard").interact("Search");
if(getInventory().contains("Portrait"));
break;
case GotPicture:
talkNpcInArea("David", David_HOUSE, "Something else.");

break;

 

Any advice would be highly appreciated ! 

Edited by Takes A Nap

//in the getState method
if(inventory.contains("Picture")) {
   return State.GotPicture;
}

These breadcrumbs should be enough, you need to try to research and learn on your own, it's different to school and being spoonfed.

 

In the State scripts there are 2 parts:

1) setting the State

2) reacting to the State

 

 

1) Setting state: if you have the picture in your inventory, then the state is NOT State.GetPicture is it. Because you already have it! So since you have the picture, set the state as State.GotPicture

 

2) Reacting to the state: now the state is State.GotPicture you can do the next part of the quest.

 

Check your OSBot private messages, I might just teamviewer connect to your PC and help you get this done and explain things to you step by step.

Edited by MegaManAlpha

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.