|
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
138 |
MrJackdaw-1942 |
if ItemCategory==nil then ItemCategory={} end |
2 |
149 |
MrJackdaw-1942 |
if CustomItem==nil then CustomItem={} end |
3 |
3 |
MrJackdaw-1942 |
|
4 |
53 |
MrJackdaw-1942 |
--Trying to fill the holes in Item Category |
5 |
|
MrJackdaw-1942 |
--Revise this when Turbine fix the ItemCategory enumeration. |
6 |
|
MrJackdaw-1942 |
ItemCategory[89]="BarterReputation" |
7 |
134 |
MrJackdaw-1942 |
|
8 |
53 |
MrJackdaw-1942 |
ItemCategory[173]= "Special" |
9 |
134 |
MrJackdaw-1942 |
|
10 |
53 |
MrJackdaw-1942 |
ItemCategory[177]= "BarterSkirmish" |
11 |
|
MrJackdaw-1942 |
ItemCategory[178]= "Barter" |
12 |
|
MrJackdaw-1942 |
ItemCategory[179]= "ShieldSpikes" |
13 |
|
MrJackdaw-1942 |
ItemCategory[180]= "OutfitFeet" |
14 |
70 |
MrJackdaw-1942 |
ItemCategory[181]= "OutfitShoulder" |
15 |
53 |
MrJackdaw-1942 |
ItemCategory[182]= "OutfitUpperbody" |
16 |
|
MrJackdaw-1942 |
ItemCategory[183]= "OutfitHead" |
17 |
70 |
MrJackdaw-1942 |
ItemCategory[184]= "OutfitGloves" |
18 |
134 |
MrJackdaw-1942 |
ItemCategory[185]= "OutfitTrousers" -- Thanks Galureth |
19 |
53 |
MrJackdaw-1942 |
ItemCategory[186]= "SkillScrolls" |
20 |
|
MrJackdaw-1942 |
ItemCategory[187]= "ChampionHorns" |
21 |
162 |
MrJackdaw-1942 |
ItemCategory[188]= "CraftOptionalIngredient" |
22 |
53 |
MrJackdaw-1942 |
ItemCategory[189]= "Perks" |
23 |
134 |
MrJackdaw-1942 |
ItemCategory[190]= "TomeOf" --Is it just tome of will? |
24 |
53 |
MrJackdaw-1942 |
ItemCategory[191]= "TravelAndMaps" |
25 |
3 |
MrJackdaw-1942 |
|
26 |
93 |
MrJackdaw-1942 |
ItemCategory[194]="RelicScroll" |
27 |
161 |
MrJackdaw-1942 |
|
28 |
96 |
MrJackdaw-1942 |
ItemCategory[195]="WestfoldMetalworkScroll" |
29 |
|
MrJackdaw-1942 |
ItemCategory[196]="WestfoldJewellerScroll" |
30 |
90 |
MrJackdaw-1942 |
ItemCategory[197]="WestfoldWoodworkScroll" |
31 |
96 |
MrJackdaw-1942 |
ItemCategory[198]="WestfoldWeaponsmithScroll" |
32 |
95 |
MrJackdaw-1942 |
ItemCategory[199]="WestfoldTailorScroll" |
33 |
134 |
MrJackdaw-1942 |
|
34 |
97 |
MrJackdaw-1942 |
ItemCategory[201]="WestfoldForesterScroll" |
35 |
134 |
MrJackdaw-1942 |
|
36 |
94 |
MrJackdaw-1942 |
ItemCategory[203]="WestfoldCookScroll" |
37 |
95 |
MrJackdaw-1942 |
ItemCategory[204]="WestfoldScholarScroll" |
38 |
90 |
MrJackdaw-1942 |
|
39 |
140 |
MrJackdaw-1942 |
ItemCategory[205]="FestivalConsumable" --Thanks eloyolo |
40 |
149 |
MrJackdaw-1942 |
ItemCategory[207]="Misc 2" --Thanks ralphtro |
41 |
137 |
MrJackdaw-1942 |
|
42 |
161 |
MrJackdaw-1942 |
|
43 |
|
MrJackdaw-1942 |
ItemCategory[208]="EastemnetMetalworkScroll" |
44 |
|
MrJackdaw-1942 |
ItemCategory[209]="EastemnetJewellerScroll" --A guess! |
45 |
|
MrJackdaw-1942 |
ItemCategory[210]="EastemnetWoodworkScroll" --A guess! |
46 |
|
MrJackdaw-1942 |
ItemCategory[211]="EastemnetWeaponsmithScroll" |
47 |
|
MrJackdaw-1942 |
ItemCategory[212]="EastemnetTailorScroll" |
48 |
|
MrJackdaw-1942 |
--ItemCategory[213]="Eastemnet |
49 |
|
MrJackdaw-1942 |
ItemCategory[214]="EastemnetForesterScroll" |
50 |
|
MrJackdaw-1942 |
--ItemCategory[215]="Eastemnet |
51 |
|
MrJackdaw-1942 |
ItemCategory[216]="EastemnetCookScroll" |
52 |
|
MrJackdaw-1942 |
ItemCategory[217]="EastemnetScholarScroll" |
53 |
|
MrJackdaw-1942 |
|
54 |
160 |
MrJackdaw-1942 |
ItemCategory[218]="Legendary Bridle" |
55 |
|
MrJackdaw-1942 |
|
56 |
134 |
MrJackdaw-1942 |
--This next line *could* overwrite the data above, if Turbine ever fix the categories. |
57 |
54 |
MrJackdaw-1942 |
for i,v in pairs(Turbine.Gameplay.ItemCategory) do ItemCategory[v]=i end |
58 |
3 |
MrJackdaw-1942 |
|
59 |
100 |
MrJackdaw-1942 |
if Groups==nil then |
60 |
66 |
MrJackdaw-1942 |
Turbine.Shell.WriteLine("<rgb=#00FF00>SortPack loaded. /Sort to sort the backpack, /SortOption to change the order</rgb>") |
61 |
98 |
MrJackdaw-1942 |
|
62 |
54 |
MrJackdaw-1942 |
CraftScroll={ |
63 |
|
MrJackdaw-1942 |
"ApprenticeCookScroll", |
64 |
|
MrJackdaw-1942 |
"ApprenticeFarmerScroll", |
65 |
|
MrJackdaw-1942 |
"ApprenticeForestryScroll", |
66 |
|
MrJackdaw-1942 |
"ApprenticeJewellerScroll", |
67 |
|
MrJackdaw-1942 |
"ApprenticeMetalworkScroll", |
68 |
|
MrJackdaw-1942 |
"ApprenticeProspectingScroll", |
69 |
|
MrJackdaw-1942 |
"ApprenticeScholarScroll", |
70 |
|
MrJackdaw-1942 |
"ApprenticeTailorScroll", |
71 |
|
MrJackdaw-1942 |
"ApprenticeWeaponsmithScroll", |
72 |
|
MrJackdaw-1942 |
"ApprenticeWoodworkScroll", |
73 |
|
MrJackdaw-1942 |
"ArtisanCookScroll", |
74 |
|
MrJackdaw-1942 |
"ArtisanFarmerScroll", |
75 |
|
MrJackdaw-1942 |
"ArtisanForestryScroll", |
76 |
|
MrJackdaw-1942 |
"ArtisanJewellerScroll", |
77 |
|
MrJackdaw-1942 |
"ArtisanMetalworkScroll", |
78 |
|
MrJackdaw-1942 |
"ArtisanProspectingScroll", |
79 |
|
MrJackdaw-1942 |
"ArtisanScholarScroll", |
80 |
|
MrJackdaw-1942 |
"ArtisanTailorScroll", |
81 |
|
MrJackdaw-1942 |
"ArtisanWeaponsmithScroll", |
82 |
|
MrJackdaw-1942 |
"ArtisanWoodworkScroll", |
83 |
|
MrJackdaw-1942 |
"ExpertCookScroll", |
84 |
|
MrJackdaw-1942 |
"ExpertFarmerScroll", |
85 |
|
MrJackdaw-1942 |
"ExpertForestryScroll", |
86 |
|
MrJackdaw-1942 |
"ExpertJewellerScroll", |
87 |
|
MrJackdaw-1942 |
"ExpertMetalworkScroll", |
88 |
|
MrJackdaw-1942 |
"ExpertProspectingScroll", |
89 |
|
MrJackdaw-1942 |
"ExpertScholarScroll", |
90 |
|
MrJackdaw-1942 |
"ExpertTailorScroll", |
91 |
|
MrJackdaw-1942 |
"ExpertWeaponsmithScroll", |
92 |
|
MrJackdaw-1942 |
"ExpertWoodworkScroll", |
93 |
|
MrJackdaw-1942 |
"JourneymanCookScroll", |
94 |
|
MrJackdaw-1942 |
"JourneymanFarmerScroll", |
95 |
|
MrJackdaw-1942 |
"JourneymanForestryScroll", |
96 |
|
MrJackdaw-1942 |
"JourneymanJewellerScroll", |
97 |
|
MrJackdaw-1942 |
"JourneymanMetalworkScroll", |
98 |
|
MrJackdaw-1942 |
"JourneymanProspectingScroll", |
99 |
|
MrJackdaw-1942 |
"JourneymanScholarScroll", |
100 |
|
MrJackdaw-1942 |
"JourneymanTailorScroll", |
101 |
|
MrJackdaw-1942 |
"JourneymanWeaponsmithScroll", |
102 |
|
MrJackdaw-1942 |
"JourneymanWoodworkScroll", |
103 |
|
MrJackdaw-1942 |
"MasterCookScroll", |
104 |
|
MrJackdaw-1942 |
"MasterFarmerScroll", |
105 |
|
MrJackdaw-1942 |
"MasterForestryScroll", |
106 |
|
MrJackdaw-1942 |
"MasterJewellerScroll", |
107 |
|
MrJackdaw-1942 |
"MasterMetalworkScroll", |
108 |
|
MrJackdaw-1942 |
"MasterProspectingScroll", |
109 |
|
MrJackdaw-1942 |
"MasterScholarScroll", |
110 |
|
MrJackdaw-1942 |
"MasterTailorScroll", |
111 |
|
MrJackdaw-1942 |
"MasterWeaponsmithScroll", |
112 |
|
MrJackdaw-1942 |
"MasterWoodworkScroll", |
113 |
|
MrJackdaw-1942 |
"SupremeCookScroll", |
114 |
|
MrJackdaw-1942 |
"SupremeFarmerScroll", |
115 |
|
MrJackdaw-1942 |
"SupremeForestryScroll", |
116 |
|
MrJackdaw-1942 |
"SupremeJewellerScroll", |
117 |
|
MrJackdaw-1942 |
"SupremeMetalworkScroll", |
118 |
|
MrJackdaw-1942 |
"SupremeProspectingScroll", |
119 |
|
MrJackdaw-1942 |
"SupremeScholarScroll", |
120 |
|
MrJackdaw-1942 |
"SupremeTailorScroll", |
121 |
|
MrJackdaw-1942 |
"SupremeWeaponsmithScroll", |
122 |
162 |
MrJackdaw-1942 |
"SupremeWoodworkScroll", |
123 |
|
MrJackdaw-1942 |
"WestFoldCookScroll", |
124 |
|
MrJackdaw-1942 |
"WestFoldFarmerScroll", |
125 |
|
MrJackdaw-1942 |
"WestFoldForestryScroll", |
126 |
|
MrJackdaw-1942 |
"WestFoldJewellerScroll", |
127 |
|
MrJackdaw-1942 |
"WestFoldMetalworkScroll", |
128 |
|
MrJackdaw-1942 |
"WestFoldProspectingScroll", |
129 |
|
MrJackdaw-1942 |
"WestFoldScholarScroll", |
130 |
|
MrJackdaw-1942 |
"WestFoldTailorScroll", |
131 |
|
MrJackdaw-1942 |
"WestFoldWeaponsmithScroll", |
132 |
|
MrJackdaw-1942 |
"WestFoldWoodworkScroll", |
133 |
|
MrJackdaw-1942 |
"EastemnetCookScroll", |
134 |
|
MrJackdaw-1942 |
"EastemnetFarmerScroll", |
135 |
|
MrJackdaw-1942 |
"EastemnetForestryScroll", |
136 |
|
MrJackdaw-1942 |
"EastemnetJewellerScroll", |
137 |
|
MrJackdaw-1942 |
"EastemnetMetalworkScroll", |
138 |
|
MrJackdaw-1942 |
"EastemnetProspectingScroll", |
139 |
|
MrJackdaw-1942 |
"EastemnetScholarScroll", |
140 |
|
MrJackdaw-1942 |
"EastemnetTailorScroll", |
141 |
|
MrJackdaw-1942 |
"EastemnetWeaponsmithScroll", |
142 |
|
MrJackdaw-1942 |
"EastemnetWoodworkScroll"} |
143 |
100 |
MrJackdaw-1942 |
CraftScroll.Name="CraftScroll" |
144 |
|
MrJackdaw-1942 |
|
145 |
54 |
MrJackdaw-1942 |
Tool={ |
146 |
162 |
MrJackdaw-1942 |
"Tool", |
147 |
|
MrJackdaw-1942 |
"Festival"} |
148 |
100 |
MrJackdaw-1942 |
Tool.Name="Tool" |
149 |
3 |
MrJackdaw-1942 |
|
150 |
54 |
MrJackdaw-1942 |
Weapons={ |
151 |
|
MrJackdaw-1942 |
"Axe", |
152 |
|
MrJackdaw-1942 |
"Bow", |
153 |
|
MrJackdaw-1942 |
"Club", |
154 |
|
MrJackdaw-1942 |
"Crossbow", |
155 |
|
MrJackdaw-1942 |
"Dagger", |
156 |
|
MrJackdaw-1942 |
"Book", |
157 |
|
MrJackdaw-1942 |
"Halberd", |
158 |
|
MrJackdaw-1942 |
"Hammer", |
159 |
|
MrJackdaw-1942 |
"Instrument", |
160 |
|
MrJackdaw-1942 |
"Javelin", |
161 |
|
MrJackdaw-1942 |
"Mace", |
162 |
|
MrJackdaw-1942 |
"Minstrel", |
163 |
|
MrJackdaw-1942 |
"Spear", |
164 |
|
MrJackdaw-1942 |
"Shield", |
165 |
|
MrJackdaw-1942 |
"Staff", |
166 |
|
MrJackdaw-1942 |
"Sword", |
167 |
|
MrJackdaw-1942 |
"Thrown", |
168 |
|
MrJackdaw-1942 |
"Weapon"} |
169 |
100 |
MrJackdaw-1942 |
Weapons.Name="Weapons" |
170 |
|
MrJackdaw-1942 |
|
171 |
54 |
MrJackdaw-1942 |
Armor={ |
172 |
|
MrJackdaw-1942 |
"Armor", |
173 |
|
MrJackdaw-1942 |
"GuardianBelt", |
174 |
|
MrJackdaw-1942 |
"Back", |
175 |
|
MrJackdaw-1942 |
"Chest", |
176 |
|
MrJackdaw-1942 |
"Clothing", |
177 |
|
MrJackdaw-1942 |
"CosmeticBack", |
178 |
|
MrJackdaw-1942 |
"CosmeticHeld", |
179 |
162 |
MrJackdaw-1942 |
"CosmeticFeet", |
180 |
|
MrJackdaw-1942 |
"CosmeticHands", |
181 |
|
MrJackdaw-1942 |
"CosmeticShoulders", |
182 |
|
MrJackdaw-1942 |
"CosmeticHead", |
183 |
54 |
MrJackdaw-1942 |
"Feet", |
184 |
|
MrJackdaw-1942 |
"Hands", |
185 |
|
MrJackdaw-1942 |
"Head", |
186 |
|
MrJackdaw-1942 |
"Jewelry", |
187 |
|
MrJackdaw-1942 |
"Legs", |
188 |
|
MrJackdaw-1942 |
"MinstrelBook", |
189 |
|
MrJackdaw-1942 |
"Shoulders", |
190 |
|
MrJackdaw-1942 |
"OutfitFeet", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
191 |
162 |
MrJackdaw-1942 |
"OutfitUpperbody", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
192 |
70 |
MrJackdaw-1942 |
"OutfitHead", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
193 |
|
MrJackdaw-1942 |
"OutfitShoulder", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
194 |
|
MrJackdaw-1942 |
"OutfitGloves" --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
195 |
54 |
MrJackdaw-1942 |
} |
196 |
100 |
MrJackdaw-1942 |
Armor.Name="Armor" |
197 |
|
MrJackdaw-1942 |
|
198 |
54 |
MrJackdaw-1942 |
Dye={ |
199 |
|
MrJackdaw-1942 |
"Dye"} |
200 |
100 |
MrJackdaw-1942 |
Dye.Name="Dye" |
201 |
|
MrJackdaw-1942 |
|
202 |
54 |
MrJackdaw-1942 |
Fishing={ |
203 |
|
MrJackdaw-1942 |
"Fish", |
204 |
|
MrJackdaw-1942 |
"FishingBait", |
205 |
|
MrJackdaw-1942 |
"FishingOther", |
206 |
|
MrJackdaw-1942 |
"FishingPole"} |
207 |
100 |
MrJackdaw-1942 |
Fishing.Name="Fishing" |
208 |
|
MrJackdaw-1942 |
|
209 |
54 |
MrJackdaw-1942 |
Class={ |
210 |
|
MrJackdaw-1942 |
"Runekeeper", |
211 |
|
MrJackdaw-1942 |
"Burglar", |
212 |
|
MrJackdaw-1942 |
"Captain", |
213 |
|
MrJackdaw-1942 |
"Guardian", |
214 |
|
MrJackdaw-1942 |
"Champion", |
215 |
70 |
MrJackdaw-1942 |
"ChampionHorns", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
216 |
54 |
MrJackdaw-1942 |
"Loremaster", |
217 |
|
MrJackdaw-1942 |
"Hunter", |
218 |
|
MrJackdaw-1942 |
"Warden"} |
219 |
100 |
MrJackdaw-1942 |
Class.Name="Class" |
220 |
|
MrJackdaw-1942 |
|
221 |
54 |
MrJackdaw-1942 |
Food={ |
222 |
|
MrJackdaw-1942 |
"Food", |
223 |
|
MrJackdaw-1942 |
"LoremasterFood"} |
224 |
100 |
MrJackdaw-1942 |
Food.Name="Food" |
225 |
|
MrJackdaw-1942 |
|
226 |
54 |
MrJackdaw-1942 |
Decoration={ |
227 |
|
MrJackdaw-1942 |
"CeilingDecoration", |
228 |
|
MrJackdaw-1942 |
"Decoration", |
229 |
|
MrJackdaw-1942 |
"FloorDecoration", |
230 |
|
MrJackdaw-1942 |
"FurnitureDecoration", |
231 |
|
MrJackdaw-1942 |
"MusicDecoration", |
232 |
|
MrJackdaw-1942 |
"SpecialDecoration", |
233 |
|
MrJackdaw-1942 |
"Trophy", |
234 |
|
MrJackdaw-1942 |
"TrophyDecoration", |
235 |
|
MrJackdaw-1942 |
"YardDecoration", |
236 |
|
MrJackdaw-1942 |
"WallDecoration", |
237 |
|
MrJackdaw-1942 |
"SurfacePaintDecoration"} |
238 |
100 |
MrJackdaw-1942 |
Decoration.Name="Decoration" |
239 |
|
MrJackdaw-1942 |
|
240 |
54 |
MrJackdaw-1942 |
Legend={ |
241 |
|
MrJackdaw-1942 |
"LegendaryWeaponExperience", |
242 |
|
MrJackdaw-1942 |
"LegendaryWeaponIncreaseMaxLevel", |
243 |
|
MrJackdaw-1942 |
"LegendaryWeaponReplaceLegacy", |
244 |
|
MrJackdaw-1942 |
"LegendaryWeaponReset", |
245 |
162 |
MrJackdaw-1942 |
"LegendaryWeaponUpgradeLegacy", |
246 |
|
MrJackdaw-1942 |
"Legendary Bridle"} |
247 |
100 |
MrJackdaw-1942 |
Legend.Name="Legend" |
248 |
|
MrJackdaw-1942 |
|
249 |
54 |
MrJackdaw-1942 |
Potion={ |
250 |
|
MrJackdaw-1942 |
"Potion"} |
251 |
100 |
MrJackdaw-1942 |
Potion.Name="Potion" |
252 |
|
MrJackdaw-1942 |
|
253 |
54 |
MrJackdaw-1942 |
Device={ |
254 |
|
MrJackdaw-1942 |
"Device"} |
255 |
100 |
MrJackdaw-1942 |
Device.Name="Device" |
256 |
|
MrJackdaw-1942 |
|
257 |
54 |
MrJackdaw-1942 |
Craft={ |
258 |
|
MrJackdaw-1942 |
"Component", |
259 |
|
MrJackdaw-1942 |
"Crafting", |
260 |
|
MrJackdaw-1942 |
"Ingredient", |
261 |
|
MrJackdaw-1942 |
"CraftOptionalIngredient" --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
262 |
|
MrJackdaw-1942 |
} |
263 |
100 |
MrJackdaw-1942 |
Craft.Name="Craft" |
264 |
|
MrJackdaw-1942 |
|
265 |
54 |
MrJackdaw-1942 |
BuffItem={ |
266 |
|
MrJackdaw-1942 |
"Scroll", |
267 |
|
MrJackdaw-1942 |
"Trap", |
268 |
|
MrJackdaw-1942 |
"ShieldSpikes", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
269 |
162 |
MrJackdaw-1942 |
"Oil", |
270 |
|
MrJackdaw-1942 |
"Perk", |
271 |
|
MrJackdaw-1942 |
"Travel"} |
272 |
100 |
MrJackdaw-1942 |
BuffItem.Name="BuffItem" |
273 |
|
MrJackdaw-1942 |
|
274 |
54 |
MrJackdaw-1942 |
Misc={ |
275 |
40 |
Hazado-481 |
|
276 |
54 |
MrJackdaw-1942 |
"CraftingTrophy", |
277 |
|
MrJackdaw-1942 |
"Deconstructable", |
278 |
|
MrJackdaw-1942 |
"Effect", |
279 |
|
MrJackdaw-1942 |
"Healing", |
280 |
|
MrJackdaw-1942 |
"Implement", |
281 |
40 |
Hazado-481 |
|
282 |
54 |
MrJackdaw-1942 |
"Key", |
283 |
|
MrJackdaw-1942 |
"KinshipCharter", |
284 |
3 |
MrJackdaw-1942 |
|
285 |
54 |
MrJackdaw-1942 |
"Mounts", |
286 |
|
MrJackdaw-1942 |
"NonInventory", |
287 |
8 |
Hazado-481 |
|
288 |
54 |
MrJackdaw-1942 |
"Orb", |
289 |
|
MrJackdaw-1942 |
"Pennant", |
290 |
|
MrJackdaw-1942 |
"Quest", |
291 |
|
MrJackdaw-1942 |
"Relic", |
292 |
|
MrJackdaw-1942 |
"Resource", |
293 |
3 |
MrJackdaw-1942 |
|
294 |
54 |
MrJackdaw-1942 |
"SpecialTrophy", |
295 |
3 |
MrJackdaw-1942 |
|
296 |
5 |
MrJackdaw-1942 |
|
297 |
54 |
MrJackdaw-1942 |
"Treasure", |
298 |
|
MrJackdaw-1942 |
"Undefined", |
299 |
3 |
MrJackdaw-1942 |
|
300 |
54 |
MrJackdaw-1942 |
"BarterReputation", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
301 |
|
MrJackdaw-1942 |
"Special", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
302 |
|
MrJackdaw-1942 |
"BarterSkirmish", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
303 |
|
MrJackdaw-1942 |
"Barter", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
304 |
|
MrJackdaw-1942 |
"SkillScrolls", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
305 |
|
MrJackdaw-1942 |
|
306 |
|
MrJackdaw-1942 |
"Perks", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
307 |
|
MrJackdaw-1942 |
"TravelAndMaps", --CUSTOM! Remove when Turbine fix the ItemCategory Enumeration |
308 |
|
MrJackdaw-1942 |
"Misc" |
309 |
|
MrJackdaw-1942 |
} |
310 |
100 |
MrJackdaw-1942 |
Misc.Name="Misc" |
311 |
|
MrJackdaw-1942 |
|
312 |
|
MrJackdaw-1942 |
Groups={Tool,Device,Potion,BuffItem,Food,Legend,Weapons,Armor,Class,Craft,Dye,Fishing,Decoration,CraftScroll,Misc} |
313 |
|
MrJackdaw-1942 |
|
314 |
|
MrJackdaw-1942 |
end |
315 |
5 |
MrJackdaw-1942 |
|
316 |
110 |
MrJackdaw-1942 |
if Groups[0]==nil then Groups[0]={} end |
317 |
|
MrJackdaw-1942 |
Groups[0].Name="Empty Slots" |
318 |
|
MrJackdaw-1942 |
|
319 |
100 |
MrJackdaw-1942 |
function BuildList() |
320 |
|
MrJackdaw-1942 |
--Builds the list from the groups |
321 |
|
MrJackdaw-1942 |
|
322 |
|
MrJackdaw-1942 |
--Reset First |
323 |
|
MrJackdaw-1942 |
list=nil |
324 |
|
MrJackdaw-1942 |
list={} |
325 |
54 |
MrJackdaw-1942 |
|
326 |
100 |
MrJackdaw-1942 |
--Merge from current groups |
327 |
|
MrJackdaw-1942 |
mergetable(list,Groups) |
328 |
|
MrJackdaw-1942 |
|
329 |
|
MrJackdaw-1942 |
listtonum() |
330 |
105 |
MrJackdaw-1942 |
|
331 |
|
MrJackdaw-1942 |
--Create a new list - this matches itemcategory to group so, ItemGroup["ForestersAxe"]="Tool" |
332 |
|
MrJackdaw-1942 |
ItemGroup={} |
333 |
|
MrJackdaw-1942 |
for i=1,#Groups do |
334 |
|
MrJackdaw-1942 |
for j=1,#Groups[i] do |
335 |
|
MrJackdaw-1942 |
ItemGroup[Groups[i][j]]=i |
336 |
|
MrJackdaw-1942 |
end |
337 |
|
MrJackdaw-1942 |
end |
338 |
54 |
MrJackdaw-1942 |
end |
339 |
|
MrJackdaw-1942 |
|
340 |
53 |
MrJackdaw-1942 |
--Now, change the way the table works. |
341 |
|
MrJackdaw-1942 |
--This changes the text list to a numbered list. so, for example, value["Tool"] would equal 150 or whatever. |
342 |
54 |
MrJackdaw-1942 |
function listtonum() |
343 |
|
MrJackdaw-1942 |
value={} |
344 |
|
MrJackdaw-1942 |
for i,v in pairs(list) do |
345 |
55 |
MrJackdaw-1942 |
value[v]=i --This converts say, list[1]="Geoff" to value[Geoff]=1 Nice huh? |
346 |
54 |
MrJackdaw-1942 |
end |
347 |
|
MrJackdaw-1942 |
end |
348 |
8 |
Hazado-481 |
|
349 |
138 |
MrJackdaw-1942 |
function RepairList() |
350 |
|
MrJackdaw-1942 |
--Repair function if any new item categories have been added |
351 |
|
MrJackdaw-1942 |
local changed=false |
352 |
|
MrJackdaw-1942 |
for i,v in pairs(ItemCategory) do |
353 |
|
MrJackdaw-1942 |
if value[ItemCategory[i]]==nil then |
354 |
|
MrJackdaw-1942 |
local found=false |
355 |
|
MrJackdaw-1942 |
local target |
356 |
|
MrJackdaw-1942 |
for j=1,#Groups do |
357 |
|
MrJackdaw-1942 |
if Groups[j].Name=="Unknown" then found=true target=j end |
358 |
|
MrJackdaw-1942 |
end |
359 |
|
MrJackdaw-1942 |
if found==false then |
360 |
|
MrJackdaw-1942 |
Groups[#Groups+1]={["Name"]="Unknown"} |
361 |
|
MrJackdaw-1942 |
target=#Groups |
362 |
|
MrJackdaw-1942 |
end |
363 |
|
MrJackdaw-1942 |
changed=true |
364 |
|
MrJackdaw-1942 |
table.insert(Groups[target],ItemCategory[i]) |
365 |
|
MrJackdaw-1942 |
listtonum() |
366 |
137 |
MrJackdaw-1942 |
end |
367 |
70 |
MrJackdaw-1942 |
end |
368 |
138 |
MrJackdaw-1942 |
if changed then Turbine.Shell.WriteLine("Adding missing Categories to the 'Unknown' group ") end |
369 |
70 |
MrJackdaw-1942 |
end |
370 |
100 |
MrJackdaw-1942 |
|
371 |
138 |
MrJackdaw-1942 |
--Get the list; Pass 1 |
372 |
|
MrJackdaw-1942 |
BuildList() |
373 |
|
MrJackdaw-1942 |
--Repair function if any new item categories have been added |
374 |
|
MrJackdaw-1942 |
RepairList() |
375 |
100 |
MrJackdaw-1942 |
--Get the list; Pass 2 Rebuild the list after now adding the items in the "Unknown" category |
376 |
138 |
MrJackdaw-1942 |
BuildList() |
377 |
|
MrJackdaw-1942 |
|
All times are GMT -5. The time now is 05:54 PM.
|
|