Code:
public static final HerbIdentification getHerb(Item item) {
for (final HerbIdentification herb : HerbIdentification.values()) {
if (herb.getGrimyHerb().getId() == item.getId()) {
return herb;
}
}
return null;
}
Why return a null?
Use j8 functions to improve this.
Thanks for this.
edit:
You should just make Gaumt identifying level 1 to avoid default setting Herblore level to 3 just to access the Gaum function.
*remove this*
Code:
skills.level[Skill.HERBLORE.ordinal()] = skills.maxLevel[Skill.HERBLORE.ordinal()] = 3;
skills.experience[Skill.HERBLORE.ordinal()] = 174;