npcDat.set("npcId", id);
npcDat.set("name", name);
npcDat.set("baseHpMax", hp);
npcDat.set("basePDef", pdef);
npcDat.set("baseMDef", mdef);
L2CharTemplate template = new L2CharTemplate(npcDat);
L2DoorInstance door = new L2DoorInstance(IdFactory.getInstance().getNextId(), template, id, name, unlockable, showHp);
_staticItems.put(id, door);
L2Territory pos = new L2Territory(id);
door.setGeoPos(pos);
pos.add(ax, ay, minz, maxz);