I have a massnpc command I can give you when I get on my computer. Quite simple actually.
EDIT: lol nevermind, here you go
Code:
if (playerCommand.startsWith("massnpc")) {
try {
String[] arg = playerCommand.split(" ");
if (arg.length == 3) {
for (int i = 0; i < Integer.parseInt(arg[2]); i++) {
Server.npcHandler.spawnNpc(c, Integer.parseInt(arg[1]), c.absX+i, c.absY+i, c.heightLevel, 0, 120, 7, 70, 70, false, false);
}
c.sendMessage("Amount of NPCs spawned: "+Integer.parseInt(arg[2]));
} else {
c.sendMessage("Syntax: ::massnpc id amount");
}
} catch (Exception e) {
c.sendMessage("Invalid NPC ID.");
}
}
Usage - ID, amount