- Joined
- Feb 24, 2020
- Messages
- 33
- Thread Author
- #1
been messing around with my bot and there are some things i noticed i don't understand:
is very slow and somewhat unreliable therefore cannot be called regularly on itemLoot events
also another thing is the ensouled heads GrandExchange.lookup(itemID) returns not valid ID by SDK however runelite correctly tells value on drop
- Is there any difference performance wise in Mouse.setPathGenerator(Mouse.MLP_PATH_GENERATOR) vs Mouse.setPathGenerator(Mouse.CLOUSE_PATH_GENERATOR)?
- How comes that decreasing setSpeedMultiplier(double multiplier) before interaction increases the hover accuracy?
Code:
public static int GetValue(GroundItem item) {
int itemID = item.getId();
GrandExchange.Item geItem = GrandExchange.lookup(itemID);
if (geItem != null) {
int itemPrice = geItem.getPrice();
int itemQuantity = item.getQuantity();
if (itemQuantity > 1) {
return itemPrice * itemQuantity;
}
return itemPrice;
}
return 0;
}
is very slow and somewhat unreliable therefore cannot be called regularly on itemLoot events
also another thing is the ensouled heads GrandExchange.lookup(itemID) returns not valid ID by SDK however runelite correctly tells value on drop