Constants.lua

Constants.lua (8.3.0.34220; unchanged since 8.3.0.33062)
  1. --
  2. -- New constants should be added to this file and other constants
  3. -- deprecated and moved to this file.
  4. --
  5. Constant = {
  6. Currency =
  7. {
  8. Honor = 1585,
  9. Conquest = 1602,
  10. }
  11. };
  12. --
  13. -- Expansion Info
  14. --
  15. MAX_PLAYER_LEVEL_TABLE = {};
  16. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_CLASSIC] = 60;
  17. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_BURNING_CRUSADE] = 70;
  18. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_WRATH_OF_THE_LICH_KING] = 80;
  19. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_CATACLYSM] = 85;
  20. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_MISTS_OF_PANDARIA] = 90;
  21. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_WARLORDS_OF_DRAENOR] = 100;
  22. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_LEGION] = 110;
  23. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_BATTLE_FOR_AZEROTH] = 120;
  24. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_9_0] = 120;
  25. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_10_0] = 120;
  26. MAX_PLAYER_LEVEL_TABLE[LE_EXPANSION_11_0] = 120;
  27. NPE_TUTORIAL_COMPLETE_LEVEL = 10;
  28. --
  29. -- Colors
  30. --
  31. NORMAL_FONT_COLOR_CODE = "|cffffd200";
  32. HIGHLIGHT_FONT_COLOR_CODE = "|cffffffff";
  33. RED_FONT_COLOR_CODE = "|cffff2020";
  34. GREEN_FONT_COLOR_CODE = "|cff20ff20";
  35. GRAY_FONT_COLOR_CODE = "|cff808080";
  36. YELLOW_FONT_COLOR_CODE = "|cffffff00";
  37. LIGHTYELLOW_FONT_COLOR_CODE = "|cffffff9a";
  38. ORANGE_FONT_COLOR_CODE = "|cffff7f3f";
  39. ACHIEVEMENT_COLOR_CODE = "|cffffff00";
  40. BATTLENET_FONT_COLOR_CODE = "|cff82c5ff";
  41. DISABLED_FONT_COLOR_CODE = "|cff7f7f7f";
  42. FONT_COLOR_CODE_CLOSE = "|r";
  43. NORMAL_FONT_COLOR = CreateColor(1.0, 0.82, 0.0);
  44. WHITE_FONT_COLOR = CreateColor(1.0, 1.0, 1.0);
  45. HIGHLIGHT_FONT_COLOR = CreateColor(1.0, 1.0, 1.0);
  46. RED_FONT_COLOR = CreateColor(1.0, 0.1, 0.1);
  47. DIM_RED_FONT_COLOR = CreateColor(0.8, 0.1, 0.1);
  48. DULL_RED_FONT_COLOR = CreateColor(0.75, 0.15, 0.15);
  49. GREEN_FONT_COLOR = CreateColor(0.1, 1.0, 0.1);
  50. GRAY_FONT_COLOR = CreateColor(0.5, 0.5, 0.5);
  51. YELLOW_FONT_COLOR = CreateColor(1.0, 1.0, 0.0);
  52. LIGHTYELLOW_FONT_COLOR = CreateColor(1.0, 1.0, 0.6);
  53. ORANGE_FONT_COLOR = CreateColor(1.0, 0.5, 0.25);
  54. PASSIVE_SPELL_FONT_COLOR = CreateColor(0.77, 0.64, 0.0);
  55. BATTLENET_FONT_COLOR = CreateColor(0.510, 0.773, 1.0);
  56. TRANSMOGRIFY_FONT_COLOR = CreateColor(1, 0.5, 1);
  57. DISABLED_FONT_COLOR = CreateColor(0.498, 0.498, 0.498);
  58. LIGHTBLUE_FONT_COLOR = CreateColor(0.53, 0.67, 1.0);
  59. LIGHTGRAY_FONT_COLOR = CreateColor(0.6, 0.6, 0.6);
  60. PAPER_FRAME_EXPANDED_COLOR = CreateColor(0.929, 0.788, 0.620);
  61. PAPER_FRAME_COLLAPSED_COLOR = CreateColor(0.827, 0.659, 0.463);
  62. ARTIFACT_BAR_COLOR = CreateColor(0.901, 0.8, 0.601);
  63. WARBOARD_OPTION_TEXT_COLOR = CreateColor(0.28, 0.02, 0.02);
  64. DEFAULT_CHAT_CHANNEL_COLOR = CreateColor(1.0, 0.753, 0.753);
  65. DIM_GREEN_FONT_COLOR = CreateColor(0.251, 0.753, 0.251); -- Used for officer chat in guilds.
  66. BLACK_FONT_COLOR = CreateColor(0.0, 0.0, 0.0);
  67. LINK_FONT_COLOR = CreateColor(102.0 / 255.0, 187.0 / 255.0, 255.0 / 255.0); -- Light blue that we use for system links. E.g. calendar events and nydus links in the shop.
  68. SEPIA_COLOR = CreateColor(0.565, 0.377, 0.157);
  69. CORRUPTION_COLOR = CreateColor(0.584, 0.428, 0.82);
  70. QUEST_OBJECTIVE_FONT_COLOR = CreateColor(0.8, 0.8, 0.8);
  71. QUEST_OBJECTIVE_HIGHLIGHT_FONT_COLOR = HIGHLIGHT_FONT_COLOR;
  72. QUEST_OBJECTIVE_DISABLED_FONT_COLOR = DISABLED_FONT_COLOR;
  73. QUEST_OBJECTIVE_DISABLED_HIGHLIGHT_FONT_COLOR = LIGHTGRAY_FONT_COLOR;
  74. AREA_NAME_FONT_COLOR = CreateColor(1.0, 0.9294, 0.7607);
  75. AREA_DESCRIPTION_FONT_COLOR = HIGHLIGHT_FONT_COLOR;
  76. INVASION_FONT_COLOR = CreateColor(0.78, 1, 0);
  77. INVASION_DESCRIPTION_FONT_COLOR = CreateColor(1, 0.973, 0.035);
  78. FACTION_BAR_COLORS = {
  79. [1] = {r = 0.8, g = 0.3, b = 0.22},
  80. [2] = {r = 0.8, g = 0.3, b = 0.22},
  81. [3] = {r = 0.75, g = 0.27, b = 0},
  82. [4] = {r = 0.9, g = 0.7, b = 0},
  83. [5] = {r = 0, g = 0.6, b = 0.1},
  84. [6] = {r = 0, g = 0.6, b = 0.1},
  85. [7] = {r = 0, g = 0.6, b = 0.1},
  86. [8] = {r = 0, g = 0.6, b = 0.1},
  87. };
  88. WORLD_QUEST_ICONS_BY_PROFESSION = {
  89. [129] = "worldquest-icon-firstaid",
  90. [164] = "worldquest-icon-blacksmithing",
  91. [165] = "worldquest-icon-leatherworking",
  92. [171] = "worldquest-icon-alchemy",
  93. [182] = "worldquest-icon-herbalism",
  94. [186] = "worldquest-icon-mining",
  95. [202] = "worldquest-icon-engineering",
  96. [333] = "worldquest-icon-enchanting",
  97. [755] = "worldquest-icon-jewelcrafting",
  98. [773] = "worldquest-icon-inscription",
  99. [794] = "worldquest-icon-archaeology",
  100. [356] = "worldquest-icon-fishing",
  101. [185] = "worldquest-icon-cooking",
  102. [197] = "worldquest-icon-tailoring",
  103. [393] = "worldquest-icon-skinning",
  104. };
  105. CHAT_FONT_HEIGHTS = {
  106. [1] = 12,
  107. [2] = 14,
  108. [3] = 16,
  109. [4] = 18
  110. };
  111. MATERIAL_TEXT_COLOR_TABLE = {
  112. ["Default"] = {0.18, 0.12, 0.06},
  113. ["Stone"] = {1.0, 1.0, 1.0},
  114. ["Parchment"] = {0.18, 0.12, 0.06},
  115. ["Marble"] = {0, 0, 0},
  116. ["Silver"] = {0.12, 0.12, 0.12},
  117. ["Bronze"] = {0.18, 0.12, 0.06},
  118. ["ParchmentLarge"] = {.141, 0, 0}
  119. };
  120. MATERIAL_TITLETEXT_COLOR_TABLE = {
  121. ["Default"] = {0, 0, 0},
  122. ["Stone"] = {0.93, 0.82, 0},
  123. ["Parchment"] = {0, 0, 0},
  124. ["Marble"] = {0.93, 0.82, 0},
  125. ["Silver"] = {0.93, 0.82, 0},
  126. ["Bronze"] = {0.93, 0.82, 0},
  127. ["ParchmentLarge"] = {.208, 0, 0}
  128. };
  129. FRIENDS_BNET_NAME_COLOR = CreateColor(0.510, 0.773, 1.0);
  130. FRIENDS_BNET_BACKGROUND_COLOR = CreateColor(0, 0.694, 0.941, 0.05);
  131. FRIENDS_WOW_NAME_COLOR = CreateColor(0.996, 0.882, 0.361);
  132. FRIENDS_WOW_BACKGROUND_COLOR = CreateColor(1.0, 0.824, 0.0, 0.05);
  133. FRIENDS_GRAY_COLOR = CreateColor(0.486, 0.518, 0.541);
  134. FRIENDS_OFFLINE_BACKGROUND_COLOR = CreateColor(0.588, 0.588, 0.588, 0.05);
  135. FRIENDS_BNET_NAME_COLOR_CODE = "|cff82c5ff";
  136. FRIENDS_BROADCAST_TIME_COLOR_CODE = "|cff4381a8"
  137. FRIENDS_WOW_NAME_COLOR_CODE = "|cfffde05c";
  138. FRIENDS_OTHER_NAME_COLOR_CODE = "|cff7b8489";
  139. HTML_START = "

    ";

  140. HTML_START_CENTERED = "

    ";

  141. HTML_END = "

    "
    ;
  142. --
  143. -- Class
  144. --
  145. CLASS_SORT_ORDER = {
  146. "WARRIOR",
  147. "DEATHKNIGHT",
  148. "PALADIN",
  149. "MONK",
  150. "PRIEST",
  151. "SHAMAN",
  152. "DRUID",
  153. "ROGUE",
  154. "MAGE",
  155. "WARLOCK",
  156. "HUNTER",
  157. "DEMONHUNTER",
  158. };
  159. MAX_CLASSES = #CLASS_SORT_ORDER;
  160. LOCALIZED_CLASS_NAMES_MALE = {};
  161. LOCALIZED_CLASS_NAMES_FEMALE = {};
  162. FillLocalizedClassList(LOCALIZED_CLASS_NAMES_MALE, false);
  163. FillLocalizedClassList(LOCALIZED_CLASS_NAMES_FEMALE, true);
  164. --
  165. -- Spell
  166. --
  167. HUNTER_DISMISS_PET = 2641;
  168. WARLOCK_METAMORPHOSIS = 103958;
  169. WARLOCK_SOULBURN = 117198;
  170. WARLOCK_GREEN_FIRE = 101508;
  171. BATTLEGROUND_ENLISTMENT_BONUS = 241260;
  172. SCHOOL_MASK_NONE = 0x00;
  173. SCHOOL_MASK_PHYSICAL = 0x01;
  174. SCHOOL_MASK_HOLY = 0x02;
  175. SCHOOL_MASK_FIRE = 0x04;
  176. SCHOOL_MASK_NATURE = 0x08;
  177. SCHOOL_MASK_FROST = 0x10;
  178. SCHOOL_MASK_SHADOW = 0x20;
  179. SCHOOL_MASK_ARCANE = 0x40;
  180. SCHOOL_STRINGS = {
  181. STRING_SCHOOL_PHYSICAL,
  182. STRING_SCHOOL_HOLY,
  183. STRING_SCHOOL_FIRE,
  184. STRING_SCHOOL_NATURE,
  185. STRING_SCHOOL_FROST,
  186. STRING_SCHOOL_SHADOW,
  187. STRING_SCHOOL_ARCANE
  188. }
  189. MAX_POWER_PER_EMBER = 10;
  190. --
  191. -- Talent
  192. --
  193. SHOW_TALENT_LEVEL = 15;
  194. SHOW_PVP_TALENT_LEVEL = 20;
  195. SHOW_PVP_LEVEL = 10;
  196. SHOW_LFD_LEVEL = 15;
  197. SHOW_MASTERY_LEVEL = 78;
  198. CLASS_TALENT_LEVELS = {
  199. ["DEFAULT"] = { 15, 30, 45, 60, 75, 90, 100 };
  200. ["DEATHKNIGHT"] = { 56, 57, 58, 60, 75, 90, 100 };
  201. ["DEMONHUNTER"] = { 99, 100, 102, 104, 106, 108, 110 };
  202. }
  203. SPECIALIZATION_TAB = 1;
  204. TALENTS_TAB = 2;
  205. NUM_TALENT_FRAME_TABS = 2;
  206. --
  207. -- Specs
  208. --
  209. SHOW_SPEC_LEVEL = 10
  210. SPEC_WARLOCK_AFFLICTION = 1; --These are spec indices
  211. SPEC_WARLOCK_DEMONOLOGY = 2;
  212. SPEC_WARLOCK_DESTRUCTION = 3;
  213. SPEC_PRIEST_SHADOW = 3;
  214. SPEC_MONK_MISTWEAVER = 2;
  215. SPEC_MONK_BREWMASTER = 1;
  216. SPEC_MONK_WINDWALKER = 3;
  217. SPEC_PALADIN_RETRIBUTION = 3;
  218. SPEC_MAGE_ARCANE = 1;
  219. SPEC_SHAMAN_RESTORATION = 3;
  220. TALENT_SORT_ORDER = {
  221. "spec1",
  222. "spec2",
  223. };
  224. TALENT_ACTIVATION_SPELLS = {
  225. 63645,
  226. 63644,
  227. };
  228. --
  229. -- Achievement
  230. --
  231. MAX_TRACKED_ACHIEVEMENTS = 10;
  232. -- Criteria Types
  233. CRITERIA_TYPE_ACHIEVEMENT = 8;
  234. -- Achievement Flags
  235. ACHIEVEMENT_FLAGS_HAS_PROGRESS_BAR = 0x00000080;
  236. ACHIEVEMENT_FLAGS_GUILD = 0x00004000;
  237. ACHIEVEMENT_FLAGS_SHOW_GUILD_MEMBERS = 0x00008000;
  238. ACHIEVEMENT_FLAGS_SHOW_CRITERIA_MEMBERS = 0x00010000;
  239. ACHIEVEMENT_FLAGS_ACCOUNT = 0x00020000;
  240. NUM_ACHIEVEMENT_FLAGS = 3;
  241. -- Eval Tree Flags
  242. EVALUATION_TREE_FLAG_PROGRESS_BAR = 0x00000001;
  243. EVALUATION_TREE_FLAG_DO_NOT_DISPLAY = 0x00000002;
  244. NUM_EVALUATION_TREE_FLAGS = 2;
  245. --
  246. -- Inventory
  247. --
  248. -- General item constants
  249. ITEM_UNIQUE_EQUIPPED = -1;
  250. MAX_NUM_SOCKETS = 3;
  251. COMMON_GRAY_COLOR = CreateColor(0.65882, 0.65882, 0.65882);
  252. UNCOMMON_GREEN_COLOR = CreateColor(0.08235, 0.70196, 0.0);
  253. RARE_BLUE_COLOR = CreateColor(0.0, 0.56863, 0.94902);
  254. EPIC_PURPLE_COLOR = CreateColor(0.78431, 0.27059, 0.98039);
  255. LEGENDARY_ORANGE_COLOR = CreateColor(1.0, 0.50196, 0.0);
  256. ARTIFACT_GOLD_COLOR = CreateColor(0.90196, 0.8, 0.50196);
  257. HEIRLOOM_BLUE_COLOR = CreateColor(0.0, 0.8, 1);
  258. BAG_ITEM_QUALITY_COLORS = {
  259. [LE_ITEM_QUALITY_COMMON] = COMMON_GRAY_COLOR,
  260. [LE_ITEM_QUALITY_UNCOMMON] = UNCOMMON_GREEN_COLOR,
  261. [LE_ITEM_QUALITY_RARE] = RARE_BLUE_COLOR,
  262. [LE_ITEM_QUALITY_EPIC] = EPIC_PURPLE_COLOR,
  263. [LE_ITEM_QUALITY_LEGENDARY] = LEGENDARY_ORANGE_COLOR,
  264. [LE_ITEM_QUALITY_ARTIFACT] = ARTIFACT_GOLD_COLOR,
  265. [LE_ITEM_QUALITY_HEIRLOOM] = HEIRLOOM_BLUE_COLOR,
  266. [LE_ITEM_QUALITY_WOW_TOKEN] = HEIRLOOM_BLUE_COLOR,
  267. }
  268. NEW_ITEM_ATLAS_BY_QUALITY = {
  269. [LE_ITEM_QUALITY_POOR] = "bags-glow-white",
  270. [LE_ITEM_QUALITY_COMMON] = "bags-glow-white",
  271. [LE_ITEM_QUALITY_UNCOMMON] = "bags-glow-green",
  272. [LE_ITEM_QUALITY_RARE] = "bags-glow-blue",
  273. [LE_ITEM_QUALITY_EPIC] = "bags-glow-purple",
  274. [LE_ITEM_QUALITY_LEGENDARY] = "bags-glow-orange",
  275. [LE_ITEM_QUALITY_ARTIFACT] = "bags-glow-artifact",
  276. [LE_ITEM_QUALITY_HEIRLOOM] = "bags-glow-heirloom",
  277. };
  278. -- Loot
  279. LOOT_BORDER_BY_QUALITY = {
  280. [LE_ITEM_QUALITY_UNCOMMON] = "loottoast-itemborder-green",
  281. [LE_ITEM_QUALITY_RARE] = "loottoast-itemborder-blue",
  282. [LE_ITEM_QUALITY_EPIC] = "loottoast-itemborder-purple",
  283. [LE_ITEM_QUALITY_LEGENDARY] = "loottoast-itemborder-orange",
  284. [LE_ITEM_QUALITY_HEIRLOOM] = "loottoast-itemborder-heirloom",
  285. [LE_ITEM_QUALITY_ARTIFACT] = "loottoast-itemborder-artifact",
  286. };
  287. LOOT_ROLL_TYPE_PASS = 0;
  288. LOOT_ROLL_TYPE_NEED = 1;
  289. LOOT_ROLL_TYPE_GREED = 2;
  290. LOOT_ROLL_TYPE_DISENCHANT = 3;
  291. -- Item location bitflags
  292. ITEM_INVENTORY_LOCATION_PLAYER = 0x00100000;
  293. ITEM_INVENTORY_LOCATION_BAGS = 0x00200000;
  294. ITEM_INVENTORY_LOCATION_BANK = 0x00400000;
  295. ITEM_INVENTORY_LOCATION_VOIDSTORAGE = 0x00800000;
  296. ITEM_INVENTORY_BAG_BIT_OFFSET = 8; -- Number of bits that the bag index in GetInventoryItemsForSlot gets shifted to the left.
  297. -- Inventory slots
  298. INVSLOT_AMMO = 0;
  299. INVSLOT_HEAD = 1; INVSLOT_FIRST_EQUIPPED = INVSLOT_HEAD;
  300. INVSLOT_NECK = 2;
  301. INVSLOT_SHOULDER = 3;
  302. INVSLOT_BODY = 4;
  303. INVSLOT_CHEST = 5;
  304. INVSLOT_WAIST = 6;
  305. INVSLOT_LEGS = 7;
  306. INVSLOT_FEET = 8;
  307. INVSLOT_WRIST = 9;
  308. INVSLOT_HAND = 10;
  309. INVSLOT_FINGER1 = 11;
  310. INVSLOT_FINGER2 = 12;
  311. INVSLOT_TRINKET1 = 13;
  312. INVSLOT_TRINKET2 = 14;
  313. INVSLOT_BACK = 15;
  314. INVSLOT_MAINHAND = 16;
  315. INVSLOT_OFFHAND = 17;
  316. INVSLOT_RANGED = 18;
  317. INVSLOT_TABARD = 19;
  318. INVSLOT_LAST_EQUIPPED = INVSLOT_TABARD;
  319. INVSLOTS_EQUIPABLE_IN_COMBAT = {
  320. [INVSLOT_MAINHAND] = true,
  321. [INVSLOT_OFFHAND] = true,
  322. [INVSLOT_RANGED] = true,
  323. }
  324. -- Container constants
  325. ITEM_INVENTORY_BANK_BAG_OFFSET = 4; -- Number of bags before the first bank bag
  326. CONTAINER_BAG_OFFSET = 19; -- Used for PutItemInBag
  327. BACKPACK_CONTAINER = 0;
  328. BANK_CONTAINER = -1;
  329. BANK_CONTAINER_INVENTORY_OFFSET = 39; -- Used for PickupInventoryItem
  330. KEYRING_CONTAINER = -2;
  331. REAGENTBANK_CONTAINER = -3;
  332. NUM_BAG_SLOTS = 4;
  333. NUM_BANKGENERIC_SLOTS = 28;
  334. NUM_BANKBAGSLOTS = 7;
  335. -- Item IDs
  336. HEARTHSTONE_ITEM_ID = 6948;
  337. --
  338. -- Equipment Set
  339. --
  340. MAX_EQUIPMENT_SETS_PER_PLAYER = 10;
  341. EQUIPMENT_SET_EMPTY_SLOT = 0;
  342. EQUIPMENT_SET_IGNORED_SLOT = 1;
  343. EQUIPMENT_SET_ITEM_MISSING = -1;
  344. --
  345. -- Combat Log
  346. --
  347. -- Affiliation
  348. COMBATLOG_OBJECT_AFFILIATION_MINE = 0x00000001;
  349. COMBATLOG_OBJECT_AFFILIATION_PARTY = 0x00000002;
  350. COMBATLOG_OBJECT_AFFILIATION_RAID = 0x00000004;
  351. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER = 0x00000008;
  352. COMBATLOG_OBJECT_AFFILIATION_MASK = 0x0000000F;
  353. -- Reaction
  354. COMBATLOG_OBJECT_REACTION_FRIENDLY = 0x00000010;
  355. COMBATLOG_OBJECT_REACTION_NEUTRAL = 0x00000020;
  356. COMBATLOG_OBJECT_REACTION_HOSTILE = 0x00000040;
  357. COMBATLOG_OBJECT_REACTION_MASK = 0x000000F0;
  358. -- Ownership
  359. COMBATLOG_OBJECT_CONTROL_PLAYER = 0x00000100;
  360. COMBATLOG_OBJECT_CONTROL_NPC = 0x00000200;
  361. COMBATLOG_OBJECT_CONTROL_MASK = 0x00000300;
  362. -- Unit type
  363. COMBATLOG_OBJECT_TYPE_PLAYER = 0x00000400;
  364. COMBATLOG_OBJECT_TYPE_NPC = 0x00000800;
  365. COMBATLOG_OBJECT_TYPE_PET = 0x00001000;
  366. COMBATLOG_OBJECT_TYPE_GUARDIAN = 0x00002000;
  367. COMBATLOG_OBJECT_TYPE_OBJECT = 0x00004000;
  368. COMBATLOG_OBJECT_TYPE_MASK = 0x0000FC00;
  369. -- Special cases (non-exclusive)
  370. COMBATLOG_OBJECT_TARGET = 0x00010000;
  371. COMBATLOG_OBJECT_FOCUS = 0x00020000;
  372. COMBATLOG_OBJECT_MAINTANK = 0x00040000;
  373. COMBATLOG_OBJECT_MAINASSIST = 0x00080000;
  374. COMBATLOG_OBJECT_NONE = 0x80000000;
  375. COMBATLOG_OBJECT_SPECIAL_MASK = 0xFFFF0000;
  376. COMBATLOG_OBJECT_RAIDTARGET1 = 0x00000001;
  377. COMBATLOG_OBJECT_RAIDTARGET2 = 0x00000002;
  378. COMBATLOG_OBJECT_RAIDTARGET3 = 0x00000004;
  379. COMBATLOG_OBJECT_RAIDTARGET4 = 0x00000008;
  380. COMBATLOG_OBJECT_RAIDTARGET5 = 0x00000010;
  381. COMBATLOG_OBJECT_RAIDTARGET6 = 0x00000020;
  382. COMBATLOG_OBJECT_RAIDTARGET7 = 0x00000040;
  383. COMBATLOG_OBJECT_RAIDTARGET8 = 0x00000080;
  384. COMBATLOG_OBJECT_RAIDTARGET_MASK = bit.bor(
  385. COMBATLOG_OBJECT_RAIDTARGET1,
  386. COMBATLOG_OBJECT_RAIDTARGET2,
  387. COMBATLOG_OBJECT_RAIDTARGET3,
  388. COMBATLOG_OBJECT_RAIDTARGET4,
  389. COMBATLOG_OBJECT_RAIDTARGET5,
  390. COMBATLOG_OBJECT_RAIDTARGET6,
  391. COMBATLOG_OBJECT_RAIDTARGET7,
  392. COMBATLOG_OBJECT_RAIDTARGET8
  393. );
  394. -- Object type constants
  395. COMBATLOG_FILTER_ME = bit.bor(
  396. COMBATLOG_OBJECT_AFFILIATION_MINE,
  397. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  398. COMBATLOG_OBJECT_CONTROL_PLAYER,
  399. COMBATLOG_OBJECT_TYPE_PLAYER
  400. );
  401. COMBATLOG_FILTER_MINE = bit.bor(
  402. COMBATLOG_OBJECT_AFFILIATION_MINE,
  403. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  404. COMBATLOG_OBJECT_CONTROL_PLAYER,
  405. COMBATLOG_OBJECT_TYPE_PLAYER,
  406. COMBATLOG_OBJECT_TYPE_OBJECT
  407. );
  408. COMBATLOG_FILTER_MY_PET = bit.bor(
  409. COMBATLOG_OBJECT_AFFILIATION_MINE,
  410. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  411. COMBATLOG_OBJECT_CONTROL_PLAYER,
  412. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  413. COMBATLOG_OBJECT_TYPE_PET
  414. );
  415. COMBATLOG_FILTER_FRIENDLY_UNITS = bit.bor(
  416. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  417. COMBATLOG_OBJECT_AFFILIATION_RAID,
  418. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  419. COMBATLOG_OBJECT_REACTION_FRIENDLY,
  420. COMBATLOG_OBJECT_CONTROL_PLAYER,
  421. COMBATLOG_OBJECT_CONTROL_NPC,
  422. COMBATLOG_OBJECT_TYPE_PLAYER,
  423. COMBATLOG_OBJECT_TYPE_NPC,
  424. COMBATLOG_OBJECT_TYPE_PET,
  425. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  426. COMBATLOG_OBJECT_TYPE_OBJECT
  427. );
  428. COMBATLOG_FILTER_HOSTILE_PLAYERS = bit.bor(
  429. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  430. COMBATLOG_OBJECT_AFFILIATION_RAID,
  431. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  432. COMBATLOG_OBJECT_REACTION_HOSTILE,
  433. COMBATLOG_OBJECT_CONTROL_PLAYER,
  434. COMBATLOG_OBJECT_TYPE_PLAYER,
  435. COMBATLOG_OBJECT_TYPE_NPC,
  436. COMBATLOG_OBJECT_TYPE_PET,
  437. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  438. COMBATLOG_OBJECT_TYPE_OBJECT
  439. );
  440. COMBATLOG_FILTER_HOSTILE_UNITS = bit.bor(
  441. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  442. COMBATLOG_OBJECT_AFFILIATION_RAID,
  443. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  444. COMBATLOG_OBJECT_REACTION_HOSTILE,
  445. COMBATLOG_OBJECT_CONTROL_NPC,
  446. COMBATLOG_OBJECT_TYPE_PLAYER,
  447. COMBATLOG_OBJECT_TYPE_NPC,
  448. COMBATLOG_OBJECT_TYPE_PET,
  449. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  450. COMBATLOG_OBJECT_TYPE_OBJECT
  451. );
  452. COMBATLOG_FILTER_NEUTRAL_UNITS = bit.bor(
  453. COMBATLOG_OBJECT_AFFILIATION_PARTY,
  454. COMBATLOG_OBJECT_AFFILIATION_RAID,
  455. COMBATLOG_OBJECT_AFFILIATION_OUTSIDER,
  456. COMBATLOG_OBJECT_REACTION_NEUTRAL,
  457. COMBATLOG_OBJECT_CONTROL_PLAYER,
  458. COMBATLOG_OBJECT_CONTROL_NPC,
  459. COMBATLOG_OBJECT_TYPE_PLAYER,
  460. COMBATLOG_OBJECT_TYPE_NPC,
  461. COMBATLOG_OBJECT_TYPE_PET,
  462. COMBATLOG_OBJECT_TYPE_GUARDIAN,
  463. COMBATLOG_OBJECT_TYPE_OBJECT
  464. );
  465. COMBATLOG_FILTER_UNKNOWN_UNITS = COMBATLOG_OBJECT_NONE;
  466. COMBATLOG_FILTER_EVERYTHING = 0xFFFFFFFF;
  467. --
  468. -- Calendar
  469. --
  470. CALENDAR_FIRST_WEEKDAY = 1; -- 1=SUN 2=MON 3=TUE 4=WED 5=THU 6=FRI 7=SAT
  471. -- Event Types
  472. CALENDAR_EVENTTYPE_RAID = Enum.CalendarEventType.Raid;
  473. CALENDAR_EVENTTYPE_DUNGEON = Enum.CalendarEventType.Dungeon;
  474. CALENDAR_EVENTTYPE_PVP = Enum.CalendarEventType.Pvp;
  475. CALENDAR_EVENTTYPE_MEETING = Enum.CalendarEventType.Meeting;
  476. CALENDAR_EVENTTYPE_OTHER = Enum.CalendarEventType.Other;
  477. CALENDAR_MAX_EVENTTYPE = Enum.CalendarEventType.Other;
  478. -- Invite Statuses
  479. CALENDAR_INVITESTATUS_INVITED = 1;
  480. CALENDAR_INVITESTATUS_ACCEPTED = 2;
  481. CALENDAR_INVITESTATUS_DECLINED = 3;
  482. CALENDAR_INVITESTATUS_CONFIRMED = 4;
  483. CALENDAR_INVITESTATUS_OUT = 5;
  484. CALENDAR_INVITESTATUS_STANDBY = 6;
  485. CALENDAR_INVITESTATUS_SIGNEDUP = 7;
  486. CALENDAR_INVITESTATUS_NOT_SIGNEDUP = 8;
  487. CALENDAR_INVITESTATUS_TENTATIVE = 9;
  488. CALENDAR_MAX_INVITESTATUS = CALENDAR_INVITESTATUS_TENTATIVE;
  489. -- Invite Types
  490. CALENDAR_INVITETYPE_NORMAL = 1;
  491. CALENDAR_INVITETYPE_SIGNUP = 2;
  492. CALENDAR_MAX_INVITETYPE = CALENDAR_INVITETYPE_SIGNUP;
  493. --
  494. -- Difficulty
  495. --
  496. QuestDifficultyColors = {
  497. ["impossible"] = { r = 1.00, g = 0.10, b = 0.10, font = "QuestDifficulty_Impossible" };
  498. ["verydifficult"] = { r = 1.00, g = 0.50, b = 0.25, font = "QuestDifficulty_VeryDifficult" };
  499. ["difficult"] = { r = 1.00, g = 0.82, b = 0.00, font = "QuestDifficulty_Difficult" };
  500. ["standard"] = { r = 0.25, g = 0.75, b = 0.25, font = "QuestDifficulty_Standard" };
  501. ["trivial"] = { r = 0.50, g = 0.50, b = 0.50, font = "QuestDifficulty_Trivial" };
  502. ["header"] = { r = 0.70, g = 0.70, b = 0.70, font = "QuestDifficulty_Header" };
  503. ["disabled"] = { r = 0.498, g = 0.498, b = 0.498, font = "QuestDifficulty_Impossible" };
  504. };
  505. QuestDifficultyHighlightColors = {
  506. ["impossible"] = { r = 1.00, g = 0.40, b = 0.40, font = "QuestDifficulty_Impossible" };
  507. ["verydifficult"] = { r = 1.00, g = 0.75, b = 0.44, font = "QuestDifficulty_VeryDifficult" };
  508. ["difficult"] = { r = 1.00, g = 1.00, b = 0.10, font = "QuestDifficulty_Difficult" };
  509. ["standard"] = { r = 0.43, g = 0.93, b = 0.43, font = "QuestDifficulty_Standard" };
  510. ["trivial"] = { r = 0.70, g = 0.70, b = 0.70, font = "QuestDifficulty_Trivial" };
  511. ["header"] = { r = 1.00, g = 1.00, b = 1.00, font = "QuestDifficulty_Header" };
  512. ["disabled"] = { r = 0.60, g = 0.60, b = 0.60, font = "QuestDifficulty_Impossible" };
  513. };
  514. --
  515. -- WorldMap
  516. --
  517. NUM_WORLDMAP_PATCH_TILES = 6;
  518. --
  519. -- Totems
  520. --
  521. MAX_TOTEMS = 4;
  522. FIRE_TOTEM_SLOT = 1;
  523. EARTH_TOTEM_SLOT = 2;
  524. WATER_TOTEM_SLOT = 3;
  525. AIR_TOTEM_SLOT = 4;
  526. STANDARD_TOTEM_PRIORITIES = {1, 2, 3, 4};
  527. SHAMAN_TOTEM_PRIORITIES = {
  528. EARTH_TOTEM_SLOT,
  529. FIRE_TOTEM_SLOT,
  530. WATER_TOTEM_SLOT,
  531. AIR_TOTEM_SLOT,
  532. };
  533. TOTEM_MULTI_CAST_SUMMON_SPELLS = {
  534. 66842,
  535. 66843,
  536. 66844,
  537. };
  538. TOTEM_MULTI_CAST_RECALL_SPELLS = {
  539. 36936,
  540. };
  541. --
  542. -- GM Ticket
  543. --
  544. GMTICKET_QUEUE_STATUS_ENABLED = 1;
  545. GMTICKET_QUEUE_STATUS_DISABLED = -1;
  546. GMTICKET_ASSIGNEDTOGM_STATUS_NOT_ASSIGNED = 0; -- ticket is not currently assigned to a gm
  547. GMTICKET_ASSIGNEDTOGM_STATUS_ASSIGNED = 1; -- ticket is assigned to a normal gm
  548. GMTICKET_ASSIGNEDTOGM_STATUS_ESCALATED = 2; -- ticket is in the escalation queue
  549. GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED = 0; -- ticket has never been opened by a gm
  550. GMTICKET_OPENEDBYGM_STATUS_OPENED = 1; -- ticket has been opened by a gm
  551. -- indicies for adding lights ModelFFX:Add*Light
  552. LIGHT_LIVE = 0;
  553. LIGHT_GHOST = 1;
  554. -- general constant translation table
  555. STATIC_CONSTANTS = {}
  556. RegisterStaticConstants(STATIC_CONSTANTS);
  557. -- textures for quest item overlays
  558. TEXTURE_ITEM_QUEST_BANG = "Interface\\ContainerFrame\\UI-Icon-QuestBang";
  559. TEXTURE_ITEM_QUEST_BORDER = "Interface\\ContainerFrame\\UI-Icon-QuestBorder";
  560. -- Friends
  561. SHOW_SEARCH_BAR_NUM_FRIENDS = 12;
  562. -- Search box
  563. MIN_CHARACTER_SEARCH = 3;
  564. -- faction
  565. PLAYER_FACTION_COLORS = { [0] = CreateColor(0.90, 0.05, 0.07), [1] = CreateColor(0.29, 0.33, 0.91) }
  566. -- Panel default size
  567. PANEL_DEFAULT_WIDTH = 338;
  568. PANEL_DEFAULT_HEIGHT = 424;
  569. --Inline role icons
  570. INLINE_TANK_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:0:19:22:41|t";
  571. INLINE_HEALER_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:20:39:1:20|t";
  572. INLINE_DAMAGER_ICON = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:16:16:0:0:64:64:20:39:22:41|t"
  573. -- Guild
  574. MAX_GUILDBANK_TABS = 8;
  575. MAX_BUY_GUILDBANK_TABS = 6;
  576. EXP_DEFAULT_WIDTH = 1024;
  577. -- Date stuff
  578. CALENDAR_WEEKDAY_NAMES = {
  579. WEEKDAY_SUNDAY,
  580. WEEKDAY_MONDAY,
  581. WEEKDAY_TUESDAY,
  582. WEEKDAY_WEDNESDAY,
  583. WEEKDAY_THURSDAY,
  584. WEEKDAY_FRIDAY,
  585. WEEKDAY_SATURDAY,
  586. };
  587. -- month names show up differently for full date displays in some languages
  588. CALENDAR_FULLDATE_MONTH_NAMES = {
  589. FULLDATE_MONTH_JANUARY,
  590. FULLDATE_MONTH_FEBRUARY,
  591. FULLDATE_MONTH_MARCH,
  592. FULLDATE_MONTH_APRIL,
  593. FULLDATE_MONTH_MAY,
  594. FULLDATE_MONTH_JUNE,
  595. FULLDATE_MONTH_JULY,
  596. FULLDATE_MONTH_AUGUST,
  597. FULLDATE_MONTH_SEPTEMBER,
  598. FULLDATE_MONTH_OCTOBER,
  599. FULLDATE_MONTH_NOVEMBER,
  600. FULLDATE_MONTH_DECEMBER,
  601. };
  602. -- Druid Forms.
  603. CAT_FORM = 1;
  604. BEAR_FORM = 5;
  605. MOONKIN_FORM = 31;
  606. -- PVP Global Lua Constants
  607. CONQUEST_CURRENCY = 390;
  608. HONOR_CURRENCY = 392;
  609. JUSTICE_CURRENCY = 395;
  610. VALOR_CURRENCY = 396;
  611. SHOW_CONQUEST_LEVEL = 70;
  612. -- Looking for Guild Parameters
  613. LFGUILD_PARAM_QUESTS = 1;
  614. LFGUILD_PARAM_DUNGEONS = 2;
  615. LFGUILD_PARAM_RAIDS = 3;
  616. LFGUILD_PARAM_PVP = 4;
  617. LFGUILD_PARAM_RP = 5;
  618. LFGUILD_PARAM_WEEKDAYS = 6;
  619. LFGUILD_PARAM_WEEKENDS = 7;
  620. LFGUILD_PARAM_TANK = 8;
  621. LFGUILD_PARAM_HEALER = 9;
  622. LFGUILD_PARAM_DAMAGE = 10;
  623. LFGUILD_PARAM_ANY_LEVEL = 11;
  624. LFGUILD_PARAM_MAX_LEVEL = 12;
  625. LFGUILD_PARAM_LOOKING = 13;
  626. -- Instance
  627. INSTANCE_TYPE_DUNGEON = 1;
  628. INSTANCE_TYPE_RAID = 2;
  629. INSTANCE_TYPE_BG = 3;
  630. INSTANCE_TYPE_ARENA = 4;
  631. DEFAULT_READY_CHECK_STAY_TIME = 10;
  632. PET_TYPE_SUFFIX = {
  633. [1] = "Humanoid",
  634. [2] = "Dragon",
  635. [3] = "Flying",
  636. [4] = "Undead",
  637. [5] = "Critter",
  638. [6] = "Magical",
  639. [7] = "Elemental",
  640. [8] = "Beast",
  641. [9] = "Water",
  642. [10] = "Mechanical",
  643. };
  644. PET_BATTLE_PET_TYPE_PASSIVES = {
  645. 238, --Humanoid - Recovery
  646. 245, --Dragon - Execute
  647. 239, --Flying - Swiftness
  648. 242, --Undead - Damned
  649. 236, --Critter - Elusive
  650. 243, --Magical - Spellshield
  651. 241, --Elemental - Weather Immune
  652. 237, --Beast - Enrage
  653. 240, --Aquatic - Purity
  654. 244, --Mechanical - Failsafe
  655. };
  656. MAX_NUM_PET_BATTLE_ATTACK_MODIFIERS = 2;
  657. PET_BATTLE_STATE_ATTACK = 18;
  658. PET_BATTLE_STATE_SPEED = 20;
  659. PET_BATTLE_EVENT_ON_APPLY = 0;
  660. PET_BATTLE_EVENT_ON_DAMAGE_TAKEN = 1;
  661. PET_BATTLE_EVENT_ON_DAMAGE_DEALT = 2;
  662. PET_BATTLE_EVENT_ON_HEAL_TAKEN = 3;
  663. PET_BATTLE_EVENT_ON_HEAL_DEALT = 4;
  664. PET_BATTLE_EVENT_ON_AURA_REMOVED = 5;
  665. PET_BATTLE_EVENT_ON_ROUND_START = 6;
  666. PET_BATTLE_EVENT_ON_ROUND_END = 7;
  667. PET_BATTLE_EVENT_ON_TURN = 8;
  668. PET_BATTLE_EVENT_ON_ABILITY = 9;
  669. PET_BATTLE_EVENT_ON_SWAP_IN = 10;
  670. PET_BATTLE_EVENT_ON_SWAP_OUT = 11;
  671. PET_BATTLE_PAD_INDEX = 0;
  672. -- Challenge Mode
  673. CHALLENGE_MEDAL_NONE = 0;
  674. CHALLENGE_MEDAL_BRONZE = 1;
  675. CHALLENGE_MEDAL_SILVER = 2;
  676. CHALLENGE_MEDAL_GOLD = 3;
  677. CHALLENGE_MEDAL_PLAT = 4; --as of 7/2/2013 only used for endless proving grounds
  678. NUM_CHALLENGE_MEDALS = 3;
  679. CHALLENGE_MEDAL_TEXTURES = {
  680. [CHALLENGE_MEDAL_BRONZE] = "Interface\\Challenges\\challenges-bronze",
  681. [CHALLENGE_MEDAL_SILVER] = "Interface\\Challenges\\challenges-silver",
  682. [CHALLENGE_MEDAL_GOLD] = "Interface\\Challenges\\challenges-gold",
  683. [CHALLENGE_MEDAL_PLAT] = "Interface\\Challenges\\challenges-plat",
  684. }
  685. CHALLENGE_MEDAL_TEXTURES_SMALL = {
  686. [CHALLENGE_MEDAL_BRONZE] = "Interface\\Challenges\\challenges-bronze-sm",
  687. [CHALLENGE_MEDAL_SILVER] = "Interface\\Challenges\\challenges-silver-sm",
  688. [CHALLENGE_MEDAL_GOLD] = "Interface\\Challenges\\challenges-gold-sm",
  689. [CHALLENGE_MEDAL_PLAT] = "Interface\\Challenges\\challenges-plat-sm",
  690. }
  691. -- Player Reporting
  692. PLAYER_REPORT_TYPE_SPAM = "spam";
  693. PLAYER_REPORT_TYPE_LANGUAGE = "language";
  694. PLAYER_REPORT_TYPE_ABUSE = "abuse";
  695. PLAYER_REPORT_TYPE_BAD_PLAYER_NAME = "badplayername";
  696. PLAYER_REPORT_TYPE_BAD_GUILD_NAME = "badguildname";
  697. PLAYER_REPORT_TYPE_CHEATING = "cheater";
  698. PLAYER_REPORT_TYPE_BAD_BATTLEPET_NAME = "badbattlepetname";
  699. PLAYER_REPORT_TYPE_BAD_PET_NAME = "badpetname";
  700. --Loot
  701. BONUS_ROLL_REQUIRED_CURRENCY = 697;
  702. -- Quest
  703. QUEST_TYPE_DUNGEON = 81;
  704. QUEST_TYPE_SCENARIO = 98;
  705. MAX_QUESTS = 25;
  706. MAX_OBJECTIVES = 20;
  707. MAX_QUESTLOG_QUESTS = 25;
  708. MAX_WATCHABLE_QUESTS = 25;
  709. WORLD_QUESTS_TIME_CRITICAL_MINUTES = 15;
  710. WORLD_QUESTS_TIME_LOW_MINUTES = 75;
  711. WORLD_QUESTS_AVAILABLE_QUEST_ID = 43341;
  712. -- LFG
  713. LFG_CATEGORY_NAMES = {
  714. [LE_LFG_CATEGORY_LFD] = LOOKING_FOR_DUNGEON,
  715. [LE_LFG_CATEGORY_RF] = RAID_FINDER,
  716. [LE_LFG_CATEGORY_SCENARIO] = SCENARIOS,
  717. [LE_LFG_CATEGORY_LFR] = LOOKING_FOR_RAID,
  718. [LE_LFG_CATEGORY_FLEXRAID] = FLEX_RAID,
  719. [LE_LFG_CATEGORY_WORLDPVP] = WORLD_PVP,
  720. [LE_LFG_CATEGORY_BATTLEFIELD] = LFG_CATEGORY_BATTLEFIELD,
  721. }
  722. -- Instance Difficulty
  723. DIFFICULTY_DUNGEON_NORMAL = 1;
  724. DIFFICULTY_DUNGEON_HEROIC = 2;
  725. DIFFICULTY_RAID10_NORMAL = 3;
  726. DIFFICULTY_RAID25_NORMAL = 4;
  727. DIFFICULTY_RAID10_HEROIC = 5;
  728. DIFFICULTY_RAID25_HEROIC = 6;
  729. DIFFICULTY_RAID_LFR = 7;
  730. DIFFICULTY_DUNGEON_CHALLENGE = 8;
  731. DIFFICULTY_RAID40 = 9;
  732. DIFFICULTY_PRIMARYRAID_NORMAL = 14;
  733. DIFFICULTY_PRIMARYRAID_HEROIC = 15;
  734. DIFFICULTY_PRIMARYRAID_MYTHIC = 16;
  735. DIFFICULTY_PRIMARYRAID_LFR = 17;
  736. -- PVP
  737. MAX_ARENA_TEAMS = 2;
  738. MAX_WORLD_PVP_QUEUES = 2;
  739. -- Chat
  740. CHANNEL_INVITE_TIMEOUT = 60;
  741. -- Scenarios
  742. SCENARIO_FLAG_DEPRECATED1 = 0x00000001;
  743. SCENARIO_FLAG_SUPRESS_STAGE_TEXT = 0x00000002;
  744. SCENARIO_FLAG_DEPRECATED2 = 0x00000004;
  745. SCENARIO_FLAG_DEPRECATED3 = 0x00000008;
  746. -- Lua Warning types
  747. LUA_WARNING_TREAT_AS_ERROR = 0;
  748. -- Quest Tags
  749. QUEST_ICONS_FILE = "Interface\\QuestFrame\\QuestTypeIcons";
  750. QUEST_ICONS_FILE_WIDTH = 128;
  751. QUEST_ICONS_FILE_HEIGHT = 64;
  752. QUEST_TAG_TCOORDS = {
  753. ["COMPLETED"] = { 0.140625, 0.28125, 0, 0.28125 },
  754. ["DAILY"] = { 0.28125, 0.421875, 0, 0.28125 },
  755. ["WEEKLY"] = { 0.28125, 0.421875, 0.5625, 0.84375 },
  756. ["FAILED"] = { 0.84375, 0.984375, 0.28125, 0.5625 },
  757. ["STORY"] = { 0.703125, 0.84375, 0.28125, 0.5625 },
  758. ["ALLIANCE"] = { 0.421875, 0.5625, 0.28125, 0.5625 },
  759. ["HORDE"] = { 0.5625, 0.703125, 0.28125, 0.5625 },
  760. [Enum.QuestTag.Dungeon] = { 0.421875, 0.5625, 0, 0.28125 },
  761. [Enum.QuestTag.Scenario] = { 0.5625, 0.703125, 0, 0.28125 },
  762. [Enum.QuestTag.Account] = { 0.84375, 0.984375, 0, 0.28125 },
  763. [Enum.QuestTag.Legendary] = { 0, 0.140625, 0.28125, 0.5625 },
  764. [Enum.QuestTag.Group] = { 0.140625, 0.28125, 0.28125, 0.5625 },
  765. [Enum.QuestTag.Pvp] = { 0.28125, 0.421875, 0.28125, 0.5625 },
  766. [Enum.QuestTag.Heroic] = { 0, 0.140625, 0.5625, 0.84375 },
  767. -- same texture for all raids
  768. [Enum.QuestTag.Raid] = { 0.703125, 0.84375, 0, 0.28125 },
  769. [Enum.QuestTag.Raid10] = { 0.703125, 0.84375, 0, 0.28125 },
  770. [Enum.QuestTag.Raid25] = { 0.703125, 0.84375, 0, 0.28125 },
  771. };
  772. WORLD_QUEST_TYPE_TCOORDS = {
  773. [LE_QUEST_TAG_TYPE_DUNGEON] = { 0.421875, 0.5625, 0, 0.28125 },
  774. [LE_QUEST_TAG_TYPE_RAID] = { 0.703125, 0.84375, 0, 0.28125 },
  775. };
  776. -- MATCH CONDITIONS
  777. MATCH_CONDITION_WRONG_ACHIEVEMENT = 34;
  778. MATCH_CONDITION_SUCCESS = 57;
  779. -- FOR ABBREVIATING LARGE NUMBERS
  780. FIRST_NUMBER_CAP_VALUE = 1000;
  781. -- GARRISONS
  782. GARRISON_HIGH_THREAT_VALUE = 300;
  783. LOOT_SOURCE_GARRISON_CACHE = 10;
  784. WOW_TOKEN_ITEM_ID = 122284;
  785. -- TRANSMOG
  786. ENCHANT_EMPTY_SLOT_FILEDATAID = 134941;
  787. WARDROBE_TOOLTIP_CYCLE_ARROW_ICON = "|TInterface\\Transmogrify\\transmog-tooltip-arrow:12:11:-1:-1|t";
  788. WARDROBE_TOOLTIP_CYCLE_SPACER_ICON = "|TInterface\\Common\\spacer:12:11:-1:-1|t";
  789. WARDROBE_CYCLE_KEY = "TAB";
  790. WARDROBE_PREV_VISUAL_KEY = "LEFT";
  791. WARDROBE_NEXT_VISUAL_KEY = "RIGHT";
  792. WARDROBE_UP_VISUAL_KEY = "UP";
  793. WARDROBE_DOWN_VISUAL_KEY = "DOWN";
  794. TRANSMOG_INVALID_CODES = {
  795. "NO_ITEM",
  796. "NOT_SOULBOUND",
  797. "LEGENDARY",
  798. "ITEM_TYPE",
  799. "DESTINATION",
  800. "MISMATCH",
  801. "", -- same item
  802. "", -- invalid source
  803. "", -- invalid source quality
  804. "CANNOT_USE",
  805. "SLOT_FOR_RACE",
  806. }
  807. TRANSMOG_SOURCE_BOSS_DROP = 1;
  808. TRANSMOG_SLOTS = {
  809. [1] = { slot = "HEADSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_HEAD },
  810. [2] = { slot = "SHOULDERSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_SHOULDER },
  811. [3] = { slot = "BACKSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_BACK },
  812. [4] = { slot = "CHESTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_CHEST },
  813. [5] = { slot = "TABARDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_TABARD },
  814. [6] = { slot = "SHIRTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_SHIRT },
  815. [7] = { slot = "WRISTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_WRIST },
  816. [8] = { slot = "HANDSSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_HANDS },
  817. [9] = { slot = "WAISTSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_WAIST },
  818. [10] = { slot = "LEGSSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_LEGS },
  819. [11] = { slot = "FEETSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = LE_TRANSMOG_COLLECTION_TYPE_FEET },
  820. [12] = { slot = "MAINHANDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = nil },
  821. [13] = { slot = "SECONDARYHANDSLOT", transmogType = LE_TRANSMOG_TYPE_APPEARANCE, armorCategoryID = nil },
  822. [14] = { slot = "MAINHANDSLOT", transmogType = LE_TRANSMOG_TYPE_ILLUSION, armorCategoryID = nil },
  823. [15] = { slot = "SECONDARYHANDSLOT", transmogType = LE_TRANSMOG_TYPE_ILLUSION, armorCategoryID = nil },
  824. }
  825. FIRST_TRANSMOG_COLLECTION_WEAPON_TYPE = LE_TRANSMOG_COLLECTION_TYPE_FEET + 1;
  826. LAST_TRANSMOG_COLLECTION_WEAPON_TYPE = NUM_LE_TRANSMOG_COLLECTION_TYPES;
  827. NO_TRANSMOG_SOURCE_ID = 0;
  828. NO_TRANSMOG_VISUAL_ID = 0;
  829. REMOVE_TRANSMOG_ID = 0;
  830. -- ITEMSUBCLASSTYPES
  831. ITEMSUBCLASSTYPES = {
  832. ["DAGGER"] = { classID = 2, subClassID = 15},
  833. }
  834. -- MINIMAP
  835. TYPEID_DUNGEON = 1;
  836. TYPEID_RANDOM_DUNGEON = 6;
  837. LFG_SUBTYPEID_DUNGEON = 1;
  838. LFG_SUBTYPEID_HEROIC = 2;
  839. LFG_SUBTYPEID_RAID = 3;
  840. LFG_SUBTYPEID_SCENARIO = 4;
  841. LFG_SUBTYPEID_FLEXRAID = 5;
  842. LFG_SUBTYPEID_WORLDPVP = 6;
  843. -- TEXTURES
  844. QUESTION_MARK_ICON = "INTERFACE\\ICONS\\INV_MISC_QUESTIONMARK.BLP";
  845. UPPER_LEFT_VERTEX = 1;
  846. LOWER_LEFT_VERTEX = 2;
  847. UPPER_RIGHT_VERTEX = 3;
  848. LOWER_RIGHT_VERTEX = 4;
  849. -- TUTORIALS
  850. HELPTIP_HEIGHT_PADDING = 29;
  851. -- RELIC TALENTS
  852. RELIC_TALENT_TYPE_LIGHT = 1;
  853. RELIC_TALENT_TYPE_VOID = 2;
  854. RELIC_TALENT_TYPE_NEUTRAL = 3;
  855. RELIC_TALENT_STYLE_CLOSED = 1;
  856. RELIC_TALENT_STYLE_UPCOMING = 2;
  857. RELIC_TALENT_STYLE_AVAILABLE = 3;
  858. RELIC_TALENT_STYLE_CHOSEN = 4;
  859. RELIC_TALENT_LINK_TYPE_LIGHT = 1;
  860. RELIC_TALENT_LINK_TYPE_VOID = 2;
  861. RELIC_TALENT_LINK_STYLE_DISABLED = 1;
  862. RELIC_TALENT_LINK_STYLE_POTENTIAL = 2;
  863. RELIC_TALENT_LINK_STYLE_ACTIVE = 3;
  864. RELIC_TALENT_LINK_STYLE_UPCOMING = 4;
  865. RELIC_TALENT_LINK_STYLE_AVAILABLE = 5;
  866. -- TODO: Need to be able to expose this from client...
  867. Enum.ChatChannelType = {
  868. None = 0,
  869. Custom = 1,
  870. Private_Party = 2,
  871. Public_Party = 3,
  872. Communities = 4,
  873. };
  874. CALENDAR_INVITESTATUS_INFO = {
  875. ["UNKNOWN"] = {
  876. name = UNKNOWN,
  877. color = NORMAL_FONT_COLOR,
  878. },
  879. [CALENDAR_INVITESTATUS_CONFIRMED] = {
  880. name = CALENDAR_STATUS_CONFIRMED,
  881. color = GREEN_FONT_COLOR,
  882. },
  883. [CALENDAR_INVITESTATUS_ACCEPTED] = {
  884. name = CALENDAR_STATUS_ACCEPTED,
  885. color = GREEN_FONT_COLOR,
  886. },
  887. [CALENDAR_INVITESTATUS_DECLINED] = {
  888. name = CALENDAR_STATUS_DECLINED,
  889. color = RED_FONT_COLOR,
  890. },
  891. [CALENDAR_INVITESTATUS_OUT] = {
  892. name = CALENDAR_STATUS_OUT,
  893. color = RED_FONT_COLOR,
  894. },
  895. [CALENDAR_INVITESTATUS_STANDBY] = {
  896. name = CALENDAR_STATUS_STANDBY,
  897. color = ORANGE_FONT_COLOR,
  898. },
  899. [CALENDAR_INVITESTATUS_INVITED] = {
  900. name = CALENDAR_STATUS_INVITED,
  901. color = NORMAL_FONT_COLOR,
  902. },
  903. [CALENDAR_INVITESTATUS_SIGNEDUP] = {
  904. name = CALENDAR_STATUS_SIGNEDUP,
  905. color = GREEN_FONT_COLOR,
  906. },
  907. [CALENDAR_INVITESTATUS_NOT_SIGNEDUP] = {
  908. name = CALENDAR_STATUS_NOT_SIGNEDUP,
  909. color = GRAY_FONT_COLOR,
  910. },
  911. [CALENDAR_INVITESTATUS_TENTATIVE] = {
  912. name = CALENDAR_STATUS_TENTATIVE,
  913. color = ORANGE_FONT_COLOR,
  914. },
  915. };
  916. TOOLTIP_INDENT_OFFSET = 10;