October 22, 20178 yr if(!api.getInventory().contains("Fire Tiara") && api.getEquipment().isWearingItem(EquipmentSlot.RING, "Ring of dueling(8)")) { // Teleport to bank and withdraw + equipt This is my code. I was wondering how I could make it so if the player is wearing ANY charge of ring (1) or (5) for example this statement will still return true? Thanks
October 22, 20178 yr Author 1 minute ago, Team Cape said: Use a filter: i -> i != null && i.getName().contains("Ring of dueling") like so? https://gyazo.com/f4a6e617729b96e691587624edfd86ba
October 22, 20178 yr if(!api.getInventory().contains("Fire Tiara") && api.getEquipment().isWearingItem(EquipmentSlot.RING, "Ring of dueling(")) { // simples, the charged stuff have a bracket e.g. (1)
Create an account or sign in to comment