vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 KC_ITEMS_LOCALS.modules.broker = {}
2 local locals = KC_ITEMS_LOCALS.modules.broker
3  
4 if( not ace:LoadTranslation("KC_Broker") ) then
5  
6 locals.name = "KC_Broker"
7 locals.description = "Auction Broker"
8  
9 locals.modes = {}
10 locals.modes.smart = "Smart"
11 locals.modes.memory = "Memory"
12 locals.modes.mixed = "Mixed"
13 locals.modes.vendor = "Vendor"
14 locals.modes.none = "None"
15 locals.modes.all = format("%s %s %s %s %s", locals.modes.mixed, locals.modes.smart, locals.modes.memory, locals.modes.vendor, locals.modes.none)
16  
17 locals.labels = {}
18 locals.labels.guidebase = "%s[Already Known] %s[Vendor Bait] %s[Cheap Buyout] %s[Cheap Bid]"
19  
20 locals.errors = {}
21 locals.errors.amount = "The amount entered is invalid. Must be either in percentage format - 95% - or in decimal format - .95"
22 locals.errors.mode = "You have entered an invalid mode. Pleasee type /kci broker autofillmode to get a list of the valid modes."
23 locals.errors.color = "Color codes must be entered in as three sets of numbers between 1-255 representing red green blue. example: 25 25 255 is a dark blue."
24  
25 locals.msgs = {}
26 locals.msgs.amount = "Autofill's Smart Mode's Cut"
27 locals.msgs.mode = "Autofill's Mode is"
28 locals.msgs.autofill = "Autofill of auction values is"
29 locals.msgs.remduration = "Rembering last auction duration is"
30 locals.msgs.skipmem = "Skipping price memory when using mixed mode is"
31 locals.msgs.ahcolor = "Coloring of Auction House items is"
32 locals.msgs.colorcode = "%s is now set to %sthis color."
33  
34 -- Chat handler locals
35 locals.chat = {
36 option = "broker",
37 desc = "Broker related commands.",
38 args = {
39 {
40 option = "autofill",
41 desc = "Toggles use of autofill.",
42 method = "TogAutofill"
43 },
44 {
45 option = "skipmem",
46 desc = "Toggles if Broker should skip item memory when using mixed mode for autofill.",
47 method = "SkipMem"
48 },
49 {
50 option = "setcut",
51 desc = "Sets cut percentage used to adjust smart mode's value. \n Must be formatted as either '90%' or as .90.",
52 method = "SetCut",
53 input = true,
54 },
55 {
56 option = "autofillmode",
57 desc = "Sets the mode autofill uses to calculate prices.",
58 method = "SetMode",
59 input = true,
60 args = {
61 {
62 option = locals.modes.mixed,
63 desc = "Will attempt to use all other modes in the following sequence: Memory, Smart, Vendor, None.",
64 },
65 {
66 option = locals.modes.memory,
67 desc = "Will only fill in prices if you have sold the item before. Will still suggest buyout price for items though.",
68 },
69 {
70 option = locals.modes.smart,
71 desc = "Will fill in prices based on market average if auction house data is available; otherwise it will suggest a simple buyout. (requires the Auction module)",
72 },
73 {
74 option = locals.modes.vendor,
75 desc = "Will fill in prices based on what a vendor will pay for it; otherwise it will suggest a simple buyout. (requires the SellValue module)",
76 },
77 {
78 option = locals.modes.none,
79 desc = "Will only suggest a buyout value.",
80 },
81 }
82 },
83 {
84 option = "remduration",
85 desc = "Toggles if Broker remembers the last auction duration you used.",
86 method = "RememberDuration"
87 },
88 {
89 option = "ahcolor",
90 desc = "Toggles if Broker will color code auctions that are a good deal.",
91 method = "AHColor"
92 },
93 {
94 option = "setahcolor",
95 desc = "Set the indivdual color codes.",
96 args = {
97 {
98 option = "known",
99 desc = "The color for recepies that you already know.",
100 input = true,
101 method = "SetKnownColor",
102 },
103 {
104 option = "vendor",
105 desc = "The color for items that you can vendor for more money.",
106 input = true,
107 method = "SetVendorColor",
108 },
109 {
110 option = "buy",
111 desc = "The color for items whose buyout is less than the threshold precentage.",
112 input = true,
113 method = "SetBuyColor",
114 },
115 {
116 option = "min",
117 desc = "The color for items whose min is less than the threshold precentage.",
118 input = true,
119 method = "SetMinColor",
120 },
121 },
122 },
123 },
124 }
125  
126 end