Beyond GP 7 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?
Beyond GP 7 Author Posted June 6, 2022 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.
HosfadAppeal 3 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
IvanLambert 0 Posted June 28, 2023 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.