Element e = (Element) childs.get(i);
int id = e.getAttribute("id").getIntValue();
int posX = e.getAttribute("posX").getIntValue();
int posY = e.getAttribute("posY").getIntValue();
Npc npc = NpcLoader.getInstance().getNpc(id);
npc.setX(posX);
npc.setY(posY);
npcs.addNpc(npc);
}
} catch (Exception e) {
e.printStackTrace();