So i added in chaos druid using snare, and I sometimes get this
Code:
[6/17/12 5:58 PM]: at server.game.npcs.NPCHandler.loadSpell(NPCHandler.java
:1805)
[6/17/12 5:58 PM]: at server.game.npcs.NPCHandler.attackPlayer(NPCHandler.j
ava:2130)
[6/17/12 5:58 PM]: at server.game.npcs.NPCHandler.process(NPCHandler.java:1
109)
[6/17/12 5:58 PM]: at server.Server.main(Server.java:156)
[6/17/12 5:58 PM]: A fatal exception has been thrown!
Press any key to continue . . .
It only happens sometimes; sometimes it will use snare and work, sometimes it will use snare and give off that error. Here's my code
Code:
case 181:
int randomer = Misc.random(2);
if (randomer == 0) {
npcs[i].projectileId = 94;
npcs[i].attackType = 2;
npcs[i].endGfx = 95;
} else if (randomer == 1) {
npcs[i].projectileId = 178; //snare
npcs[i].attackType = 2;
npcs[i].endGfx = 180;
c.freezeTimer = 6;
c.stopMovement();
c.getCombat().resetPlayerAttack();
c.sendMessage("You have been frozen.");
}
break;