-
Notifications
You must be signed in to change notification settings - Fork 8
/
GRM_AltsImport.lua
53 lines (33 loc) · 1.33 KB
/
GRM_AltsImport.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- LibAlt import
local AltsAvailableToImport = function()
local isAvailable = false;
local listOfAddons = {};
if IsInGuild() and GRM_G.guildName and GRM_G.guildName ~= "" then
-- Check the Alts addon first
if GRM.IsAddOnLoaded("Alts") and AltsDB and AltsDB.realm and AltsDB.realm[GRM_G.realmName] and
AltsDB.realm[GRM_G.realmName].altsBySource["guild:" .. GRM.SlimName(GRM_G.guildName)] and
GRM.TableLength(AltsDB.realm[GRM_G.realmName].altsBySource["guild:" .. GRM.SlimName(GRM_G.guildName)]) > 0 then
isAvailable = true;
table.insert(listOfAddons, "Alts");
end
end
return isAvailable, listOfAddons
end
local DBCheck = function()
local isAvailable, listOfAddons = AltsAvailableToImport();
if isAvailable then
end
end
GRM.ExportMainTagToNotes = function(destinationNote)
-- 1 = note, 2 == officerNote, 3 = custom
local destination = destinationNote or 1;
end
GRM.ExportAltTagToNotes = function(destinationNote)
local destination = destinationNote or 1;
end
GRM.ImportAllMains = function()
end
GRM.ImportAllAlts = function()
end
-- When setting Main, it adds the main tag to the officer note
-- [M] or [A]mainName -- mainName - see if more than 1 with same mainName, if so, include server if different server. mainName-ServerName