-
Notifications
You must be signed in to change notification settings - Fork 14
/
WorldQuestTracker_RareFinder.lua
75 lines (62 loc) · 1.43 KB
/
WorldQuestTracker_RareFinder.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
-- ~disabled
local addonId, wqtInternal = ...
--world quest tracker object
local WorldQuestTracker = WorldQuestTrackerAddon
if (not WorldQuestTracker) then
return
end
--framework
local DF = _G ["DetailsFramework"]
if (not DF) then
print ("|cFFFFAA00World Quest Tracker: framework not found, if you just installed or updated the addon, please restart your client.|r")
return
end
--localization
local L = DF.Language.GetLanguageTable(addonId)
local GameCooltip = GameCooltip2
local ff = WorldQuestTrackerFinderFrame
local rf = WorldQuestTrackerRareFrame
local _
rf.RecentlySpotted = {}
rf.LastPartyRareShared = 0
rf.FullRareListSendCooldown = 0
rf.CommGlobalCooldown = 0
rf.RareSpottedSendCooldown = {}
rf.MinimapScanCooldown = {}
rf.COMM_IDS = {
RARE_SPOTTED = "RS1",
RARE_REQUEST = "RR1",
RARE_LIST = "RL1",
}
--> enum spotted comm indexes
rf.COMM_RARE_SPOTTED = {
WHOSPOTTED = 2,
SOURCECHANNEL = 3,
RARENAME = 4,
RARESERIAL = 5,
MAPID = 6,
PLAYERX = 7,
PLAYERY = 8,
ISRELIABLE = 9,
LOCALTIME = 10,
}
--> enum rare list received comm indexes
rf.COMM_RARE_LIST = {
--[1] PREFIX (always)
WHOSENT = 2,
RARELIST = 3,
SOURCECHANNEL = 4,
}
--> enum raretable indexes
rf.RARETABLE = {
TIMESPOTTED = 1;
MAPID = 2;
PLAYERX = 3;
PLAYERY = 4;
RARESERIAL = 5;
RARENAME = 6;
WHOSPOTTED = 7;
SERVERTIME = 8;
FROMPREMADE = 9;
}
WorldQuestTracker.RareWidgets = {}