You'd have to do something like:
Code:public int harpoonToUse() { if(c.getItems().playerHasItem(HIGHEST_LEVEL_HARPOON) { return HIGHEST_LEVEL_HARPOON; } else if(c.getItems().playerHasItem(LOWER_LEVEL_HARPOON) { //etc... } }
|
How would I make it so if they have a bigger level harpoon it would make them use that one instead of a lower level one? Tried using the wcing with the for statement.
But the old fishing base can't read it. Then I changed the wcing into a new fishing base, and that didn't work out too well. So now I am I just asking .
You'd have to do something like:
Code:public int harpoonToUse() { if(c.getItems().playerHasItem(HIGHEST_LEVEL_HARPOON) { return HIGHEST_LEVEL_HARPOON; } else if(c.getItems().playerHasItem(LOWER_LEVEL_HARPOON) { //etc... } }
public int harpoonToUse() {
if(c.getItems().(twoboons).playerHasItem(HIGHEST_L EVEL_HARPOON) {
return HIGHEST_LEVEL_HARPOON;
} else if(c.getItems().(oneharboon).playerHasItem(LOWER_L EVEL_HARPOON) {
//etc...
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |