The ID of your NPC and the name of your html file must be the same. And of course the NPC's class must be L2Merchant, or something like that, if you put it's html to the merchant's folder.
It's much simpler to search for it in MySQL, and of course in this way you don't have to ask again and again every time when you have to find an id. :P