Hey guys, I am just getting started with writing scripts for osbot, but I have a basic knowledge of java. I am trying to write code that will determine which axe to use for woodcutting depending on the players woodcutting level. I've created an array with all of the different axes, but now I am stuck on how to set a specific number value that corresponds with each axe (for example rune axe = lvl 41, dragon axe = lvl 61).
String[] axes = {"Bronze axe", "Iron axe", "Steel axe", "Mithril axe", "Adamant axe", "Rune axe", "Dragon axe"};
I was thinking about using a for loop to cycle through the array until it finds the highest possible axe that can be used, but like I said, I'm not sure how to create a connection between the two values. Any help would be appreciated. Thanks!