- Joined
- Jul 2, 2020
- Messages
- 6
- Thread Author
- #1
I'm following Snufalufugus' video guide on writing a basic treebot. He does something like the following:
I'm getting an error whenever I try to use GameObjects(), telling me that a "Method call expected". I seem to have the correct import:
I've tried adding newQuery():
I've tried adding new:
Nothing seems to work. I've looked at the API documentation and can't figure it out. I'm new to the API and haven't touched Java in years. What could I be doing wrong?
Code:
GameObject bankBooth = GameObjects().on(bank).names("Bank booth").actions("Bank").results().first();
I'm getting an error whenever I try to use GameObjects(), telling me that a "Method call expected". I seem to have the correct import:
Code:
import com.runemate.game.api.hybrid.region.GameObjects;
I've tried adding newQuery():
Code:
GameObject bankBooth = GameObjects().newQuery().on(bank).names("Bank booth").actions("Bank").results().first();
I've tried adding new:
Code:
GameObject bankBooth = new GameObjects().on(bank).names("Bank booth").actions("Bank").results().first();
Nothing seems to work. I've looked at the API documentation and can't figure it out. I'm new to the API and haven't touched Java in years. What could I be doing wrong?
Last edited: