-
Script randomly broke?
Ah! I figured it might have had something to do with the update. Thank you!
-
Script randomly broke?
So after making some changes to a script, a totally unrelated part seemed to stop working. After looking into it, it seems like attempting to access the inventory at all throws an error. This is the error I get with the line in question underneath. [ERROR][Bot #1][01/19 11:58:14 AM]: Error in bot executor! java.lang.AbstractMethodError: dm.getNodes()[Lorg/osbot/rs07/accessor/XNode; at org.osbot.rs07.api.util.NodeContainerUtilities.findNodeByHash(gp:212) at org.osbot.rs07.api.Inventory.getItems(ef:70) at org.osbot.rs07.api.util.ItemContainer.isFull(zg:609) at Test.onLoop(Test.java:13) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(gm:185) at java.lang.Thread.run(Unknown Source) inventory.isFull(); I created a brand new script just to test this so I'm sure it wasn't something I changed in a script. OSBot also seems unable to get past the welcome screen as well now, throwing this error [ERROR][Bot #1][01/19 11:58:13 AM]: Error on random solver : Welcome Screen java.lang.AbstractMethodError: client.getWidgetNodes()Lorg/osbot/rs07/accessor/XNodeContainer; at org.osbot.rs07.api.ui.RS2Widget.iIiiiiiiIiiI(go:292) at org.osbot.rs07.api.ui.RS2Widget.iIiiiiiiIiiI(go:222) at org.osbot.rs07.api.ui.RS2Widget.getAbsX(go:267) at org.osbot.rs07.api.ui.RS2Widget.getPositionIgnoreIsHidden(go:629) at org.osbot.rs07.api.ui.RS2Widget.getRectangleIgnoreIsHidden(go:585) at org.osbot.rs07.input.mouse.WidgetDestination.getBoundingBox(lp:138) at org.osbot.rs07.api.util.GraphicUtilities.getSuitablePoint(zl:680) at org.osbot.rs07.input.mouse.MoveMouseEvent.execute(ne:113) at org.osbot.rs07.event.EventExecutor$2.run(dn:284) at org.osbot.rs07.event.EventExecutor.execute(dn:121) at org.osbot.rs07.script.MethodProvider.execute(wj:853) at org.osbot.rs07.event.InteractionEvent.iIiiiiiiIiiI(vo:93) at org.osbot.rs07.event.InteractionEvent.execute(vo:373) at org.osbot.rs07.event.EventExecutor$2.run(dn:284) at org.osbot.rs07.event.EventExecutor.execute(dn:121) at org.osbot.rs07.api.ui.RS2Widget.interact(go:754) at org.osbot.rs07.randoms.WelcomeScreen.onLoop(zh:217) at org.osbot.rs07.event.RandomExecutor.run(cp:163) at java.lang.Thread.run(Unknown Source) Anyone know what could have caused these errors and/or how to resolve them?
-
Hello, new scripter here.
Hey there, I'm Chromelte. I've been playing Runescape since around 2006 but I am new to botting in general. I am currently studying computer science in school and have plenty of experience in Java so I thought it would be fun to incorporate programming into something I love. I'm a pretty newbie scripter but I'm looking to learn and release my scripts to the public. I'm working on a fairly big script idea that I have right now but won't be releasing that. Anyone have tips on how to get started and make my scripts available to the public and get my name out there as a scripter?
-
How to check if item is stackable?
Thank you! Checking for the noted id worked perfectly!
-
How to check if item is stackable?
Tried searching the API/Google for this but no luck. So basically, the script has a list of items to pick up. It checks the loot on the ground against the list of items to pick up and if any match and the inventory is not full, it'll pick it up. What I want to do though, is to pick up a stackable item if my inventory contains a stack already, regardless of if it's full or not. Is there any way to check if an item on the ground is stackable?
-
How to check if item is stackable?
Thank you! I would have came up with something like that eventually, but I wanted to make sure there wasn't already such a method. Looks like that will have to do. Edit: Just realized a (slight) problem. The method will return false even if an item is stackable but there's only 1 in the inventory. Any ideas to fix this? Edit 2: Actually, I believe this will return true if the inventory contains more of one item, even if it's not in a stack.
-
How to check if item is stackable?
Tried searching the API/Google for this but no luck. So basically, the script has a list of items to pick up. It checks the loot on the ground against the list of items to pick up and if any match and the inventory is not full, it'll pick it up. What I want to do though, is to pick up a stackable item if my inventory contains a stack already, regardless of if it's full or not. Is there any way to check if an item on the ground is stackable?
-
Trouble with examining random object.
How do I click on the option once I find it?
-
Trouble with examining random object.
@Imateamcape I needed it as one of my anti-ban features. Thanks for the help though.
-
Trouble with examining random object.
Didn't know which was the correct one, sorry about that. if (obj.getName() != null) {} So this works now and I tried both obj.interact("Examine") and obj.examine() (which is deprecated btw) but neither work.
-
Trouble with examining random object.
boolean examined = false; List<RS2Object> allEntities = new ArrayList<RS2Object>(); allEntities = objects.getAll(); do { RS2Object obj = allEntities.get(random(0, allEntities.size() - 1)); if (obj != null && obj.hasAction("Examine")) { obj.interact("Examine"); examined = true; log(obj.getName() + " examined."); } } while (!examined); I am trying to get a list of all the entities around me and examine one at random. I seem to be able to get a random object just fine, but it never actually gets past this part. if (obj != null && obj.hasAction("Examine")) { Any ideas why?
-
Trouble with examining random object.
boolean examined = false; List<RS2Object> allEntities = new ArrayList<RS2Object>(); allEntities = objects.getAll(); do { RS2Object obj = allEntities.get(random(0, allEntities.size() - 1)); if (obj != null && obj.hasAction("Examine")) { obj.interact("Examine"); examined = true; log(obj.getName() + " examined."); } } while (!examined); I am trying to get a list of all the entities around me and examine one at random. I seem to be able to get a random object just fine, but it never actually gets past this part. if (obj != null && obj.hasAction("Examine")) { Any ideas why?