Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Problems retrieving certain items from certain equipment slots


    Beyond GP

    Recommended Posts

    Hello,

    I am using gear recognition in some of my private scripts, but I'm having problems retrieving the items worn in the leg and boots slots. There's probably a simple thing I have overlooked here, would be very helpful if a bright mind could point me in the right direction! 

     

    Some very simple code to illustrate the problem follows, I will look for the gear I am wearing myself, and I am wearing gear in all the slots I am retrieving the item from. 

     

    int itemIdHead = Client.getLocalPlayer().getComposite().getAppearance()[0] - 512;
    Item headItem = new Item(itemIdHead, 1);
    
    int itemIdChest = Client.getLocalPlayer().getComposite().getAppearance()[4] - 512;
    Item chestItem = new Item(itemIdChest, 1);
    
    int itemIdLegs = Client.getLocalPlayer().getComposite().getAppearance()[6] - 512;
    Item legItem = new Item(itemIdLegs, 1);
    
    int itemIdBoots = Client.getLocalPlayer().getComposite().getAppearance()[8] - 512;
    Item bootsItem = new Item(itemIdBoots, 1);
    
    int itemIdCape = Client.getLocalPlayer().getComposite().getAppearance()[1] - 512;
    Item capeItem = new Item(itemIdCape, 1);
    
    MethodProvider.log("Item in head slot: " + headItem.getName());
    MethodProvider.log("Item in chest slot: " + chestItem.getName());
    MethodProvider.log("Item in leg slot: " + legItem .getName());
    MethodProvider.log("Item in boots slot: " +bootsItem.getName());
    MethodProvider.log("Item in cape slot: " + capeItem.getName());

    The console is simply empty with regard to the  items in the leg and boots slots. Why? 

     

     

     

     

    Link to comment
    Share on other sites

    Great, that works, thanks. There seems to be two separate index systems then - because if you write;

    MethodProvider.log(Equipment.getItemInSlot(8).getName());
    

    you will get the boots.

     

    Edited by Beyond GP
    Link to comment
    Share on other sites

    1 hour ago, Beyond GP said:

    Hello,

    I am using gear recognition in some of my private scripts, but I'm having problems retrieving the items worn in the leg and boots slots. There's probably a simple thing I have overlooked here, would be very helpful if a bright mind could point me in the right direction! 

     

    Some very simple code to illustrate the problem follows, I will look for the gear I am wearing myself, and I am wearing gear in all the slots I am retrieving the item from. 

     

    int itemIdHead = Client.getLocalPlayer().getComposite().getAppearance()[0] - 512;
    Item headItem = new Item(itemIdHead, 1);
    
    int itemIdChest = Client.getLocalPlayer().getComposite().getAppearance()[4] - 512;
    Item chestItem = new Item(itemIdChest, 1);
    
    int itemIdLegs = Client.getLocalPlayer().getComposite().getAppearance()[6] - 512;
    Item legItem = new Item(itemIdLegs, 1);
    
    int itemIdBoots = Client.getLocalPlayer().getComposite().getAppearance()[8] - 512;
    Item bootsItem = new Item(itemIdBoots, 1);
    
    int itemIdCape = Client.getLocalPlayer().getComposite().getAppearance()[1] - 512;
    Item capeItem = new Item(itemIdCape, 1);
    
    MethodProvider.log("Item in head slot: " + headItem.getName());
    MethodProvider.log("Item in chest slot: " + chestItem.getName());
    MethodProvider.log("Item in leg slot: " + legItem .getName());
    MethodProvider.log("Item in boots slot: " +bootsItem.getName());
    MethodProvider.log("Item in cape slot: " + capeItem.getName());

    The console is simply empty with regard to the  items in the leg and boots slots. Why? 

    Hello , i would suggest using the Equipment class to get the items 
    You can do something like 

    Equipment.getItemInSlot(EquipmentSlot.LEGS);
    

    to get a specific item , or use 

    Equipment.all()
    

    to get all Equipment items

    Link to comment
    Share on other sites

    • 1 year later...

    That can definitely be frustrating! When it comes to troubleshooting such problems, it's important to check casino terms and conditions in Canada. They usually outline the rules and guidelines for using the platform. There may be specific instructions or limitations regarding item retrieval. If you cannot find the information you need, reaching out to the casino's customer support team would be a good idea.

    Edited by IvanLambert
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.