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.

Forgetting equipement

Featured Replies

the issue: When i start my plunder script brand new. i know my account is wearing a ROD but OSB think im not.

 

my simple fix: i open the equipment tab. Then it realizes

 

i know osbot use to have problem with ring and ammo slot in the past. so check that out too.

 

fyi: usually tends to happen after i log in. And i have not yet checked my equipment tab.

 

 

 

long story short: the bot doesnt decide to check the equipment tab to see if it has ring

I will need the following:

-Bot version

-Sample code

-When the issue first occurred

-Is this being tested in injection or mirror

  • Author

I will need the following:

-Bot version

-Sample code

-When the issue first occurred

-Is this being tested in injection or mirror

  • 2.3.82
  • below
  • This is been happening all before you guys added the control panel
  • injection

How to duplicate the bug. (you might have to try two up to three different ways)

  • 1) Make sure your account has dueling ring on, then log off the account. (you could try arrows too i havent yet, but im sure it will do the same thing).
  • 2a) either open a new client.
  • 2b) or open up a new bot profile.
  • 2c) or simply re-log in. (not 100 percent sure if a simple log in and out will reproduce the same issue).
  • 2...) sign in
  • 3) once you are signed in. Make sure you dont open up your equipment tab. Run the script. look at the results.
  • 4) once you are ready, open up the equipment tab and check out the new results

 

these are the method i am using in m script.

public Filter<Item> ROD()    {
    return new ContainsNameFilter<Item>("ring of dueling");
}

public boolean contains(Filter<Item> filter) {
    return getEquipment().contains(filter);
}
   

question: should i be using contains method, or isWearingItem

Test 1 - Passed

Item i = getEquipment().getItemInSlot(EquipmentSlot.CAPE.slot);
System.out.println(i != null ? i.getName() : "null");
[iNFO][07/17 06:27:38 PM]: Started bot #1
[iNFO][07/17 06:29:08 PM]: Loaded 1 local scripts and 0 custom random solvers!
[iNFO][07/17 06:29:08 PM]: You have 6 SDN scripts loaded.
[iNFO][bot #1][07/17 06:29:11 PM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][07/17 06:29:11 PM]: Started script : Skeletor
Blue cape
Blue cape
Blue cape
[iNFO][bot #1][07/17 06:29:21 PM]: Terminating script Skeletor...
[iNFO][bot #1][07/17 06:29:21 PM]: Script Skeletor has exited!

 

 

Test 2 - Passed

@Override
    public int onLoop() throws InterruptedException {
        System.out.println(getEquipment().contains(new ContainsNameFilter<Item>("Blue cape")));
        return 5000;
    }
[DEBUG][bot #1][07/17 06:40:27 PM]: Initializing bot...
[iNFO][bot #1][07/17 06:40:28 PM]: Initializing 36 API modules...
[DEBUG][bot #1][07/17 06:40:28 PM]: Applet resize : (765, 503)
[iNFO][07/17 06:40:28 PM]: Started bot #1
[iNFO][07/17 06:41:09 PM]: Loaded 1 local scripts and 0 custom random solvers!
[iNFO][07/17 06:41:10 PM]: You have 6 SDN scripts loaded.
[iNFO][bot #1][07/17 06:41:14 PM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][07/17 06:41:14 PM]: Started script : Skeletor
true
true
[iNFO][bot #1][07/17 06:41:19 PM]: Terminating script Skeletor...
[iNFO][bot #1][07/17 06:41:19 PM]: Script Skeletor has exited!

 

 

 

In both scenarios I started a new bot and started the test instantly (I did not switch to the equipment tab prior, walk, open interfaces, etc).

  • Author

 

In both scenarios I started a new bot and started the test instantly (I did not switch to the equipment tab prior, walk, open interfaces, etc).

 

lol i knew you were going to do that -.-

 

I guess i didnt make it clear enough.

 

i know osbot use to have problem with ring and ammo slot in the past. so check that out.

 

long story short: the bot doesnt decide to check the equipment tab to see if it has ring

 

the issue is only the ring / ammo slot. If you need a clue to where to start. Ask @Maxi about the workaround OSB did for the equipment section. When it got broke by OSRS.

 

edit:

before it use to open the tab and cache the ring / ammo slot.

(legit way before: ive seen it once close the bank widget (i was in banking mode), check the tab , and then continue banking).

Edited by josedpay

lol i knew you were going to do that -.-

 

I guess i didnt make it clear enough.

 

 

the issue is only the ring / ammo slot. If you need a clue to where to start. Ask @Maxi about the workaround OSB did for the equipment section. When it got broke by OSRS.

 

edit:

before it use to open the tab and cache the ring / ammo slot.

 

(legit way before: ive seen it once close the bank widget (i was in banking mode), check the tab , and then continue banking).

 

It doesn't need to check the equipment tab, that was patched when Laz was still here. During my test the equipment tab was not switched to at all.

My guess is that you're getting the content of the equipment while on the Login Screen/Loading the region after login. There are some cases where initially after login, the contents are unavailable.

 

@Josed, try checking LoginState & LoginStage before grabbing your equipment (Only attempt it if the states are right)

My guess is that you're getting the content of the equipment while on the Login Screen/Loading the region after login. There are some cases where initially after login, the contents are unavailable.

 

@Josed, try checking LoginState & LoginStage before grabbing your equipment (Only attempt it if the states are right)

 

I might make scripts a little safer by having them wait until the random event executor can cycle through and finish the random.

  • Author

I might make scripts a little safer by having them wait until the random event executor can cycle through and finish the random.

 

edit:

@Alek you didnt even test the script out -.- after i told you it was a ring problem

 

i opened up a new client. Signed it, i didnt open anything tabs i just ran the script.

 

code:

	int index = 0;
	
	@Override
	public int onLoop() throws InterruptedException {
		Item item = getEquipment().getItemInSlot(EquipmentSlot.RING.slot);
		boolean bool = getEquipment().isWearingItem(EquipmentSlot.RING);
		index ++;
		
		log("Item: " +item.getName());
		log("bool: " +bool);
		if (index > 3 && index < 6) {
			log("after open the equipment tab");
		}
		return 2500; 
	}

my results:

[INFO][Bot #1][07/18 08:50:07 AM]: Loaded 4 built-in random solvers!
[INFO][Bot #1][07/18 08:50:07 AM]: Started script : Script Testing
[INFO][Bot #1][07/18 08:50:07 AM]: Item: null
[INFO][Bot #1][07/18 08:50:07 AM]: bool: true
[INFO][Bot #1][07/18 08:50:10 AM]: Item: null
[INFO][Bot #1][07/18 08:50:10 AM]: bool: true
[INFO][Bot #1][07/18 08:50:12 AM]: Item: null
[INFO][Bot #1][07/18 08:50:12 AM]: bool: true
[INFO][Bot #1][07/18 08:50:15 AM]: Item: null
[INFO][Bot #1][07/18 08:50:15 AM]: bool: true
[INFO][Bot #1][07/18 08:50:15 AM]:
[INFO][Bot #1][07/18 08:50:17 AM]: Item: null
[INFO][Bot #1][07/18 08:50:17 AM]: bool: true
[INFO][Bot #1][07/18 08:50:17 AM]:
[INFO][Bot #1][07/18 08:50:20 AM]: Item: null
[INFO][Bot #1][07/18 08:50:20 AM]: bool: true
[INFO][Bot #1][07/18 08:50:22 AM]: Item: null
[INFO][Bot #1][07/18 08:50:22 AM]: bool: true
[INFO][Bot #1][07/18 08:50:25 AM]: Item: Ring of dueling(2)
[INFO][Bot #1][07/18 08:50:25 AM]: bool: true
[INFO][Bot #1][07/18 08:50:27 AM]: Item: Ring of dueling(2)
[INFO][Bot #1][07/18 08:50:27 AM]: bool: true
[INFO][Bot #1][07/18 08:50:30 AM]: Item: Ring of dueling(2)
[INFO][Bot #1][07/18 08:50:30 AM]: bool: true
[INFO][Bot #1][07/18 08:50:30 AM]: Terminating script Script Testing...
[INFO][Bot #1][07/18 08:50:30 AM]: Script Script Testing has exited!


If its a ring problem it will be a arrow problem

 

btw @Alek im pretty sure laz fix was to initlize ring and ammo as a string "null". Then whenever it was be called apron they would quickly check the tab and continue with the script.

 

im sure it returns string "null" because when i remove the ring it get NPE which then is set to an actual null

 

 

i dont want to say i told you so but........ im not wrong

Edited by josedpay

  • Author

My guess is that you're getting the content of the equipment while on the Login Screen/Loading the region after login. There are some cases where initially after login, the contents are unavailable.

 

@Josed, try checking LoginState & LoginStage before grabbing your equipment (Only attempt it if the states are right)

you sir actually had me fooled for a second because i usually run the script while logged off. So i decided to finally test it out. I logged in then ran a simple test script. Check out the results above

So are you reporting all equipment slots or just specific equipment slots?


Code:

@Override
    public int onLoop() throws InterruptedException {
        Item item = getEquipment().getItemInSlot(EquipmentSlot.CAPE.slot);
        boolean bool = getEquipment().isWearingItem(EquipmentSlot.CAPE);
        System.out.println("We are wearing <"+ (item != null ?item.getName()+">" : "nothing>")+" in our cape slot.");
        System.out.println("With this said, we " + (bool ? "are": "are not")+" wearing a cape");
        return 5000;
    }

Result:

 

[iNFO][07/18 03:10:32 PM]: Started bot #1
[iNFO][bot #1][07/18 03:11:21 PM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][07/18 03:11:21 PM]: Started script : Skeletor
We are wearing <Blue cape> in our cape slot.
With this said, we are wearing a cape
We are wearing <Blue cape> in our cape slot.
With this said, we are wearing a cape
[iNFO][bot #1][07/18 03:11:30 PM]: Terminating script Skeletor...
[iNFO][bot #1][07/18 03:11:30 PM]: Script Skeletor has exited!

 

 

  • Author

 just specific equipment slots?

RING and AMMO

 

i just tested all slots

[INFO][Bot #1][07/18 09:43:21 AM]: Started script : Script Testing

[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <White cavalier> in our hat slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Spotted cape> in our cape slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Amulet of glory(6)> in our amulet slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Rune axe> in our weapon slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Red d'hide body> in our chest slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Bronze defender> in our shield slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Red d'hide chaps> in our legs slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Red d'hide vamb> in our hands slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <Boots of lightness> in our feet slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <null> in our ring slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: We are wearing <null> in our arrows slot.
[INFO][Bot #1][07/18 09:43:21 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:21 AM]: open tab please
[INFO][Bot #1][07/18 09:43:21 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <White cavalier> in our hat slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Spotted cape> in our cape slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Amulet of glory(6)> in our amulet slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Rune axe> in our weapon slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Red d'hide body> in our chest slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Bronze defender> in our shield slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Red d'hide chaps> in our legs slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Red d'hide vamb> in our hands slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Boots of lightness> in our feet slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Ring of dueling(1)> in our ring slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: We are wearing <Emerald bolts> in our arrows slot.
[INFO][Bot #1][07/18 09:43:26 AM]: With this said, we are wearing a something
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:26 AM]: open tab please
[INFO][Bot #1][07/18 09:43:26 AM]: 
[INFO][Bot #1][07/18 09:43:27 AM]: Terminating script Script Testing...
[INFO][Bot #1][07/18 09:43:28 AM]: Script Script Testing has exited!

code:

	@Override
	public int onLoop() throws InterruptedException {
		for (EquipmentSlot slot: EquipmentSlot.values()) {
			if (slot != null){
				parseData(slot);
			} else {
				log("Its null");
			}
		}
		log("open tab please");
		log("");
		return 5000; 
	}
	
	public void parseData(EquipmentSlot zlot) {
		if (zlot != null) {
			Item item = getEquipment().getItemInSlot(zlot.slot);
			boolean bool = getEquipment().isWearingItem(zlot);
		
			log("We are wearing <"+ (item != null ?item.getName()+">" : "nothing>")+" in our " +zlot.name().toLowerCase() +" slot.");
			log("With this said, we " + (bool ? "are": "are not")+" wearing a something");
			log("");
		}
		if (zlot == null) {
			log("slot is null");
		}
	}
	

Edited by josedpay

That's because the data of some widgets components doesn't get updated when the component is hidden, the widgets data get updated only when its become visible or when you log in (obviously).In this case the equipment tab is closed (so hidden) so its wont get updated until you open it back. This is easily fixable if osbot has itemsTables hooked, its a table where the rs client store inventory, equipment ,bank items data. The rs client rely on it to get the updated data from the server. Here's the field name & owner :

 ^  itemTables                    Hashtable                   identified as  o.p                           (Lgf;)
  • Administrator

 

That's because the data of some widgets components doesn't get updated when the component is hidden, the widgets data get updated only when its become visible or when you log in (obviously).In this case the equipment tab is closed (so hidden) so its wont get updated until you open it back. This is easily fixable if osbot has itemsTables hooked, its a table where the rs client store inventory, equipment ,bank items data. The rs client rely on it to get the updated data from the server. Here's the field name & owner :

 ^  itemTables                    Hashtable                   identified as  o.p                           (Lgf;)

 

OSBot does have it and uses it. That isn't the problem though.

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.