protected void attachFunc(Node n, Object template, String name, Condition attachCond)
{
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)
{