if(!val.equals(""))
{
boolean open = Integer.parseInt(val) == 1;
while(st.hasMoreTokens())
{
castle.openCloseDoor(player, Integer.parseInt(st.nextToken()), open);
}
}
NpcHtmlMessage html = new NpcHtmlMessage(player, this);
html.setFile("data/html/castle/chamberlain/" + getTemplate().npcId + "-d.htm");
html.replace("%npcname%", getName());