diff --git a/Doc/Changelog.txt b/Doc/Changelog.txt index 5c51a31..f9d129e 100644 --- a/Doc/Changelog.txt +++ b/Doc/Changelog.txt @@ -1,3 +1,7 @@ +2016-02-14 version 16 + Change Greenshade skill quest + + 2015-11-03 version 15 API bump for Orsinium diff --git a/HistOffline.lua b/HistOffline.lua index a83a824..9df2019 100644 --- a/HistOffline.lua +++ b/HistOffline.lua @@ -36,6 +36,8 @@ dofile "../../SavedVariables/History.Archive" -- newf = assert(io.open("../../SavedVariables/History.new", "w")) -- ============== --]] + + function dump(o) if type(o) == 'table' then local s = '{ ' @@ -120,7 +122,7 @@ for i,_ in pairs(History_SV["Default"]) do end function write_data() - newf = assert(io.open("../../SavedVariables/History.new", "w")) + local newf = assert(io.open("../../SavedVariables/History.new", "w")) newf:write("History_SV=" .. write_saved(History_SV)) newf:close() end @@ -231,7 +233,7 @@ end accounts[acc].dung_tog = iup.toggle{ title = L.Dungeons} - local tog = accounts[acc].dung_tog + tog = accounts[acc].dung_tog function tog:action(x) if x == 1 then accounts[acc].mode_zbox.value = accounts[acc].dung_tabs @@ -383,11 +385,11 @@ end iup.SetAttribute(me.Grp_box, "BGCOLOR0:3", Colour_Heading_Complete) end - local key = "" +-- local key = "" for id,_ in pairs (grp_dat) do local L = grp_dat[id].L local C = grp_dat[id].C - key = tostring(L).. tostring(C) -- make name key + local key = tostring(L).. tostring(C) -- make name key me.Grp_box:setcell(L, C, grp_names[key]) end @@ -418,7 +420,7 @@ end local colour = "FGCOLOR" .. pub_dat[id].L .. ":" .. pub_dat[id].C iup.SetAttribute(me.Pub_box, colour, FG_Colour_Complete) -- Add char to dungeon - key = tostring(pub_dat[id].L .. pub_dat[id].C) + local key = tostring(pub_dat[id].L .. pub_dat[id].C) dung.pub[key][char] = "Y" end end @@ -438,8 +440,8 @@ end for id,_ in pairs (pub_dat) do -- Load text local L = pub_dat[id].L local C = pub_dat[id].C - key = tostring(tostring(L) .. tostring(C)) -- make name key - dname = pub_names[key] + local key = tostring(tostring(L) .. tostring(C)) -- make name key + local dname = pub_names[key] if dname == nil then dname = "key " .. key .." not found" end @@ -468,7 +470,7 @@ end for id,_ in pairs (vet_dat) do -- Load Dungeons Name. Info LC is the Dungeon Identifier local L = vet_dat[id].L local C = vet_dat[id].C - key = tostring(L) .. tostring(C) -- make name key + local key = tostring(L) .. tostring(C) -- make name key Vet_Info[key] = {count = 0} me.Vet_box:setcell(L,C,grp_names[key] .. " (0)") end @@ -482,8 +484,8 @@ end local colour = "FGCOLOR" .. L .. ":" .. C iup.SetAttribute(me.Vet_box, colour, FG_Colour_Complete) - key = tostring(L) .. tostring(C) -- make name key - dname = grp_names[key] -- Vet Dungeons are grp + local key = tostring(L) .. tostring(C) -- make name key + local dname = grp_names[key] -- Vet Dungeons are grp if dname == nil then dname = "key " .. key .." not found" end @@ -523,7 +525,7 @@ end end for id,detail in pairs(trial_dat) do - key = detail.key + local key = detail.key Trials_Info[key].Ach[id]=false -- set them all to not done Trials_Info[key].nAch = Trials_Info[key].nAch + 1 end @@ -538,8 +540,8 @@ end local bgcolour = "BGCOLOR" .. L .. ":" .. C iup.SetAttribute(me.Trials_box, fgcolour, FG_Colour_Complete) - key = trial_dat[id].key - dname = trial_names[key] + local key = trial_dat[id].key + -- local dname = trial_names[key] --Not used Trials_Info[key].Ach[id]=true -- Mark as known -- Increment count and display Trials_Info[key].count = Trials_Info[key].count+1 @@ -564,7 +566,7 @@ end me.Trials_Detail_box = {} me.Trials_Detail_Zbox = iup.zbox{} - local name, link + local name for key, info in pairs(Trials_Info) do -- for each trial me.Trials_Detail_box[key]= iup.matrix {numcol=1, numcol_visible=1, numlin=0} local Line = 1 @@ -688,10 +690,11 @@ end -- Need to keep track of multiple achievements for WB in Zones. Index them by zone LineColumn. WB_Info={} WB_Area={} + local dname, key for id,_ in pairs (WB_dat) do -- Load World Boss Name. Info LC is the ZONE Identifier local L = WB_dat[id].L local C = WB_dat[id].C - key = tostring(L) .. tostring(C) -- make name key + local key = tostring(L) .. tostring(C) -- make name key dname = Locations[key] -- Zone Locations if dname == nil then dname = "key " .. key .." not found" @@ -793,7 +796,7 @@ end me.SQ_Detail_box = {} me.SQ_Detail_Zbox = iup.zbox{} - local name, link + local link for key, info in pairs(SQ_Info) do -- for each zone me.SQ_Detail_box[key]= iup.matrix {numcol=2, numcol_visible=2, numlin=0} diff --git a/data/data.lua b/data/data.lua index cdfee64..b8dfdf3 100644 --- a/data/data.lua +++ b/data/data.lua @@ -310,7 +310,8 @@ SQ_dat = { --["33"] = "Greenshade", [511] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Pelidil%27s_End"}, -[945] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Striking_at_the_Heart"}, +--[945] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Striking_at_the_Heart"}, -- Striking is a composite of 3 quests +[512] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Striking_at_the_Heart"}, -- Achievement grantin skill pt is Valenwood Protector [510] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Throne_of_the_Wilderking"}, -- Malabal-Tor diff --git a/history.txt b/history.txt index f42b05f..05fe944 100644 --- a/history.txt +++ b/history.txt @@ -1,6 +1,6 @@ ## Title: Dad's History -## APIVersion: 100013 -## Version: 15 +## APIVersion: 100014 +## Version: 16 ## Author: HisDad ## Description: Record progress of all characters for offline viewing. ## SavedVariables: History_SV