Beyond GP 7 Share Posted June 6, 2022 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 More sharing options...
camelCase 282 Share Posted June 6, 2022 because boots are index 10 and legs are index 7 not 8 & 6 Beyond GP 1 Link to comment Share on other sites More sharing options...
Beyond GP 7 Author Share Posted June 6, 2022 (edited) 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 June 6, 2022 by Beyond GP Link to comment Share on other sites More sharing options...
HosfadAppeal 3 Share Posted June 6, 2022 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 Beyond GP 1 Link to comment Share on other sites More sharing options...
IvanLambert 0 Share Posted June 28, 2023 (edited) 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 July 4, 2023 by IvanLambert Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now