- Joined
- Jun 21, 2014
- Messages
- 350
- Thread Author
- #1
Here is the code I'm trying to use to get the falcon specific to the local player, however it always gives me an NPE. I get a java.lang.arrayindexoutofboundsexception error when it tries to run.
The HintArrow definitely is not null and from what I understand, 0 should be the very first loaded HintArrow, so what is causing the error?
Edit: Mostly fixed, I'm just having problems with interacting with the falcon...
Code:
if (HintArrows.getLoaded() != null) {
HintArrow caught = HintArrows.getLoaded().get(0);
if (caught != null) {
Npc caughtBird = Npcs.getLoadedAt(caught.getPosition()).first();
clickThing(caughtBird, "Retrieve");
}
}
Edit: Mostly fixed, I'm just having problems with interacting with the falcon...
Last edited: