When using the following code:
Code:
if (npcs[i].npcType == 2043)
c.getPA().stillGfx(271, coords[1][1], coords[1][2], c.heightLevel, 2);
the server throws a fatal exception at me:
Code:
[13-1-17 14:02]: java.lang.ArrayIndexOutOfBoundsException: 2
[13-1-17 14:02]: A fatal exception has been thrown!
[13-1-17 14:02]: at server.model.npcs.NPCHandler.attackPlayer(NPCHandler.java:2434)
[13-1-17 14:02]: at server.model.npcs.NPCHandler.process(NPCHandler.java:1209)
[13-1-17 14:02]: at server.Server.main(Server.java:159)
Anyone who knows how to get around this fatal exception?