You will have to stand in which you want the npc to be spawnedCode:if (cmd[0].equals("addspawn")) { int npcID = Integer.parseInt(cmd[1]); NPCSpawns.addNPCSpawn(npcID, player.getRegionId(), new WorldTile(player.getX(), player.getY(), 0), -1, false); World.spawnNPC(npcID, player, -1, true, true); return true; }
EDIT: Just noticed you needed it for a 530 source, This will probably not work