Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Harvest.importFromEsohead()
- d("import data from Esohead")
- local profession
- d("Import harvest nodes:")
- for map, data in pairs(EH.savedVars["harvest"].data) do
- if string.find(map, "^", 1, true) == nil then
- d("Importing data from "..map)
- for index, nodes in pairs(data) do
- profession = index
- if profession == 6 then
- profession = 5
- end
- for _, node in pairs(nodes) do
- Harvest.saveData( map, node[1], node[2], profession, node[4], node[5] )
- end
- end
- end
- end
- d("Import chests:")
- for map, nodes in pairs(EH.savedVars["chest"].data) do
- if string.find(map, "^", 1, true) == nil then
- d("Importing data from "..map)
- for _, node in pairs(nodes) do
- Harvest.saveData( map, node[1], node[2], 6, "chest", nil )
- end
- end
- end
- d("finished")
- Harvest.RefreshPins()
- end
- SLASH_COMMANDS["/import"] = Harvest.importFromEsohead
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement