- Joined
- Nov 6, 2015
- Messages
- 533
- Thread Author
- #1
Hi,
I am wiritng a quest bot and this is the second time this comes along I think it might had to do with an update somehow because the same piece of code worked before!
It just hovers above the coffin and then just repeats it also says this in the debug:
00:07:42 INFO [OSRS Glitch] The OSRS game engine has a glitch when using consumable items on entities. This breaks most bots, so we're correcting things.
While it's a Ghost's skull and not a consumable item I quess this is a bug and has nothing to do with my own code!
I am wiritng a quest bot and this is the second time this comes along I think it might had to do with an update somehow because the same piece of code worked before!
Code:
if (coffinOpened != null) {
SpriteItem ghostSkull = Inventory.getItems("Ghost's skull").first();
if (Inventory.getSelectedItem() != null && Inventory.getSelectedItem().toString().contains("Ghost's skull")) {
coffinOpened.click();
}
if (ghostSkull.click()) {
if (Inventory.getSelectedItem() != null && Inventory.getSelectedItem().toString().contains("Ghost's skull")) {
coffinOpened.click();
}
}
}
It just hovers above the coffin and then just repeats it also says this in the debug:
00:07:42 INFO [OSRS Glitch] The OSRS game engine has a glitch when using consumable items on entities. This breaks most bots, so we're correcting things.
While it's a Ghost's skull and not a consumable item I quess this is a bug and has nothing to do with my own code!