Uh... um... Phew. Let's talk about this world setting and firearms in fantasy. And, although I'm a fan and get a semi when I see people with swords getting mowed down with machine gun fire, how this doesn't make much sense in the setting.
So let's recap:
1.) There's knights(?) with armor. If there is a peerage, that's also a bit of a problem seeing as how firearms are basically the cure to feudalism and tyranny. But, that aside, EVEN TODAY, a full set of armor that's quality made and custom fitted to you will set you back $20,000 easily. And it can even get more expensive depending on the armor. And that's today, with modern tooling and metal fabrication. It's still intensive and still requires a lot of work and craftsmanship. Quality swords and knives are the same way, they cost much more than people realize. Even today.
2.) They aren't limited to just muskets/flintlocks/matchlocks, but even have bolt-action rifles and revolvers. This is an issue, because that's a lot more machining and tolerances than most people realize. And that generally signifies self-contained cartridge use and more potent propellants like some kind of smokeless powder (then again, no one is going to call a .45-70 Govt. in black powder "weak" - especially if they're shot with it and somehow survive). And, while armor plating CAN be capable of defeating some bullets (in fact that's where we get the term "bulletproofing" from - armor makers would shoot their armor with a firearm and use the dent from the bullet as a "proof mark."), that's generally reserved for only round ball blackpowder firearms. So unless this armor is magically enhanced, it's useless against such firearms.
3.) Dude got taught by his father how to use a spear. Why learn a spear if you have access to firearms? Sure, firearms are more expensive, but they can also last hundreds of years if cared for and maintained, and are much easier to learn and use than melee weapons. And safer to use. If you're going to go into a labyrinth or dungeon to kill whatever horrific monsters are down there... would you want to be within a few feet of them to kill them with a sword/spear, or would you rather be dozens and dozens of yards away and just shoot them with a firearm? I know which is a better and safer option here.