Mercurial > wow > prospect-me
comparison ProspectMe.lua @ 31:c11461d5095c Prospect Me 2
Basic File and config prep for Prospect Me 2
author | Vynn <mischivin@gmail.com> |
---|---|
date | Tue, 08 Nov 2016 02:32:41 -0500 |
parents | dc011841fcb4 |
children | fc13da07d8e4 |
comparison
equal
deleted
inserted
replaced
30:7202674c6f51 | 31:c11461d5095c |
---|---|
1 --Check for Saved Variables, if they don't exist, set defaults. | |
2 if not ProspectMe then | |
3 ProspectMe = { | |
4 Config = { | |
5 ShowQualities = { | |
6 junk = false | |
7 common = false, | |
8 uncommon = true, | |
9 rare = true, | |
10 epic = true, | |
11 } | |
12 PerSession = false | |
13 ShowPercent = true | |
14 ShowNumber = true | |
15 } | |
16 | |
17 } | |
18 end | |
19 | |
20 function ProspectMe:Debug(object) { | |
21 Dump(self) | |
22 if object then | |
23 Dump(object) | |
24 end | |
25 } | |
26 | |
27 | |
28 | |
29 | |
1 local PROSPECT_ID = 31252 | 30 local PROSPECT_ID = 31252 |
2 local MILLING_ID = 51005 | 31 local MILLING_ID = 51005 |
3 local MASS_PROSPECT_FELSLATE_ID = 225902 | 32 local MASS_PROSPECT_FELSLATE_ID = 225902 |
4 local MASS_PROSPECT_LEYSTONE_ID = 225902 | 33 local MASS_PROSPECT_LEYSTONE_ID = 225902 |
5 local MASS_MILLING_YSERALLINE_ID = 210116 | 34 local MASS_MILLING_YSERALLINE_ID = 210116 |
27 PM_ItemTable[id].texture = texture | 56 PM_ItemTable[id].texture = texture |
28 PM_ItemTable[id].vendorPrice = vendorPrice | 57 PM_ItemTable[id].vendorPrice = vendorPrice |
29 PM_ItemTable[id].price = PM_GetItemValue(id) | 58 PM_ItemTable[id].price = PM_GetItemValue(id) |
30 end | 59 end |
31 | 60 |
32 function PM_GemCleanup() | |
33 local cleanupIDs = { "129099", "130200", "130201", "130202", "130203", "130204" } | |
34 if not PM_ItemTable["129100"] then | |
35 CreateTableEntry("129100") | |
36 end | |
37 for i, r in pairs(PM_ResultsTable) do | |
38 for k, v in pairs(cleanupIDs) do | |
39 if PM_ResultsTable[i][v] then | |
40 if not PM_ResultsTable[i]["129100"] then | |
41 PM_ResultsTable[i]["129100"] = 0 | |
42 end | |
43 PM_ResultsTable[i]["129100"] = PM_ResultsTable[i]["129100"] + PM_ResultsTable[i][v] | |
44 PM_ResultsTable[i][v] = nil | |
45 end | |
46 end | |
47 end | |
48 for k, v in pairs(cleanupIDs) do | |
49 if PM_ItemTable[v] then | |
50 PM_ItemTable[v] = nil | |
51 end | |
52 end | |
53 end | |
54 | |
55 local function PM_Init() | 61 local function PM_Init() |
56 if not PM_ResultsTable then | 62 if not PM_ResultsTable then |
57 PM_ResultsTable = {} | 63 PM_ResultsTable = {} |
58 PM_ItemTable = {} | 64 PM_ItemTable = {} |
59 end | 65 end |