public void spawnWave(Client c) {
		if (c != null && c.inBarbDef) {
			c.getCombat().resetPrayers();
			if (c.barbWave >= WAVES.length) {
				endGame(c, true);
				c.barbWave = 0;
				return;				
			}
			if (c.barbWave < 0)
				return;
			int npcAmount = WAVES[c.barbWave].length;
			for (int j = 0; j < npcAmount; j++) {
				int npc = WAVES[c.barbWave][j];
				int X = COORDS[j][0];
				int Y = COORDS[j][1];
				int H = c.heightLevel;
				int hp = getHp(npc);
				int max = getMax(npc);
				int atk = getAtk(npc);
				int def = getDef(npc);
				Server.npcHandler.spawnNpc(c, npc, X, Y, H, 0, hp, max, atk, def, true, npc == 5247);
				if (npc == 5247)
					spawnHelpers(c, COORDS);
				c.getPA().stillGfx(86, X, Y, c.heightLevel, 0);
			}
			if (c.barbLeader <= 0) 
				Server.npcHandler.spawnNpc3(c, 751, 3168, 9758, c.heightLevel, 0, 0, 0, 0, 0, false, false);
			NPC n = Server.npcHandler.npcs[c.barbLeader];
			n.requestAnimation(6728, 0);
			n.gfx0(1176);
			n.forceChat(n.barbRandom(c, Misc.random(5)));
			c.barbsToKill = npcAmount;
			c.barbsKilled = 0;
		}
	}