case [NPCID]: //Npc if (player.isNoble()) //Check if PG is NOBLE filename = Noblesse/[NPCID].htm"; //if yes open this htm else filename = (getHtmlPath(npcId, val)); //if no open the normal htm break;