1 |
72 |
Kragenwar-3044 |
import "Turbine.UI"; |
2 |
|
Kragenwar-3044 |
import "Turbine.UI.Lotro"; |
3 |
|
Kragenwar-3044 |
import "Turbine.Gameplay"; |
4 |
|
Kragenwar-3044 |
import "KragenPlugs.Utils"; |
5 |
|
Kragenwar-3044 |
import "KragenPlugs.KragenBars"; |
6 |
|
Kragenwar-3044 |
|
7 |
|
Kragenwar-3044 |
LoreBars = class( KragenPlugs.KragenBars.ClassBar ); |
8 |
|
Kragenwar-3044 |
|
9 |
|
Kragenwar-3044 |
function LoreBars:Constructor() |
10 |
|
Kragenwar-3044 |
|
11 |
|
Kragenwar-3044 |
KragenPlugs.KragenBars.ClassBar.Constructor( self ); |
12 |
|
Kragenwar-3044 |
|
13 |
|
Kragenwar-3044 |
self.setuppets = self.setup.setuplmpets; |
14 |
|
Kragenwar-3044 |
|
15 |
|
Kragenwar-3044 |
-- SET AND UPDATE DEFAULT SETTINGS |
16 |
|
Kragenwar-3044 |
if (not settings.class) then |
17 |
|
Kragenwar-3044 |
settings.class = vars.playerclass; |
18 |
|
Kragenwar-3044 |
self:DefaultSettings(); |
19 |
|
Kragenwar-3044 |
self:ShowSetup(); |
20 |
|
Kragenwar-3044 |
else |
21 |
|
Kragenwar-3044 |
self.settings = settings.classinfo; |
22 |
|
Kragenwar-3044 |
if (settings.vers ~= vars.vers) then |
23 |
|
Kragenwar-3044 |
self:UpdateSettings(); |
24 |
|
Kragenwar-3044 |
end |
25 |
|
Kragenwar-3044 |
end |
26 |
|
Kragenwar-3044 |
|
27 |
|
Kragenwar-3044 |
-- CLASS SPECIFIC VARIABLES |
28 |
|
Kragenwar-3044 |
|
29 |
|
Kragenwar-3044 |
|
30 |
|
Kragenwar-3044 |
-- DEFINE THE EFFECT LIST BASED ON CLIENT LANGUAGE |
31 |
|
Kragenwar-3044 |
self.DefineEffectList = function() |
32 |
|
Kragenwar-3044 |
self.effectlist = { }; |
33 |
|
Kragenwar-3044 |
-- ENGLISH CLIENT |
34 |
|
Kragenwar-3044 |
if (settings.language == 1) then |
35 |
|
Kragenwar-3044 |
self.effectlist["AncientWisdom"] = "Ancient Wisdom"; |
36 |
|
Kragenwar-3044 |
self.effectlist["CombatSummoning"] = "Combat Summoning"; |
37 |
|
Kragenwar-3044 |
elseif (settings.language == 2) then |
38 |
|
Kragenwar-3044 |
self.effectlist["AncientWisdom"] = "Ancient Wisdom"; |
39 |
|
Kragenwar-3044 |
self.effectlist["CombatSummoning"] = "Combat Summoning"; |
40 |
|
Kragenwar-3044 |
Turbine.Shell.WriteLine("Some features may not function with the French Client. If you would like to help with French effect names goto http://www.lotrointerface.com/downloads/info384-KragenBars.html"); |
41 |
|
Kragenwar-3044 |
elseif (settings.language == 3) then |
42 |
|
Kragenwar-3044 |
self.effectlist["AncientWisdom"] = "Ancient Wisdom"; |
43 |
|
Kragenwar-3044 |
self.effectlist["CombatSummoning"] = "Combat Summoning"; |
44 |
|
Kragenwar-3044 |
Turbine.Shell.WriteLine("Some features may not function with the German Client. If you would like to help with German effect names goto http://www.lotrointerface.com/downloads/info384-KragenBars.html"); |
45 |
|
Kragenwar-3044 |
end |
46 |
|
Kragenwar-3044 |
end |
47 |
|
Kragenwar-3044 |
|
48 |
|
Kragenwar-3044 |
|
49 |
|
Kragenwar-3044 |
-- BUILD WINDOWS BARS SKILLS AND MULTIS -- |
50 |
|
Kragenwar-3044 |
|
51 |
|
Kragenwar-3044 |
-- ALL X, Y, WIDTH, HEIGHT values are in quickslot (ie: 1 width = the width of one quickslot: 35 px); |
52 |
|
Kragenwar-3044 |
-- Build Windows SkillWindow( name:String, defaultx:int, defaulty:int, width:int, height:int, settings:table); |
53 |
|
Kragenwar-3044 |
self.windows["Debuffs"] = SkillWindow("Debuffs", 1, 1, 7, 1, self.settings["Debuffs"] ); |
54 |
|
Kragenwar-3044 |
self.windows["BattleBuffs"] = SkillWindow("BattleBuffs", 8, 1, 3, 1, self.settings["BattleBuffs"] ); |
55 |
|
Kragenwar-3044 |
self.windows["Cures"] = SkillWindow("Cures", 11, 1, 3, 1, self.settings["Cures"] ); |
56 |
|
Kragenwar-3044 |
self.windows["AncientWisdom"] = SkillWindow("AncientWisdom", 9, 2, 1, 1, self.settings["AncientWisdom"] ); |
57 |
|
Kragenwar-3044 |
self.windows["Rez"] = SkillWindow("Rez", 10, 1, 1, 1, self.settings["Rez"] ); |
58 |
|
Kragenwar-3044 |
self.windows["CrowdControl"] = SkillWindow("CrowdControl", 1, 3, 3, 1, self.settings["CrowdControl"] ); |
59 |
|
Kragenwar-3044 |
self.windows["Heal"] = SkillWindow("Heal", 4, 3, 2, 1, self.settings["Heal"] ); |
60 |
|
Kragenwar-3044 |
self.windows["Damage"] = SkillWindow("Damage", 1, 2, 8, 1, self.settings["Damage"] ); |
61 |
|
Kragenwar-3044 |
self.windows["Self"] = SkillWindow("Self", 6, 3, 4, 1, self.settings["Self"] ); |
62 |
|
Kragenwar-3044 |
self.windows["KotLM"] = SkillWindow("KotLM", 10, 3, 1, 1, self.settings["KotLM"] ); |
63 |
|
Kragenwar-3044 |
self.windows["Power"] = SkillWindow("Power", 11, 3, 1, 1, self.settings["Power"] ); |
64 |
|
Kragenwar-3044 |
self.windows["DoTs"] = SkillWindow("DoTs", 1, 4, 3, 1, self.settings["DoTs"] ); |
65 |
|
Kragenwar-3044 |
self.windows["PetBuffs"] = SkillWindow("PetBuffs", 9, 4, 2, 1, self.settings["PetBuffs"] ); |
66 |
|
Kragenwar-3044 |
self.windows["Melee"] = SkillWindow("Melee", 4, 4, 2, 1, self.settings["Melee"] ); |
67 |
|
Kragenwar-3044 |
self.windows["StaticDebuffs"] = SkillWindow("StaticDebuffs", 6, 4, 2, 1, self.settings["StaticDebuffs"] ); |
68 |
|
Kragenwar-3044 |
self.windows["Pets"] = SkillWindow("Pets", 8, 4, 1, 1, self.settings["Pets"] ); |
69 |
|
Kragenwar-3044 |
|
70 |
|
Kragenwar-3044 |
-- Build Bars SkillBar( parent:SkillWindow, x:int, y:int, width:int, height:int, active:Boolean, exclusive:boolean); |
71 |
|
Kragenwar-3044 |
self.bars["Debuffs"] = SkillBar(self.windows["Debuffs"], 1, 1, 7, 1, true, false); |
72 |
|
Kragenwar-3044 |
self.bars["BattleBuffs"] = SkillBar(self.windows["BattleBuffs"], 1, 1, 3, 1, true, false); |
73 |
|
Kragenwar-3044 |
self.bars["Cures"] = SkillBar(self.windows["Cures"], 1, 1, 3, 1, true, false); |
74 |
|
Kragenwar-3044 |
self.bars["AncientWisdom"] = SkillBar(self.windows["AncientWisdom"], 1, 1, 1, 1, true, false); |
75 |
|
Kragenwar-3044 |
self.bars["Rez"] = SkillBar(self.windows["Rez"], 1, 1, 1, 1, true, false); |
76 |
|
Kragenwar-3044 |
self.bars["CrowdControl"] = SkillBar(self.windows["CrowdControl"], 1, 1, 3, 1, true, false); |
77 |
|
Kragenwar-3044 |
self.bars["Heal"] = SkillBar(self.windows["Heal"], 1, 1, 2, 1, true, false); |
78 |
|
Kragenwar-3044 |
self.bars["Damage"] = SkillBar(self.windows["Damage"], 1, 1, 8, 1, true, false); |
79 |
|
Kragenwar-3044 |
self.bars["Self"] = SkillBar(self.windows["Self"], 1, 1, 4, 1, true, false); |
80 |
|
Kragenwar-3044 |
self.bars["KotLM"] = SkillBar(self.windows["KotLM"], 1, 1, 1, 1, true, false); |
81 |
|
Kragenwar-3044 |
self.bars["Power"] = SkillBar(self.windows["Power"], 1, 1, 1, 1, true, false); |
82 |
|
Kragenwar-3044 |
self.bars["DoTs"] = SkillBar(self.windows["DoTs"], 1, 1, 3, 1, true, false); |
83 |
|
Kragenwar-3044 |
self.bars["PetBuffs"] = SkillBar(self.windows["PetBuffs"], 1, 1, 2, 1, true, false); |
84 |
|
Kragenwar-3044 |
self.bars["Melee"] = SkillBar(self.windows["Melee"], 1, 1, 2, 1, true, false); |
85 |
|
Kragenwar-3044 |
self.bars["StaticDebuffs"] = SkillBar(self.windows["StaticDebuffs"], 1, 1, 3, 1, true, false); |
86 |
|
Kragenwar-3044 |
self.bars["Pets"] = SkillBar(self.windows["Pets"], 1, 1, 1, 1, true, false); |
87 |
|
Kragenwar-3044 |
|
88 |
|
Kragenwar-3044 |
|
89 |
|
Kragenwar-3044 |
-- Build Skills SkillSlot( parent:SkillBar, x:int, y:int, active:Boolean, level:int, hexcode:String ); |
90 |
|
Kragenwar-3044 |
self.skills["SignCommand"] = SkillSlot(self.bars["Debuffs"], 1, 1, true, 1, "0x70003EBB"); |
91 |
|
Kragenwar-3044 |
self.skills["Firelore"] = SkillSlot(self.bars["Debuffs"], 2, 1, true, 12, "0x70003EBE"); |
92 |
|
Kragenwar-3044 |
self.skills["Windlore"] = SkillSlot(self.bars["Debuffs"], 3, 1, true, 12, "0x70003EBF"); |
93 |
|
Kragenwar-3044 |
self.skills["Frostlore"] = SkillSlot(self.bars["Debuffs"], 4, 1, true, 40, "0x70024BE7"); |
94 |
|
Kragenwar-3044 |
self.skills["AncientCraft"] = SkillSlot(self.bars["Debuffs"], 5, 1, true, 42, "0x7000B627"); |
95 |
|
Kragenwar-3044 |
self.skills["DispelCorruption"] = SkillSlot(self.bars["Debuffs"], 6, 1, true, 52, "0x7000F7FE"); |
96 |
|
Kragenwar-3044 |
self.skills["SignSeeAllEnds"] = SkillSlot(self.bars["Debuffs"], 7, 1, true, 58, "0x7000F801"); |
97 |
|
Kragenwar-3044 |
|
98 |
|
Kragenwar-3044 |
self.skills["SignRighteousness"] = SkillSlot(self.bars["BattleBuffs"], 1, 1, true, 24, "0x70003EBC"); |
99 |
|
Kragenwar-3044 |
self.skills["SignVigilance"] = SkillSlot(self.bars["BattleBuffs"], 2, 1, true, 32, "0x70003EBD"); |
100 |
|
Kragenwar-3044 |
self.skills["Airlore"] = SkillSlot(self.bars["BattleBuffs"], 3, 1, true, { 44, 64 }, { "0x7000B8AC", "0x70020DF7" }); |
101 |
|
Kragenwar-3044 |
|
102 |
|
Kragenwar-3044 |
self.skills["Leechcraft"] = SkillSlot(self.bars["Cures"], 1, 1, true, 10, "0x70003132"); |
103 |
|
Kragenwar-3044 |
self.skills["TendtheSick"] = SkillSlot(self.bars["Cures"], 2, 1, true, 16, "0x70003158"); |
104 |
|
Kragenwar-3044 |
self.skills["AncientKnowledgeofCures"] = SkillSlot(self.bars["Cures"], 3, 1, true, 62, "0x7001F45F"); |
105 |
|
Kragenwar-3044 |
|
106 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"] = SkillSlot(self.bars["AncientWisdom"], 1, 1, true, 28, "0x7000315F"); |
107 |
|
Kragenwar-3044 |
|
108 |
|
Kragenwar-3044 |
self.skills["BackfromtheBrink"] = SkillSlot(self.bars["Rez"], 1, 1, true, 32, "0x7000BFC2"); |
109 |
|
Kragenwar-3044 |
|
110 |
|
Kragenwar-3044 |
self.skills["BlindingFlash"] = SkillSlot(self.bars["CrowdControl"], 1, 1, true, 10, "0x70003152"); |
111 |
|
Kragenwar-3044 |
self.skills["BaneFlare"] = SkillSlot(self.bars["CrowdControl"], 2, 1, true, 18, "0x7000B60D"); |
112 |
|
Kragenwar-3044 |
self.skills["Herblore"] = SkillSlot(self.bars["CrowdControl"], 3, 1, true, 36, "0x70003EC0"); |
113 |
|
Kragenwar-3044 |
|
114 |
|
Kragenwar-3044 |
self.skills["BeaconofHope"] = SkillSlot(self.bars["Heal"], 1, 1, true, 8, "0x70003123"); |
115 |
|
Kragenwar-3044 |
self.skills["SharethePower"] = SkillSlot(self.bars["Heal"], 2, 1, true, 22, "0x7000316B"); |
116 |
|
Kragenwar-3044 |
|
117 |
|
Kragenwar-3044 |
self.skills["BurningEmbers"] = SkillSlot(self.bars["Damage"], 1, 1, true, 1, "0x70003EB4"); |
118 |
|
Kragenwar-3044 |
self.skills["TestofWill"] = SkillSlot(self.bars["Damage"], 2, 1, true, 6, "0x70003EB9"); |
119 |
|
Kragenwar-3044 |
self.skills["GustofWind"] = SkillSlot(self.bars["Damage"], 3, 1, true, 8, "0x70003EB7"); |
120 |
|
Kragenwar-3044 |
self.skills["CrackedEarth"] = SkillSlot(self.bars["Damage"], 4, 1, true, 14, "0x70003143"); |
121 |
|
Kragenwar-3044 |
self.skills["LightoftheRisingDawn"] = SkillSlot(self.bars["Damage"], 5, 1, true, 18, "0x70003EC2"); |
122 |
|
Kragenwar-3044 |
self.skills["Stormlore"] = SkillSlot(self.bars["Damage"], 6, 1, true, 48, "0x7000B63C"); |
123 |
|
Kragenwar-3044 |
self.skills["LightningStorm"] = SkillSlot(self.bars["Damage"], 7, 1, true, 50, "0x7000B726"); |
124 |
|
Kragenwar-3044 |
self.skills["MarchoftheEnts"] = SkillSlot(self.bars["Damage"], 8, 1, self.settings["Damage"].ents, 41, "0x70000FA7"); |
125 |
|
Kragenwar-3044 |
|
126 |
|
Kragenwar-3044 |
self.skills["InnerFlame"] = SkillSlot(self.bars["Self"], 1, 1, true, 4, "0x70003EB6"); |
127 |
|
Kragenwar-3044 |
self.skills["WisdomoftheCouncil"] = SkillSlot(self.bars["Self"], 2, 1, true, 20, "0x7000314B"); |
128 |
|
Kragenwar-3044 |
self.skills["CalltotheValar"] = SkillSlot(self.bars["Self"], 3, 1, true, 34, "0x70003EC1"); |
129 |
|
Kragenwar-3044 |
self.skills["CombatSummoning"] = SkillSlot(self.bars["Self"], 4, 1, self.settings["Pets"].bogtrait, 58, "0x70024948"); |
130 |
|
Kragenwar-3044 |
|
131 |
|
Kragenwar-3044 |
self.skills["KotLM"] = SkillSlot(self.bars["KotLM"], 1, 1, true, 20, "0x7000C588"); |
132 |
|
Kragenwar-3044 |
|
133 |
|
Kragenwar-3044 |
self.skills["PowerofKnowledge"] = SkillSlot(self.bars["Power"], 1, 1, true, 16, "0x70003116"); |
134 |
|
Kragenwar-3044 |
|
135 |
|
Kragenwar-3044 |
self.skills["SignWizardry"] = SkillSlot(self.bars["DoTs"], 1, 1, true, 2, "0x70003EBA"); |
136 |
|
Kragenwar-3044 |
self.skills["SignWizardsFire"] = SkillSlot(self.bars["DoTs"], 2, 1, true, 54, "0x7000F7FF"); |
137 |
|
Kragenwar-3044 |
self.skills["StickyGourd"] = SkillSlot(self.bars["DoTs"], 3, 1, true, 60, "0x7000F74D"); |
138 |
|
Kragenwar-3044 |
|
139 |
|
Kragenwar-3044 |
self.skills["Staffstrike"] = SkillSlot(self.bars["Melee"], 1, 1, true, 1, "0x7000310D"); |
140 |
|
Kragenwar-3044 |
self.skills["Staffsweep"] = SkillSlot(self.bars["Melee"], 2, 1, true, 30, "0x70024824"); |
141 |
|
Kragenwar-3044 |
|
142 |
|
Kragenwar-3044 |
self.skills["StickyTar"] = SkillSlot(self.bars["StaticDebuffs"], 2, 1, true, 46, "0x7000B62B"); |
143 |
|
Kragenwar-3044 |
|
144 |
|
Kragenwar-3044 |
-- Build MultiSlots SkillMultiSlot( parent:SkillBar, x:int, y:int, active:Boolean ); |
145 |
|
Kragenwar-3044 |
-- multi:AddShortCut(name:String, level:int, hex:String); |
146 |
|
Kragenwar-3044 |
self.multi["WardingSlot"] = SkillMultiSlot(self.bars["StaticDebuffs"], 1, 1, true); |
147 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingDead", 26, "0x7000B625"); |
148 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingNature", 38, "0x7000B623"); |
149 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingDrakes", 40, "0x7000B624"); |
150 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:LevelCheck(); |
151 |
|
Kragenwar-3044 |
|
152 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"] = SkillMultiSlot(self.bars["PetBuffs"], 1, 1, true); |
153 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:AddShortCut("SignRage", 4, "0x70003139"); |
154 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:AddShortCut("SignProtection",6, "0x7000312B"); |
155 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:LevelCheck(); |
156 |
|
Kragenwar-3044 |
|
157 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"] = ItemMultiSlot(self.bars["PetBuffs"], 2, 1, true); |
158 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Crumbs", self.settings["Quickslots"].crumbs["active"], self.settings["Quickslots"].crumbs["type"], self.settings["Quickslots"].crumbs["data"]); |
159 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Oats", self.settings["Quickslots"].oats["active"], self.settings["Quickslots"].oats["type"], self.settings["Quickslots"].oats["data"]); |
160 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Meat", self.settings["Quickslots"].meat["active"], self.settings["Quickslots"].meat["type"], self.settings["Quickslots"].meat["data"]); |
161 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Water", self.settings["Quickslots"].water["active"], self.settings["Quickslots"].water["type"], self.settings["Quickslots"].water["data"]); |
162 |
|
Kragenwar-3044 |
|
163 |
|
Kragenwar-3044 |
|
164 |
|
Kragenwar-3044 |
self.multi["PetsSlot"] = SkillMultiSlot(self.bars["Pets"], 1, 1, true); |
165 |
|
Kragenwar-3044 |
if (self.settings["Pets"].raven) then self.multi["PetsSlot"]:AddShortCut("Ravenlore", 2, "0x70003EB5", 1); end |
166 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenb) then self.multi["PetsSlot"]:AddShortCut("Bloodraven", 2, "0x70024A63", 1); end |
167 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenm) then self.multi["PetsSlot"]:AddShortCut("Mottledwingraven", 2, "0x70024A60", 1); end |
168 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenf) then self.multi["PetsSlot"]:AddShortCut("Frostraven", 2, "0x70024A62", 1); end |
169 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravens) then self.multi["PetsSlot"]:AddShortCut("Stormraven", 2, "0x70024A5F", 1); end |
170 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenw) then self.multi["PetsSlot"]:AddShortCut("Weatheredraven", 2, "0x70024A5D", 1); end |
171 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bear) then self.multi["PetsSlot"]:AddShortCut("FriendofBears", 14, "0x70003EB8", 2); end |
172 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearb) then self.multi["PetsSlot"]:AddShortCut("BlackBear", 14, "0x70024A6E", 2); end |
173 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearp) then self.multi["PetsSlot"]:AddShortCut("PolarBear", 14, "0x70024A6C", 2); end |
174 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearwp) then self.multi["PetsSlot"]:AddShortCut("WildpawBear", 14, "0x70024A65", 2); end |
175 |
|
Kragenwar-3044 |
if (self.settings["Pets"].beartc) then self.multi["PetsSlot"]:AddShortCut("TundraBearCub", 14, "0x70024A69", 2); end |
176 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearbp) then self.multi["PetsSlot"]:AddShortCut("BlackpawBear", 14, "0x70024A68", 2); end |
177 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearw) then self.multi["PetsSlot"]:AddShortCut("WeatheredBear", 14, "0x70024A66", 2); end |
178 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynx) then self.multi["PetsSlot"]:AddShortCut("Lynxspeech", 30, "0x7000B8D3", 3); end |
179 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxs) then self.multi["PetsSlot"]:AddShortCut("SpottedLynx", 30, "0x70024A73", 3); end |
180 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxo) then self.multi["PetsSlot"]:AddShortCut("OnyxLynx", 30, "0x70024A7A", 3); end |
181 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxt) then self.multi["PetsSlot"]:AddShortCut("TundraLynx", 30, "0x70024A74", 3); end |
182 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxg) then self.multi["PetsSlot"]:AddShortCut("GreyLynx", 30, "0x70024A75", 3); end |
183 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxm) then self.multi["PetsSlot"]:AddShortCut("MountainLynx", 30, "0x70024A79", 3); end |
184 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eagle and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("Eaglefriend", 45, "0x70000FB2", 4); end |
185 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglea and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("AshenEagle", 45, "0x70024A7E", 4); end |
186 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eagles and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("SnowcrestEagle", 45, "0x70024A80", 4); end |
187 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglee and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("EmberEagle", 45, "0x70024A84", 4); end |
188 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglet and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("TundraEagle", 45, "0x70024A82", 4); end |
189 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saber) then self.multi["PetsSlot"]:AddShortCut("FriendofFelineHunters", 56, "0x7000F530", 5); end |
190 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberd) then self.multi["PetsSlot"]:AddShortCut("DuskySabercat", 56, "0x70024A8D", 5); end |
191 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabersp) then self.multi["PetsSlot"]:AddShortCut("SpottedSabercat", 56, "0x70024A89", 5); end |
192 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberg) then self.multi["PetsSlot"]:AddShortCut("GreySabercat", 56, "0x70024A8F", 5); end |
193 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberdw) then self.multi["PetsSlot"]:AddShortCut("DeepwoodSabercat", 56, "0x70024A8B", 5); end |
194 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabers) then self.multi["PetsSlot"]:AddShortCut("StripedSabercat", 56, "0x70024A8A", 5); end |
195 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabero) then self.multi["PetsSlot"]:AddShortCut("OnyxSabercat", 56, "0x70024A87", 5); end |
196 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bog and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("Naturefriend", 58, "0x7000F54D", 6); end |
197 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogs and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("SwampGuardian", 58, "0x70024A93", 6); end |
198 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogm and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("MountainGuardian", 58, "0x70024A95", 6); end |
199 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogt and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("TundraGuardian", 58, "0x70024A91", 6); end |
200 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:LevelCheck(); |
201 |
|
Kragenwar-3044 |
|
202 |
|
Kragenwar-3044 |
-- SET COMBAT STATES |
203 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:SetCombat(false, true); |
204 |
|
Kragenwar-3044 |
self.skills["BackfromtheBrink"]:SetCombat(false, true); |
205 |
|
Kragenwar-3044 |
|
206 |
|
Kragenwar-3044 |
-- CLASS SPECIFIC SETUP/DEFAULT CODE |
207 |
|
Kragenwar-3044 |
|
208 |
|
Kragenwar-3044 |
|
209 |
|
Kragenwar-3044 |
-- EVENTS; |
210 |
|
Kragenwar-3044 |
|
211 |
|
Kragenwar-3044 |
|
212 |
|
Kragenwar-3044 |
-- INITIALIZE BARS |
213 |
|
Kragenwar-3044 |
self:InitBars(); |
214 |
|
Kragenwar-3044 |
self:CombatChange(vars.player:IsInCombat()); |
215 |
|
Kragenwar-3044 |
|
216 |
|
Kragenwar-3044 |
end |
217 |
|
Kragenwar-3044 |
|
218 |
|
Kragenwar-3044 |
|
219 |
|
Kragenwar-3044 |
-- ADD EFFECT EVENT |
220 |
|
Kragenwar-3044 |
function LoreBars:AddEffect( effectIndex ) |
221 |
|
Kragenwar-3044 |
local effect = vars.player:GetEffects():Get( effectIndex ); |
222 |
|
Kragenwar-3044 |
|
223 |
|
Kragenwar-3044 |
if (effect:GetName() == self.effectlist["AncientWisdom"]) then |
224 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"]:SetState(true , false, effect:GetID()); |
225 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"]:SetHover(true); |
226 |
|
Kragenwar-3044 |
if (self.settings["AncientWisdom"].earlywarning) then |
227 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"]:StartTimer(effect:GetDuration() * .70, true); |
228 |
|
Kragenwar-3044 |
end |
229 |
|
Kragenwar-3044 |
|
230 |
|
Kragenwar-3044 |
elseif (effect:GetName() == self.effectlist["CombatSummoning"]) then |
231 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:SetState(true, true, effect:GetID()); |
232 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:SetCombat(true, true); |
233 |
|
Kragenwar-3044 |
|
234 |
|
Kragenwar-3044 |
|
235 |
|
Kragenwar-3044 |
end |
236 |
|
Kragenwar-3044 |
end |
237 |
|
Kragenwar-3044 |
|
238 |
|
Kragenwar-3044 |
|
239 |
|
Kragenwar-3044 |
-- REMOVE EFFECT EVENT |
240 |
|
Kragenwar-3044 |
function LoreBars:RemoveEffect( effect ) |
241 |
|
Kragenwar-3044 |
|
242 |
|
Kragenwar-3044 |
-- SetState can be called on both bars and skills |
243 |
|
Kragenwar-3044 |
-- it will store the incoming effect id and flag the state as well as trigger visibility |
244 |
|
Kragenwar-3044 |
-- SetState(effectstate:Boolean, visibility:Boolean, effectid:int); |
245 |
|
Kragenwar-3044 |
|
246 |
|
Kragenwar-3044 |
if (effect:GetName() == self.effectlist["AncientWisdom"]) then |
247 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"]:SetState(false, true, effect:GetID()); |
248 |
|
Kragenwar-3044 |
self.skills["AncientWisdom"]:SetHover(false); |
249 |
|
Kragenwar-3044 |
|
250 |
|
Kragenwar-3044 |
elseif (effect:GetName() == self.effectlist["CombatSummoning"]) then |
251 |
|
Kragenwar-3044 |
self.multi["PetSlot"]:SetState(false, true, effect:GetID()); |
252 |
|
Kragenwar-3044 |
self.multi["PetSlot"]:SetCombat(false, true); |
253 |
|
Kragenwar-3044 |
|
254 |
|
Kragenwar-3044 |
end |
255 |
|
Kragenwar-3044 |
end |
256 |
|
Kragenwar-3044 |
|
257 |
|
Kragenwar-3044 |
|
258 |
|
Kragenwar-3044 |
-- DEFAULT SETTINGS |
259 |
|
Kragenwar-3044 |
function LoreBars:DefaultSettings() |
260 |
|
Kragenwar-3044 |
self.settings = { }; |
261 |
|
Kragenwar-3044 |
|
262 |
|
Kragenwar-3044 |
local windowlist = {"Debuffs", "BattleBuffs", "Cures", "AncientWisdom", "Rez", "CrowdControl", "Heal", "Damage", "Self", "KotLM", "Power", "DoTs", "PetBuffs", "Melee", "StaticDebuffs", "Pets"}; |
263 |
|
Kragenwar-3044 |
for k,v in pairs(windowlist) do |
264 |
|
Kragenwar-3044 |
self.settings[v] = { active = true, x = 0, y = 0, rotate = 0 }; |
265 |
|
Kragenwar-3044 |
end |
266 |
|
Kragenwar-3044 |
|
267 |
|
Kragenwar-3044 |
self.settings["AncientWisdom"].earlywarning = true; |
268 |
|
Kragenwar-3044 |
self.settings["Damage"].ents = false; |
269 |
|
Kragenwar-3044 |
self.settings["Pets"].bogtrait = false; |
270 |
|
Kragenwar-3044 |
self.settings["Pets"].eagletrait = false; |
271 |
|
Kragenwar-3044 |
self.settings["Pets"].raven = true; |
272 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenb = false; |
273 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenm = false; |
274 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenf = false; |
275 |
|
Kragenwar-3044 |
self.settings["Pets"].ravens = false; |
276 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenw = false; |
277 |
|
Kragenwar-3044 |
self.settings["Pets"].bear = true; |
278 |
|
Kragenwar-3044 |
self.settings["Pets"].bearb = false; |
279 |
|
Kragenwar-3044 |
self.settings["Pets"].bearp = false; |
280 |
|
Kragenwar-3044 |
self.settings["Pets"].bearwp = false; |
281 |
|
Kragenwar-3044 |
self.settings["Pets"].beartc = false; |
282 |
|
Kragenwar-3044 |
self.settings["Pets"].bearbp = false; |
283 |
|
Kragenwar-3044 |
self.settings["Pets"].bearw = false; |
284 |
|
Kragenwar-3044 |
self.settings["Pets"].lynx = true; |
285 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxs = false; |
286 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxo = false; |
287 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxt = false; |
288 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxg = false; |
289 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxm = false; |
290 |
|
Kragenwar-3044 |
self.settings["Pets"].bog = false; |
291 |
|
Kragenwar-3044 |
self.settings["Pets"].bogs = false; |
292 |
|
Kragenwar-3044 |
self.settings["Pets"].bogm = false; |
293 |
|
Kragenwar-3044 |
self.settings["Pets"].bogt = false; |
294 |
|
Kragenwar-3044 |
self.settings["Pets"].eagle = false; |
295 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglea = false; |
296 |
|
Kragenwar-3044 |
self.settings["Pets"].eagles = false; |
297 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglee = false; |
298 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglet = false; |
299 |
|
Kragenwar-3044 |
self.settings["Pets"].saber = true; |
300 |
|
Kragenwar-3044 |
self.settings["Pets"].saberd = false; |
301 |
|
Kragenwar-3044 |
self.settings["Pets"].sabersp = false; |
302 |
|
Kragenwar-3044 |
self.settings["Pets"].saberg = false; |
303 |
|
Kragenwar-3044 |
self.settings["Pets"].saberdw = false; |
304 |
|
Kragenwar-3044 |
self.settings["Pets"].sabers = false; |
305 |
|
Kragenwar-3044 |
self.settings["Pets"].sabero = false; |
306 |
|
Kragenwar-3044 |
|
307 |
|
Kragenwar-3044 |
self.settings["Quickslots"] = { }; |
308 |
|
Kragenwar-3044 |
self.settings["Quickslots"].crumbs = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
309 |
|
Kragenwar-3044 |
self.settings["Quickslots"].oats = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
310 |
|
Kragenwar-3044 |
self.settings["Quickslots"].meat = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
311 |
|
Kragenwar-3044 |
self.settings["Quickslots"].water = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
312 |
|
Kragenwar-3044 |
|
313 |
|
Kragenwar-3044 |
|
314 |
|
Kragenwar-3044 |
end |
315 |
|
Kragenwar-3044 |
|
316 |
|
Kragenwar-3044 |
|
317 |
|
Kragenwar-3044 |
-- UPDATE SETTINGS |
318 |
|
Kragenwar-3044 |
function LoreBars:UpdateSettings() |
319 |
|
Kragenwar-3044 |
if(settings.vers < 3.20) then |
320 |
|
Kragenwar-3044 |
self.settings["Quickslots"] = { }; |
321 |
|
Kragenwar-3044 |
self.settings["Quickslots"].crumbs = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
322 |
|
Kragenwar-3044 |
self.settings["Quickslots"].oats = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
323 |
|
Kragenwar-3044 |
self.settings["Quickslots"].meat = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
324 |
|
Kragenwar-3044 |
self.settings["Quickslots"].water = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
325 |
|
Kragenwar-3044 |
end |
326 |
|
Kragenwar-3044 |
|
327 |
|
Kragenwar-3044 |
settings.vers = vars.vers; |
328 |
|
Kragenwar-3044 |
|
329 |
|
Kragenwar-3044 |
end |
330 |
|
Kragenwar-3044 |
|
331 |
|
Kragenwar-3044 |
|
332 |
|
Kragenwar-3044 |
-- DISPLAY SETUP WINDOW AND SET ALL CHECKBOXES COMBOBOXES SLIDERS AND QUICKSLOTS |
333 |
|
Kragenwar-3044 |
function LoreBars:ShowSetup() |
334 |
|
Kragenwar-3044 |
self.setup:SetVisible(true); |
335 |
|
Kragenwar-3044 |
|
336 |
|
Kragenwar-3044 |
self.setupbb.opacityslider:SetValue(settings.opacity * 100); |
337 |
|
Kragenwar-3044 |
self.setupbb.checkboxlock:SetChecked(settings.lockslots); |
338 |
|
Kragenwar-3044 |
self.setupbb.checkboxgrid:SetChecked(settings.snaptogrid); |
339 |
|
Kragenwar-3044 |
self.setupbb.combolangbox:SetSelection(settings.language); |
340 |
|
Kragenwar-3044 |
|
341 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb1:SetText("Debuffs"); |
342 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb1:SetChecked (self.settings["Debuffs"].active); |
343 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb1:SetVisible(true); |
344 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb2:SetText("Battle Buffs"); |
345 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb2:SetChecked (self.settings["BattleBuffs"].active); |
346 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb2:SetVisible(true); |
347 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb3:SetText("Cures"); |
348 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb3:SetChecked (self.settings["Cures"].active); |
349 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb3:SetVisible(true); |
350 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb4:SetText("Ancient Wisdom"); |
351 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb4:SetChecked (self.settings["AncientWisdom"].active); |
352 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb4:SetVisible(true); |
353 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb5:SetText("Rez"); |
354 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb5:SetChecked (self.settings["Rez"].active); |
355 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb5:SetVisible(true); |
356 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb6:SetText("Crowd Control"); |
357 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb6:SetChecked (self.settings["CrowdControl"].active); |
358 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb6:SetVisible(true); |
359 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb7:SetText("Heal"); |
360 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb7:SetChecked (self.settings["Heal"].active); |
361 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb7:SetVisible(true); |
362 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb8:SetText("Damage"); |
363 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb8:SetChecked (self.settings["Damage"].active); |
364 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb8:SetVisible(true); |
365 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb9:SetText("Self"); |
366 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb9:SetChecked (self.settings["Self"].active); |
367 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb9:SetVisible(true); |
368 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb10:SetText("KotLM"); |
369 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb10:SetChecked (self.settings["KotLM"].active); |
370 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb10:SetVisible(true); |
371 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb11:SetText("Power"); |
372 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb11:SetChecked (self.settings["Power"].active); |
373 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb11:SetVisible(true); |
374 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb12:SetText("DoTs"); |
375 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb12:SetChecked (self.settings["DoTs"].active); |
376 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb12:SetVisible(true); |
377 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb13:SetText("Pet Buffs"); |
378 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb13:SetChecked (self.settings["PetBuffs"].active); |
379 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb13:SetVisible(true); |
380 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb14:SetText("Melee"); |
381 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb14:SetChecked (self.settings["Melee"].active); |
382 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb14:SetVisible(true); |
383 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb15:SetText("Static Debuffs"); |
384 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb15:SetChecked (self.settings["StaticDebuffs"].active); |
385 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb15:SetVisible(true); |
386 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb16:SetText("Pets"); |
387 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb16:SetChecked (self.settings["Pets"].active); |
388 |
|
Kragenwar-3044 |
self.setupbb.checkboxbb16:SetVisible(true); |
389 |
|
Kragenwar-3044 |
|
390 |
|
Kragenwar-3044 |
self.setupf.checkboxf1:SetText("March of the Ents"); |
391 |
|
Kragenwar-3044 |
self.setupf.checkboxf1:SetChecked (self.settings["Damage"].ents); |
392 |
|
Kragenwar-3044 |
self.setupf.checkboxf1:SetVisible(true); |
393 |
|
Kragenwar-3044 |
self.setupf.checkboxf2:SetText("Nature-friend"); |
394 |
|
Kragenwar-3044 |
self.setupf.checkboxf2:SetChecked (self.settings["Pets"].bogtrait); |
395 |
|
Kragenwar-3044 |
self.setupf.checkboxf2:SetVisible(true); |
396 |
|
Kragenwar-3044 |
self.setupf.checkboxf3:SetText("Eagle-friend"); |
397 |
|
Kragenwar-3044 |
self.setupf.checkboxf3:SetChecked (self.settings["Pets"].eagletrait); |
398 |
|
Kragenwar-3044 |
self.setupf.checkboxf3:SetVisible(true); |
399 |
|
Kragenwar-3044 |
|
400 |
|
Kragenwar-3044 |
self.setupf.checkboxf10:SetText("Anc. Wis. Early Warn"); |
401 |
|
Kragenwar-3044 |
self.setupf.checkboxf10:SetChecked (self.settings["AncientWisdom"].earlywarning); |
402 |
|
Kragenwar-3044 |
self.setupf.checkboxf10:SetVisible(true); |
403 |
|
Kragenwar-3044 |
|
404 |
|
Kragenwar-3044 |
self.setupqs.quickslot1:SetVisible(true); |
405 |
|
Kragenwar-3044 |
pcall(function() self.setupqs.quickslot1:SetShortcut(Turbine.UI.Lotro.Shortcut( self.settings["Quickslots"].crumbs["type"], self.settings["Quickslots"].crumbs["data"] ) ); end); |
406 |
|
Kragenwar-3044 |
self.setupqs.quickslot1cb:SetText("Bag of Crumbs"); |
407 |
|
Kragenwar-3044 |
self.setupqs.quickslot1cb:SetChecked(self.settings["Quickslots"].crumbs["active"]); |
408 |
|
Kragenwar-3044 |
self.setupqs.quickslot1cb:SetVisible(true); |
409 |
|
Kragenwar-3044 |
self.setupqs.quickslot2:SetVisible(true); |
410 |
|
Kragenwar-3044 |
pcall(function() self.setupqs.quickslot2:SetShortcut(Turbine.UI.Lotro.Shortcut( self.settings["Quickslots"].oats["type"], self.settings["Quickslots"].oats["data"] ) ); end); |
411 |
|
Kragenwar-3044 |
self.setupqs.quickslot2cb:SetText("Pot of Honey and Oats"); |
412 |
|
Kragenwar-3044 |
self.setupqs.quickslot2cb:SetChecked(self.settings["Quickslots"].oats["active"]); |
413 |
|
Kragenwar-3044 |
self.setupqs.quickslot2cb:SetVisible(true); |
414 |
|
Kragenwar-3044 |
self.setupqs.quickslot3:SetVisible(true); |
415 |
|
Kragenwar-3044 |
pcall(function() self.setupqs.quickslot3:SetShortcut(Turbine.UI.Lotro.Shortcut( self.settings["Quickslots"].meat["type"], self.settings["Quickslots"].meat["data"] ) ); end); |
416 |
|
Kragenwar-3044 |
self.setupqs.quickslot3cb:SetText("Cut of Meat"); |
417 |
|
Kragenwar-3044 |
self.setupqs.quickslot3cb:SetChecked(self.settings["Quickslots"].meat["active"]); |
418 |
|
Kragenwar-3044 |
self.setupqs.quickslot3cb:SetVisible(true); |
419 |
|
Kragenwar-3044 |
self.setupqs.quickslot4:SetVisible(true); |
420 |
|
Kragenwar-3044 |
pcall(function() self.setupqs.quickslot4:SetShortcut(Turbine.UI.Lotro.Shortcut( self.settings["Quickslots"].water["type"], self.settings["Quickslots"].water["data"] ) ); end); |
421 |
|
Kragenwar-3044 |
self.setupqs.quickslot4cb:SetText("Bowl of Water"); |
422 |
|
Kragenwar-3044 |
self.setupqs.quickslot4cb:SetChecked(self.settings["Quickslots"].water["active"]); |
423 |
|
Kragenwar-3044 |
self.setupqs.quickslot4cb:SetVisible(true); |
424 |
|
Kragenwar-3044 |
|
425 |
|
Kragenwar-3044 |
self.setup.buttons[4]:SetVisible(true); |
426 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr1:SetChecked(self.settings["Pets"].raven); |
427 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr2:SetChecked(self.settings["Pets"].ravenb); |
428 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr3:SetChecked(self.settings["Pets"].ravenm); |
429 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr4:SetChecked(self.settings["Pets"].ravenf); |
430 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr5:SetChecked(self.settings["Pets"].ravens); |
431 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmr6:SetChecked(self.settings["Pets"].ravenw); |
432 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb1:SetChecked(self.settings["Pets"].bear); |
433 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb2:SetChecked(self.settings["Pets"].bearb); |
434 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb3:SetChecked(self.settings["Pets"].bearp); |
435 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb4:SetChecked(self.settings["Pets"].bearwp); |
436 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb5:SetChecked(self.settings["Pets"].beartc); |
437 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb6:SetChecked(self.settings["Pets"].bearbp); |
438 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmb7:SetChecked(self.settings["Pets"].bearw); |
439 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml1:SetChecked(self.settings["Pets"].lynx); |
440 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml2:SetChecked(self.settings["Pets"].lynxs); |
441 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml3:SetChecked(self.settings["Pets"].lynxo); |
442 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml4:SetChecked(self.settings["Pets"].lynxt); |
443 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml5:SetChecked(self.settings["Pets"].lynxg); |
444 |
|
Kragenwar-3044 |
self.setuppets.checkboxlml6:SetChecked(self.settings["Pets"].lynxm); |
445 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmbg1:SetChecked(self.settings["Pets"].bog); |
446 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmbg2:SetChecked(self.settings["Pets"].bogs); |
447 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmbg3:SetChecked(self.settings["Pets"].bogm); |
448 |
|
Kragenwar-3044 |
self.setuppets.checkboxlmbg4:SetChecked(self.settings["Pets"].bogt); |
449 |
|
Kragenwar-3044 |
self.setuppets.checkboxlme1:SetChecked(self.settings["Pets"].eagle); |
450 |
|
Kragenwar-3044 |
self.setuppets.checkboxlme2:SetChecked(self.settings["Pets"].eaglea); |
451 |
|
Kragenwar-3044 |
self.setuppets.checkboxlme3:SetChecked(self.settings["Pets"].eagles); |
452 |
|
Kragenwar-3044 |
self.setuppets.checkboxlme4:SetChecked(self.settings["Pets"].eaglee); |
453 |
|
Kragenwar-3044 |
self.setuppets.checkboxlme5:SetChecked(self.settings["Pets"].eaglet); |
454 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms1:SetChecked(self.settings["Pets"].saber); |
455 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms2:SetChecked(self.settings["Pets"].saberd); |
456 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms3:SetChecked(self.settings["Pets"].sabersp); |
457 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms4:SetChecked(self.settings["Pets"].saberg); |
458 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms5:SetChecked(self.settings["Pets"].saberdw); |
459 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms6:SetChecked(self.settings["Pets"].sabers); |
460 |
|
Kragenwar-3044 |
self.setuppets.checkboxlms7:SetChecked(self.settings["Pets"].sabero); |
461 |
|
Kragenwar-3044 |
|
462 |
|
Kragenwar-3044 |
end |
463 |
|
Kragenwar-3044 |
|
464 |
|
Kragenwar-3044 |
|
465 |
|
Kragenwar-3044 |
-- SET ALL VARIABLES OFF OF SETUP WINDOW |
466 |
|
Kragenwar-3044 |
function LoreBars:SetupClosing() |
467 |
|
Kragenwar-3044 |
self.settings["Debuffs"].active = self.setupbb.checkboxbb1:IsChecked(); |
468 |
|
Kragenwar-3044 |
self.settings["BattleBuffs"].active = self.setupbb.checkboxbb2:IsChecked(); |
469 |
|
Kragenwar-3044 |
self.settings["Cures"].active = self.setupbb.checkboxbb3:IsChecked(); |
470 |
|
Kragenwar-3044 |
self.settings["AncientWisdom"].active = self.setupbb.checkboxbb4:IsChecked(); |
471 |
|
Kragenwar-3044 |
self.settings["Rez"].active = self.setupbb.checkboxbb5:IsChecked(); |
472 |
|
Kragenwar-3044 |
self.settings["CrowdControl"].active = self.setupbb.checkboxbb6:IsChecked(); |
473 |
|
Kragenwar-3044 |
self.settings["Heal"].active = self.setupbb.checkboxbb7:IsChecked(); |
474 |
|
Kragenwar-3044 |
self.settings["Damage"].active = self.setupbb.checkboxbb8:IsChecked(); |
475 |
|
Kragenwar-3044 |
self.settings["Self"].active = self.setupbb.checkboxbb9:IsChecked(); |
476 |
|
Kragenwar-3044 |
self.settings["KotLM"].active = self.setupbb.checkboxbb10:IsChecked(); |
477 |
|
Kragenwar-3044 |
self.settings["Power"].active = self.setupbb.checkboxbb11:IsChecked(); |
478 |
|
Kragenwar-3044 |
self.settings["DoTs"].active = self.setupbb.checkboxbb12:IsChecked(); |
479 |
|
Kragenwar-3044 |
self.settings["PetBuffs"].active = self.setupbb.checkboxbb13:IsChecked(); |
480 |
|
Kragenwar-3044 |
self.settings["Melee"].active = self.setupbb.checkboxbb14:IsChecked(); |
481 |
|
Kragenwar-3044 |
self.settings["StaticDebuffs"].active = self.setupbb.checkboxbb15:IsChecked(); |
482 |
|
Kragenwar-3044 |
self.settings["Pets"].active = self.setupbb.checkboxbb16:IsChecked(); |
483 |
|
Kragenwar-3044 |
|
484 |
|
Kragenwar-3044 |
self.settings["Damage"].ents = self.setupf.checkboxf1:IsChecked(); |
485 |
|
Kragenwar-3044 |
self.settings["Pets"].bogtrait = self.setupf.checkboxf2:IsChecked(); |
486 |
|
Kragenwar-3044 |
self.settings["Pets"].eagletrait = self.setupf.checkboxf3:IsChecked(); |
487 |
|
Kragenwar-3044 |
|
488 |
|
Kragenwar-3044 |
self.settings["AncientWisdom"].earlywarning = self.setupf.checkboxf10:IsChecked(); |
489 |
|
Kragenwar-3044 |
|
490 |
|
Kragenwar-3044 |
if (self.setupqs.quickslot1:GetShortcut():GetData() ~= "" ) then |
491 |
|
Kragenwar-3044 |
self.settings["Quickslots"].crumbs = { active = self.setupqs.quickslot1cb:IsChecked(), type = self.setupqs.quickslot1:GetShortcut():GetType(), data = self.setupqs.quickslot1:GetShortcut():GetData() }; |
492 |
|
Kragenwar-3044 |
else |
493 |
|
Kragenwar-3044 |
self.settings["Quickslots"].crumbs = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
494 |
|
Kragenwar-3044 |
end |
495 |
|
Kragenwar-3044 |
if (self.setupqs.quickslot2:GetShortcut():GetData() ~= "" ) then |
496 |
|
Kragenwar-3044 |
self.settings["Quickslots"].oats = { active = self.setupqs.quickslot2cb:IsChecked(), type = self.setupqs.quickslot2:GetShortcut():GetType(), data = self.setupqs.quickslot2:GetShortcut():GetData() }; |
497 |
|
Kragenwar-3044 |
else |
498 |
|
Kragenwar-3044 |
self.settings["Quickslots"].oats = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
499 |
|
Kragenwar-3044 |
end |
500 |
|
Kragenwar-3044 |
if (self.setupqs.quickslot2:GetShortcut():GetData() ~= "" ) then |
501 |
|
Kragenwar-3044 |
self.settings["Quickslots"].meat = { active = self.setupqs.quickslot3cb:IsChecked(), type = self.setupqs.quickslot3:GetShortcut():GetType(), data = self.setupqs.quickslot3:GetShortcut():GetData() }; |
502 |
|
Kragenwar-3044 |
else |
503 |
|
Kragenwar-3044 |
self.settings["Quickslots"].meat = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
504 |
|
Kragenwar-3044 |
end |
505 |
|
Kragenwar-3044 |
if (self.setupqs.quickslot4:GetShortcut():GetData() ~= "" ) then |
506 |
|
Kragenwar-3044 |
self.settings["Quickslots"].water = { active = self.setupqs.quickslot4cb:IsChecked(), type = self.setupqs.quickslot4:GetShortcut():GetType(), data = self.setupqs.quickslot4:GetShortcut():GetData() }; |
507 |
|
Kragenwar-3044 |
else |
508 |
|
Kragenwar-3044 |
self.settings["Quickslots"].water = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" }; |
509 |
|
Kragenwar-3044 |
end |
510 |
|
Kragenwar-3044 |
|
511 |
|
Kragenwar-3044 |
self.settings["Pets"].raven = self.setuppets.checkboxlmr1:IsChecked(); |
512 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenb = self.setuppets.checkboxlmr2:IsChecked(); |
513 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenm = self.setuppets.checkboxlmr3:IsChecked(); |
514 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenf = self.setuppets.checkboxlmr4:IsChecked(); |
515 |
|
Kragenwar-3044 |
self.settings["Pets"].ravens = self.setuppets.checkboxlmr5:IsChecked(); |
516 |
|
Kragenwar-3044 |
self.settings["Pets"].ravenw = self.setuppets.checkboxlmr6:IsChecked(); |
517 |
|
Kragenwar-3044 |
self.settings["Pets"].bear = self.setuppets.checkboxlmb1:IsChecked(); |
518 |
|
Kragenwar-3044 |
self.settings["Pets"].bearb = self.setuppets.checkboxlmb2:IsChecked(); |
519 |
|
Kragenwar-3044 |
self.settings["Pets"].bearp = self.setuppets.checkboxlmb3:IsChecked(); |
520 |
|
Kragenwar-3044 |
self.settings["Pets"].bearwp = self.setuppets.checkboxlmb4:IsChecked(); |
521 |
|
Kragenwar-3044 |
self.settings["Pets"].beartc = self.setuppets.checkboxlmb5:IsChecked(); |
522 |
|
Kragenwar-3044 |
self.settings["Pets"].bearbp = self.setuppets.checkboxlmb6:IsChecked(); |
523 |
|
Kragenwar-3044 |
self.settings["Pets"].bearw = self.setuppets.checkboxlmb7:IsChecked(); |
524 |
|
Kragenwar-3044 |
self.settings["Pets"].lynx = self.setuppets.checkboxlml1:IsChecked(); |
525 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxs = self.setuppets.checkboxlml2:IsChecked(); |
526 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxo = self.setuppets.checkboxlml3:IsChecked(); |
527 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxt = self.setuppets.checkboxlml4:IsChecked(); |
528 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxg = self.setuppets.checkboxlml5:IsChecked(); |
529 |
|
Kragenwar-3044 |
self.settings["Pets"].lynxm = self.setuppets.checkboxlml6:IsChecked(); |
530 |
|
Kragenwar-3044 |
self.settings["Pets"].bog = self.setuppets.checkboxlmbg1:IsChecked(); |
531 |
|
Kragenwar-3044 |
self.settings["Pets"].bogs = self.setuppets.checkboxlmbg2:IsChecked(); |
532 |
|
Kragenwar-3044 |
self.settings["Pets"].bogm = self.setuppets.checkboxlmbg3:IsChecked(); |
533 |
|
Kragenwar-3044 |
self.settings["Pets"].bogt = self.setuppets.checkboxlmbg4:IsChecked(); |
534 |
|
Kragenwar-3044 |
self.settings["Pets"].eagle = self.setuppets.checkboxlme1:IsChecked(); |
535 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglea = self.setuppets.checkboxlme2:IsChecked(); |
536 |
|
Kragenwar-3044 |
self.settings["Pets"].eagles = self.setuppets.checkboxlme3:IsChecked(); |
537 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglee = self.setuppets.checkboxlme4:IsChecked(); |
538 |
|
Kragenwar-3044 |
self.settings["Pets"].eaglet = self.setuppets.checkboxlme5:IsChecked(); |
539 |
|
Kragenwar-3044 |
self.settings["Pets"].saber = self.setuppets.checkboxlms1:IsChecked(); |
540 |
|
Kragenwar-3044 |
self.settings["Pets"].saberd = self.setuppets.checkboxlms2:IsChecked(); |
541 |
|
Kragenwar-3044 |
self.settings["Pets"].sabersp = self.setuppets.checkboxlms3:IsChecked(); |
542 |
|
Kragenwar-3044 |
self.settings["Pets"].saberg = self.setuppets.checkboxlms4:IsChecked(); |
543 |
|
Kragenwar-3044 |
self.settings["Pets"].saberdw = self.setuppets.checkboxlms5:IsChecked(); |
544 |
|
Kragenwar-3044 |
self.settings["Pets"].sabers = self.setuppets.checkboxlms6:IsChecked(); |
545 |
|
Kragenwar-3044 |
self.settings["Pets"].sabero = self.setuppets.checkboxlms7:IsChecked(); |
546 |
|
Kragenwar-3044 |
|
547 |
|
Kragenwar-3044 |
settings.opacity = (self.setupbb.opacityslider:GetValue() / 100); |
548 |
|
Kragenwar-3044 |
settings.lockslots = self.setupbb.checkboxlock:IsChecked(); |
549 |
|
Kragenwar-3044 |
settings.snaptogrid = self.setupbb.checkboxgrid:IsChecked(); |
550 |
|
Kragenwar-3044 |
settings.language = self.setupbb.combolangbox:GetSelection(); |
551 |
|
Kragenwar-3044 |
|
552 |
|
Kragenwar-3044 |
self:SaveSettings(); |
553 |
|
Kragenwar-3044 |
self:Refresh(); |
554 |
|
Kragenwar-3044 |
|
555 |
|
Kragenwar-3044 |
end |
556 |
|
Kragenwar-3044 |
|
557 |
|
Kragenwar-3044 |
|
558 |
|
Kragenwar-3044 |
-- REFRESH SKILLS AND BARS |
559 |
|
Kragenwar-3044 |
function LoreBars:Refresh() |
560 |
|
Kragenwar-3044 |
|
561 |
|
Kragenwar-3044 |
-- GENERIC REFRESH (Required for all classes) |
562 |
|
Kragenwar-3044 |
self:RefreshBars(); |
563 |
|
Kragenwar-3044 |
|
564 |
|
Kragenwar-3044 |
-- REDEFINE EFFECTLIST IN CASE OF LANGUAGE CHANGE |
565 |
|
Kragenwar-3044 |
self.DefineEffectList(); |
566 |
|
Kragenwar-3044 |
|
567 |
|
Kragenwar-3044 |
-- CLASS SPECIFIC REFRESH |
568 |
|
Kragenwar-3044 |
-- Setup Features |
569 |
|
Kragenwar-3044 |
self.skills["MarchoftheEnts"]:SetActive(self.settings["Damage"].ents); |
570 |
|
Kragenwar-3044 |
|
571 |
|
Kragenwar-3044 |
-- Build Multi Slots |
572 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:Clear(); |
573 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingDead", 26, "0x7000B625"); |
574 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingNature", 38, "0x7000B623"); |
575 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:AddShortCut("WardingDrakes", 40, "0x7000B624"); |
576 |
|
Kragenwar-3044 |
self.multi["WardingSlot"]:LevelCheck(); |
577 |
|
Kragenwar-3044 |
|
578 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:Clear(); |
579 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:AddShortCut("SignRage", 4, "0x70003139"); |
580 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:AddShortCut("SignProtection",6, "0x7000312B"); |
581 |
|
Kragenwar-3044 |
self.multi["PetBuffsSlot"]:LevelCheck(); |
582 |
|
Kragenwar-3044 |
|
583 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:Clear(); |
584 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Crumbs", self.settings["Quickslots"].crumbs["active"], self.settings["Quickslots"].crumbs["type"], self.settings["Quickslots"].crumbs["data"]); |
585 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Oats", self.settings["Quickslots"].oats["active"], self.settings["Quickslots"].oats["type"], self.settings["Quickslots"].oats["data"]); |
586 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Meat", self.settings["Quickslots"].meat["active"], self.settings["Quickslots"].meat["type"], self.settings["Quickslots"].meat["data"]); |
587 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:AddShortCut("Water", self.settings["Quickslots"].water["active"], self.settings["Quickslots"].water["type"], self.settings["Quickslots"].water["data"]); |
588 |
|
Kragenwar-3044 |
self.multi["PetFoodSlot"]:Refresh(); |
589 |
|
Kragenwar-3044 |
|
590 |
|
Kragenwar-3044 |
|
591 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:Clear(); |
592 |
|
Kragenwar-3044 |
if (self.settings["Pets"].raven) then self.multi["PetsSlot"]:AddShortCut("Ravenlore", 2, "0x70003EB5", 1); end |
593 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenb) then self.multi["PetsSlot"]:AddShortCut("Bloodraven", 2, "0x70024A63", 1); end |
594 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenm) then self.multi["PetsSlot"]:AddShortCut("Mottledwingraven", 2, "0x70024A60", 1); end |
595 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenf) then self.multi["PetsSlot"]:AddShortCut("Frostraven", 2, "0x70024A62", 1); end |
596 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravens) then self.multi["PetsSlot"]:AddShortCut("Stormraven", 2, "0x70024A5F", 1); end |
597 |
|
Kragenwar-3044 |
if (self.settings["Pets"].ravenw) then self.multi["PetsSlot"]:AddShortCut("Weatheredraven", 2, "0x70024A5D", 1); end |
598 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bear) then self.multi["PetsSlot"]:AddShortCut("FriendofBears", 14, "0x70003EB8", 2); end |
599 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearb) then self.multi["PetsSlot"]:AddShortCut("BlackBear", 14, "0x70024A6E", 2); end |
600 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearp) then self.multi["PetsSlot"]:AddShortCut("PolarBear", 14, "0x70024A6C", 2); end |
601 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearwp) then self.multi["PetsSlot"]:AddShortCut("WildpawBear", 14, "0x70024A65", 2); end |
602 |
|
Kragenwar-3044 |
if (self.settings["Pets"].beartc) then self.multi["PetsSlot"]:AddShortCut("TundraBearCub", 14, "0x70024A69", 2); end |
603 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearbp) then self.multi["PetsSlot"]:AddShortCut("BlackpawBear", 14, "0x70024A68", 2); end |
604 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bearw) then self.multi["PetsSlot"]:AddShortCut("WeatheredBear", 14, "0x70024A66", 2); end |
605 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynx) then self.multi["PetsSlot"]:AddShortCut("Lynxspeech", 30, "0x7000B8D3", 3); end |
606 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxs) then self.multi["PetsSlot"]:AddShortCut("SpottedLynx", 30, "0x70024A73", 3); end |
607 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxo) then self.multi["PetsSlot"]:AddShortCut("OnyxLynx", 30, "0x70024A7A", 3); end |
608 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxt) then self.multi["PetsSlot"]:AddShortCut("TundraLynx", 30, "0x70024A74", 3); end |
609 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxg) then self.multi["PetsSlot"]:AddShortCut("GreyLynx", 30, "0x70024A75", 3); end |
610 |
|
Kragenwar-3044 |
if (self.settings["Pets"].lynxm) then self.multi["PetsSlot"]:AddShortCut("MountainLynx", 30, "0x70024A79", 3); end |
611 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eagle and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("Eaglefriend", 45, "0x70000FB2", 4); end |
612 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglea and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("AshenEagle", 45, "0x70024A7E", 4); end |
613 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eagles and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("SnowcrestEagle", 45, "0x70024A80", 4); end |
614 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglee and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("EmberEagle", 45, "0x70024A84", 4); end |
615 |
|
Kragenwar-3044 |
if (self.settings["Pets"].eaglet and self.settings["Pets"].eagletrait) then self.multi["PetsSlot"]:AddShortCut("TundraEagle", 45, "0x70024A82", 4); end |
616 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saber) then self.multi["PetsSlot"]:AddShortCut("FriendofFelineHunters", 56, "0x7000F530", 5); end |
617 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberd) then self.multi["PetsSlot"]:AddShortCut("DuskySabercat", 56, "0x70024A8D", 5); end |
618 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabersp) then self.multi["PetsSlot"]:AddShortCut("SpottedSabercat", 56, "0x70024A89", 5); end |
619 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberg) then self.multi["PetsSlot"]:AddShortCut("GreySabercat", 56, "0x70024A8F", 5); end |
620 |
|
Kragenwar-3044 |
if (self.settings["Pets"].saberdw) then self.multi["PetsSlot"]:AddShortCut("DeepwoodSabercat", 56, "0x70024A8B", 5); end |
621 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabers) then self.multi["PetsSlot"]:AddShortCut("StripedSabercat", 56, "0x70024A8A", 5); end |
622 |
|
Kragenwar-3044 |
if (self.settings["Pets"].sabero) then self.multi["PetsSlot"]:AddShortCut("OnyxSabercat", 56, "0x70024A87", 5); end |
623 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bog and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("Naturefriend", 58, "0x7000F54D", 6); end |
624 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogs and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("SwampGuardian", 58, "0x70024A93", 6); end |
625 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogm and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("MountainGuardian", 58, "0x70024A95", 6); end |
626 |
|
Kragenwar-3044 |
if (self.settings["Pets"].bogt and self.settings["Pets"].bogtrait) then self.multi["PetsSlot"]:AddShortCut("TundraGuardian", 58, "0x70024A91", 6); end |
627 |
|
Kragenwar-3044 |
self.multi["PetsSlot"]:LevelCheck(); |
628 |
|
Kragenwar-3044 |
|
629 |
|
Kragenwar-3044 |
-- Refresh States |
630 |
|
Kragenwar-3044 |
self:CombatChange(vars.player:IsInCombat()); |
631 |
|
Kragenwar-3044 |
|
632 |
|
Kragenwar-3044 |
Turbine.Shell.WriteLine("KragenBars: Loremaster Bars refresh completed successfully."); |
633 |
|
Kragenwar-3044 |
|
634 |
|
Kragenwar-3044 |
end |