Stats stat = Stats.valueOfXml(n.getAttributes().getNamedItem("stat").getNodeValue());
String order = n.getAttributes().getNamedItem("order").getNodeValue();
Lambda lambda = getLambda(n, template);
int ord = Integer.decode(getValue(order, template));
Condition applayCond = parseCondition(n.getFirstChild(), template);
FuncTemplate ft = new FuncTemplate(attachCond, applayCond, name, stat, ord, lambda);
if (template instanceof L2Item) ((L2Item) template).attach(ft);
else if (template instanceof L2Skill) ((L2Skill) template).attach(ft);
else if (template instanceof EffectTemplate) ((EffectTemplate) template).attach(ft);
}