local function old_getXY(id) return math.fmod(id, 1001)/1000, math.floor(id / 1001)/1000 end function Cartographer_Import:TryChickenTsoImport() if chickentso_CartographerDB then self:Print("Importing chickentso's notes"); for zone, zdata in pairs(chickentso_CartographerDB.namespaces.Notes.account.pois) do for id, ndata in pairs(zdata) do local x,y = old_getXY(id) if (x < 0 or x >= 1 or y < 0 or y >= 1) then self:Print("Can't import note id " .. id) else local good=Cartographer_Notes:SetNote(zone, x, y, ndata.icon, ndata.creator, 'manual', true, 'title', ndata.title, 'info', ndata.info, 'info2', ndata.info2) if (good) then self:Print("Added "..zone.." "..x..",".. y.." icon="..ndata.icon.." title="..ndata.title) end end end end else self:Print("No chickentso notes to import") end end