heres my error
.\icedice\content\minigames\FightCave.java:96: newNPC(int,int,int,int,int,int,in t,int,boolean) in icedice.Engine cannot be applied to (int,int,int,int,int,int,i nt,int,boolean,int) Server.engine.newNPC(player.waveType[0], player.waveType [1], player.waveType[2], player.waveType[3], 0, 0, 0, 0, false, player.playerId) ;
heres my method in the fightcave class
public void fightSystem() { switch (player.waveCount) { case 0: player.waveType[0] = 2735; player.waveType[1] = 2408; player.waveType[2] = 5100; player.waveType[3] = player.heightLevel; player.waveType[4] = 1; break; case 1: player.waveType[0] = 2735; player.waveType[1] = 2405; player.waveType[2] = 5095; player.waveType[3] = player.heightLevel; player.waveType[4] = 2; break; case 2: player.waveType[0] = 2737; player.waveType[1] = 2400; player.waveType[2] = 5093; player.waveType[3] = player.heightLevel; player.waveType[4] = 3; break; case 5: player.waveType[0] = 2739; player.waveType[1] = 2387; player.waveType[2] = 5104; player.waveType[3] = player.heightLevel; player.waveType[4] = 4; break; case 6: player.waveType[0] = 2741; player.waveType[1] = 2390; player.waveType[2] = 5099; player.waveType[3] = player.heightLevel; player.waveType[4] = 5; break; case 7: player.waveType[0] = 2743; player.waveType[1] = 2391; player.waveType[2] = 5089; player.waveType[3] = player.heightLevel; player.waveType[4] = 6; break; case 8: player.waveType[0] = 2744; player.waveType[1] = 2391; player.waveType[2] = 5089; player.waveType[3] = player.heightLevel; player.waveType[4] = 7; break; case 9: player.frames.showChatboxInterface(player, 241); player.frames.animateInterfaceId(player, 9847, 241, 2); player.frames.setNPCId(player, 2617, 241, 2); player.frames.setString(player, "TzHaar-Mej-Jal", 241, 3); player.frames.setString(player, "Watch out here comes Tztok-Jad!", 241, 4); player.waveType[0] = 2745; player.waveType[1] = 2415; player.waveType[2] = 5081; player.waveType[3] = player.heightLevel; player.waveType[4] = 8; break; } if (hasNeededKills()) Server.engine.newNPC(player.waveType[0], player.waveType[1], player.waveType[2], player.waveType[3], 0, 0, 0, 0, false, player.playerId); player.waveDelay = -1; }
heres line 96
Server.engine.newNPC(player.waveType[0], player.waveType[1], player.waveType[2], player.waveType[3], 0, 0, 0, 0, false, player.playerId);
heres it is in the engine
for (NPC n : npcs) { if (n == null) { continue; } npcUpdate.clearUpdateMasks(n); } for (NPC n : npcs) { if (n == null) { continue; } n.process(); if (!n.isDead) { if (n.randomWalk && !n.attackingPlayer) { npcMovement.randomWalk(n); } } else { if (!n.deadEmoteDone) { n.requestAnim(n.deathEmote, 0); n.deadEmoteDone = true; n.combatDelay = 3; } else if (n.deadEmoteDone && !n.hiddenNPC && n.combatDelay <= 0) { n.npcDied(Engine.players[1], n.npcType, n.absX, n.absY); n.hiddenNPC = true; } else if (n.deadEmoteDone && !n.hiddenNPC && n.combatDelay <= 0) { n.hiddenNPC = true; } else if (n.hiddenNPC && n.respawnDelay <= 0) { if (n.needsRespawn) { newNPC(n.npcType, n.makeX, n.makeY, n.heightLevel, n.moveRangeX1, n.moveRangeY1, n.moveRangeX2, n.moveRangeY2, true); } npcs[n.npcId] = null; rebuildNPCs(); } } lastEntityUpdate = curTime; }
i dont really know whats causing this.. im still a noob to java. please help and if u need any more information let me know!