Lolz, this happened to me to. It's your Jad.
|
i get that error after about 5 mins of server uptime then it just dc's and idk what to do to stop it.. compiler is fine etc any help?Code:[7/25/11 12:21 PM]: java.lang.NullPointerException [7/25/11 12:21 PM]: at server.model.npcs.NPCHandler.loadSpell(NPCHandler.jav a:3315) [7/25/11 12:21 PM]: at server.model.npcs.NPCHandler.attackPlayer(NPCHandler. java:3597) [7/25/11 12:21 PM]: at server.model.npcs.NPCHandler.process(NPCHandler.java: 2056) [7/25/11 12:21 PM]: at server.Server.main(Server.java:170) [7/25/11 12:21 PM]: A fatal exception has been thrown!
Lolz, this happened to me to. It's your Jad.
how do i fix it? LOLZ. just remove him or somthing?
Remove jad, unless you know a permanent fix.
Place this
public static void enterFightCaves() {
c.getPA().movePlayer(2413, 5117, c.playerId * 4);
}
public static void exitFightCaves() {
c.getPA().movePlayer(2438, 5168, 0);
}
private boolean waveCountStarted = false;
public void startFightCaves() {
if (!waveCountStarted) {
waveCountStarted = true;
Server.getTaskScheduler().schedule(new Task(1, true) {
int count = 0, timeUntilRound = 10;
@Override
protected void execute() {
count++;
c.getPA().walkableInterface(4535);
c.getPA().sendFrame126("" + timeUntilRound, 4536);
if (count == 2) {
timeUntilRound--;
count = 0;
}
if (timeUntilRound == 0) {
Server.npcHandler.spawnNpc(c, 2745, 2402, 5088, c.playerId * 4, 0, 15, 90, 6000, 300, true, false);
stop();
waveCountStarted = false;
}
}
});
}
}
public static boolean isInFightCaves() {
if(c.absX > 2358 && c.absX < 2433 && c.absY > 5042 && c.absY < 5121) {
return true;
}
return false;
}
public static void sendFightCaveRespawn() {
c.getPA().movePlayer(2438, 5168, 0);
}
public static void giveFightCaveRewards() {
sendFightCaveRespawn();
c.getItems().addItem(6570, 1);
c.sendMessage("Congratulations on conquering the Fight Caves! Enjoy your Fire Cape!");
c.getCombat().resetPrayers();
for (int i = 0; i < 20; i++) {
c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
c.getPA().refreshSkill(i);
}
}
Yeah like the posts say above, it definitely IS your Jad NPC. If i were you, just remove its entry, unless you are planning on using jad for something significant
You don't need to remove jad >.>
Just go to this lineand either // it out or fix it upNPCHandler.jav
a:3315)
Bump. I need help with this as well and not really understanding the above. Replacing my fight caves with the code above did not work.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |