Quantcast Map changes. - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-06-18, 02:51 AM   #1
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 175
Map changes.

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:
  1. function private_table.eventFrame:UI_INFO_MESSAGE(...)
  2.     local arg1, arg2 = ...
  3.     print(arg1)
  4.     print(arg2)
  5.     addon:Check_Dates()
  6.     if arg1 == 370 then
  7.         local zone = {}
  8.         zone.time = time()
  9.         print(zone.time)
  10.         zone.continent = GetCurrentMapContinent()
  11.         print(zone.continent)
  12.         zone.zoneName = GetZoneText()
  13.         print(zone.zoneName)
  14.         zone.subzoneName = GetSubZoneText()
  15.         print(zone.subzoneName)    
  16.         table.insert(HistoriaLocalDb.Area, zone)
  17.         --  Insert new area in the dates table
  18.         table.insert(HistoriaLocalDb.Dates[addon.YS][addon.MS][addon.DS].Area, zone)
  19.     end    
  20. end
__________________
Better to fail then never have tried at all.
  Reply With Quote
 

WoWInterface » PTR » PTR General Discussion » Map changes.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off