In my addon I log newly discovred area's.
Worked just fine using the code below.
But in the Beta GetCurrentMapContinent() throws an error.
Does anybody know where I can find the new Api commands related to the maps?
The prints statements are there for debugging reasons only
Lua Code:
function private_table.eventFrame:UI_INFO_MESSAGE(...)
local arg1, arg2 = ...
print(arg1)
print(arg2)
addon:Check_Dates()
if arg1 == 370 then
local zone = {}
zone.time = time()
print(zone.time)
zone.continent = GetCurrentMapContinent()
print(zone.continent)
zone.zoneName = GetZoneText()
print(zone.zoneName)
zone.subzoneName = GetSubZoneText()
print(zone.subzoneName)
table.insert(HistoriaLocalDb.Area, zone)
-- Insert new area in the dates table
table.insert(HistoriaLocalDb.Dates[addon.YS][addon.MS][addon.DS].Area, zone)
end
end