Jump to content

Bot Randomly Bugged?


Mikee_

Recommended Posts

My bot was working fine, didn't even change anything. Now I'm getting an error everytime it attempts to loot drops..

 

Here is the code

			gi = getGroundItems().closest(lootDrops[i]);
			if (gi != null) {
				state = "Looting Item: "+lootDrops[i];
				ItemDefinition itDef = gi.getDefinition();
				int itemId = itDef.isNoted() ? itDef.getUnnotedId() : itDef.getId();
				int price = getItemPrice(itemId, i);
				int amount = gi.getAmount();
				int thisProfit = amount * price;
				if (gi.interact("Take")) {
					profit += thisProfit;
					log("Looted x "+amount+" "+lootDrops[i]+" for "+thisProfit+" profit.");
					lastLooted = lootDrops[i];
				}
				partialSleep(random(600,800));
				return true;
			}

Here is the error

[ERROR][Bot #1][01/04 11:53:17 PM]: Error in bot executor!
java.lang.AbstractMethodError: client.getTileVisibilityArray()[[Z
	at org.osbot.rs07.api.map.Position.isVisible(ti:150)
	at org.osbot.rs07.event.InteractionEvent.execute(ng:369)
	at org.osbot.rs07.event.EventExecutor$2.run(xg:188)
	at org.osbot.rs07.event.EventExecutor.execute(xg:201)
	at org.osbot.rs07.api.model.GroundItem.interact(ah:41)
	at LavaDragon.LavaDragon.lootDrops(LavaDragon.java:275)
	at LavaDragon.LavaDragon.getState(LavaDragon.java:470)
	at LavaDragon.LavaDragon.onLoop(LavaDragon.java:77)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(hk:274)
	at java.lang.Thread.run(Unknown Source)

Seems to be happening on the line if (gi.interact("Take")) {

Edited by puremikeg943
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...