pigfarmer Posted June 8, 2020 Posted June 8, 2020 Hi! I am trying to get the armor and weapons that the bot is currently using. Something like this; myPlayer().getArmor();
Lol_marcus Posted June 8, 2020 Posted June 8, 2020 getEquipment().isWearingItem(EquipmentSlot.HAT, "Bronze med helm"); getEquipment().isWieldingWeapon("Bronze scimitar"); getEquipment().isWearingItem(EquipmentSlot.CHEST, "Bronze plateobody"); https://osbot.org/api/org/osbot/rs07/api/Equipment.html 1
Nbacon Posted June 9, 2020 Posted June 9, 2020 @Lol_marcus idea could work but https://osbot.org/api/org/osbot/rs07/api/util/ItemContainer.html is better becuase Equipment extends it and gets methods like contains(stuff...), getItems(), onlyContains(stuff...). Items[] MyArmor =getEquipment().getItems() 1