1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question some questions

Discussion in 'Developer Support' started by bia10, Dec 14, 2020.

  1. bia10

    Joined:
    Feb 24, 2020
    Messages:
    33
    Likes Received:
    4
    been messing around with my bot and there are some things i noticed i don't understand:
    • 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?
    Is there any api for fast item value retrieval? I have noticed that using:

    Code (Text):
    1. public static int GetValue(GroundItem item) {
    2.     int itemID = item.getId();
    3.     GrandExchange.Item geItem = GrandExchange.lookup(itemID);
    4.     if (geItem != null) {
    5.         int itemPrice = geItem.getPrice();
    6.         int itemQuantity = item.getQuantity();
    7.         if (itemQuantity > 1) {
    8.             return itemPrice * itemQuantity;
    9.         }
    10.         return itemPrice;
    11.     }
    12.     return 0;
    13. }
    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
     

Share This Page

Loading...