- Joined
- Mar 26, 2016
- Messages
- 166
- Thread Author
- #1
-It is not detecting the items in the inventory.
These are both coming up false,yet i have a glory,and a Rune scimitar.
-it is not detecting the items equipped either .
-It seems to be detecting items in the bank but is unable to interact with it,it just hovers over the item.
These are both coming up false,yet i have a glory,and a Rune scimitar.
Code:
public boolean invHasGlory() {
return Inventory.contains(t -> t.getId() == GLORY[0] || t.getId() == GLORY[1] || t.getId() == GLORY[2]
|| t.getId() == GLORY[3] || t.getId() == GLORY[4] || t.getId() == GLORY[5]);
}
public boolean invHasWeapon() {
return Inventory.contains(script.getWeapon());
}
-it is not detecting the items equipped either .
Code:
public boolean equipHasWeapon() {
return Equipment.contains(script.getWeapon());
}
public boolean equipHasGlory() {
return Equipment.contains(t -> t.getId() == GLORY[0] || t.getId() == GLORY[1]
|| t.getId() == GLORY[2] || t.getId() == GLORY[3] || t.getId() == GLORY[4] || t.getId() == GLORY[5]);
}
-It seems to be detecting items in the bank but is unable to interact with it,it just hovers over the item.
Code:
public boolean withDrawGlory() {
return Bank.withdraw("Amulet of glory(6)",1);
}
public boolean withdrawWeapon(){
return Bank.withdraw(script.getWeapon(), 1);
}
Last edited: