Back to Home

ESO Lua File v101042

ingame/help/helpsubmitticketdata.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
ZO_HELP_TICKET_FIELD_TYPE =
{
    IMPACT =  1,
    CATEGORY = 2,
    SUBCATEGORY = 3,
    DETAILS = 4,
    EXTERNAL_INFO = 5,
    DESCRIPTION = 6,
    ATTACH_SCREENSHOT = 7,
    SUBMIT = 8,
}
ZO_HELP_SUBMIT_FEEDBACK_FIELD_DATA =
{
    [ZO_HELP_TICKET_FIELD_TYPE.IMPACT] =
    {
        enumStringPrefix = "SI_CUSTOMERSERVICESUBMITFEEDBACKIMPACTS",
        iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_IMPACT_ITERATION_BEGIN,
        iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_IMPACT_ITERATION_END,
        invalidEntry = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_IMPACT_NONE,
    },
    [ZO_HELP_TICKET_FIELD_TYPE.CATEGORY] =
    {
        enumStringPrefix = "SI_CUSTOMERSERVICESUBMITFEEDBACKCATEGORIES",
        universallyAddEnum = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_NONE,
        iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_ITERATION_BEGIN + 1,
        iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_ITERATION_END,
        sortFunction = function(left, right)
            return left.name < right.name
        end,
        invalidEntry = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_NONE,
    },
    [ZO_HELP_TICKET_FIELD_TYPE.SUBCATEGORY] =
    {
        enumStringPrefix = "SI_CUSTOMERSERVICESUBMITFEEDBACKSUBCATEGORIES",
        universallyAddEnum = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_NONE,
        otherEnum = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_OTHER,
        categoryContextualData = 
        {
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_ALLIANCE_WAR] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_ALLIANCE_WAR_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_ALLIANCE_WAR_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_AUDIO] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_AUDIO_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_AUDIO_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_CRAFTING] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_CRAFTING_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_CRAFTING_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_COMBAT] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_COMBAT_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_COMBAT_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_ITEMS] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_ITEMS_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_ITEMS_END - 1,
                detailsTitle = GetString(SI_CUSTOMER_SERVICE_ITEM_NAME),
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_CROWN_STORE] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_CROWN_STORE_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_CROWN_STORE_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_GRAPHICS] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_GRAPHICS_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_GRAPHICS_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_QUESTS] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_QUESTS_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_QUESTS_END - 1,
                detailsTitle = GetString(SI_CUSTOMER_SERVICE_QUEST_NAME),
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_TEXT] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_TEXT_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_TEXT_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_DUNGEONS] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_DUNGEONS_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_DUNGEONS_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_HOUSING] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_HOUSING_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_HOUSING_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_JUSTICE] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_JUSTICE_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_JUSTICE_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_PERFORMANCE] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_PERFORMANCE_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_PERFORMANCE_END - 1,
            },
            [CUSTOMER_SERVICE_SUBMIT_FEEDBACK_CATEGORY_UI] =
            {
                iterationBegin = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_UI_1,
                iterationEnd = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_UI_END - 1,
            },
        },
        invalidEntry = CUSTOMER_SERVICE_SUBMIT_FEEDBACK_SUBCATEGORY_NONE,
    },
}
ZO_HELP_ASK_FOR_HELP_CATEGORY_INFO =
{
    impactStringName = "SI_CUSTOMERSERVICEASKFORHELPIMPACT",
    impacts =
    {
        {
            id = CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_NONE,
        },
        {
            id = CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_CHARACTER_ISSUE,
            categoryStringName = "SI_CUSTOMERSERVICEASKFORHELPCHARACTERISSUECATEGORY",
            categoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPCHARACTERISSUECATEGORY_DESCRIPTION",
            categories =
            {
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_CHARACTER_ISSUE_CATEGORY_NONE,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_CHARACTER_ISSUE_CATEGORY_CHARACTER_RESTORATION,
                    ticketCategory = 891,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_CHARACTER_ISSUE_CATEGORY_GROUP_ACTIVITIES,
                    ticketCategory = 978,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_CHARACTER_ISSUE_CATEGORY_CHAT_AND_VENDORS,
                    ticketCategory = 1186,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_CHARACTER_ISSUE_CATEGORY_SKILLS_AND_ACHIEVEMENTS,
                    ticketCategory = 893,
                },
            },
        },
        {
            id = CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_REPORT_PLAYER,
            detailsTitle = GetString(SI_CUSTOMER_SERVICE_ASK_FOR_HELP_PLAYER_NAME),
            detailsGamepadDefaultText = zo_strformat(SI_GAMEPAD_HELP_TICKET_EDIT_REQUIRED_NAME_DISPLAY, ZO_GetPlatformAccountLabel()),
            categoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERCATEGORY",
            categories = 
            {
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_CATEGORY_NONE,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_CATEGORY_REAL_WORLD_THREATS,
                    subcategoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY",
                    subcategoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY_DESCRIPTION",
                    subcategories =
                    {
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_NONE,
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_CHILD_ABUSE,
                            ticketCategory = 1244
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_TERRORISM,
                            ticketCategory = 1245
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_SELF_HARM,
                            ticketCategory = 1246
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_HARM_TO_OTHERS,
                            ticketCategory = 1247
                        },
                    }
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_CATEGORY_BAD_LANGUAGE,
                    subcategoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY",
                    subcategoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY_DESCRIPTION",
                    subcategories =
                    {
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_NONE,
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_HATE_SPEECH,
                            ticketCategory = 1249
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_TROLLING,
                            ticketCategory = 1250
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_SPAM,
                            ticketCategory = 1251
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_PROFANE_VOICE_CHAT,
                            ticketCategory = 1252
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_PROFANE_NAME,
                            ticketCategory = 11,
                            nameStringArgs = { ZO_GetPlatformAccountLabel() },
                            descriptionStringArgs = { ZO_GetPlatformAccountLabel() },
                        },
                    }
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_CATEGORY_BAD_ACTIONS,
                    subcategoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY",
                    subcategoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTPLAYERSUBCATEGORY_DESCRIPTION",
                    subcategories =
                    {
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_NONE,
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_SCAMMING,
                            ticketCategory = 1254
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_DOXING,
                            ticketCategory = 1255
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_CHEATING,
                            ticketCategory = 361
                        },
                        {
                            id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_HARASSMENT,
                            ticketCategory = 12
                        },
                    }
                },
            },
        },
        {
            id = CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_REPORT_GUILD,
            detailsTitle = GetString(SI_CUSTOMER_SERVICE_ASK_FOR_HELP_GUILD_NAME),
            detailsGamepadDefaultText = GetString(SI_GAMEPAD_HELP_TICKET_EDIT_REQUIRED_NAME_GUILD),
            categoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTGUILDCATEGORY",
            categoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTGUILDCATEGORY_DESCRIPTION",
            categories =
            {
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GUILD_CATEGORY_NONE,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GUILD_CATEGORY_INAPPROPRIATE_NAME,
                    ticketCategory = 1193,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GUILD_CATEGORY_INAPPROPRIATE_LISTING,
                    ticketCategory = 1195,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GUILD_CATEGORY_INAPPROPRIATE_DECLINE,
                    ticketCategory = 1194,
                },
            },
        },
        {
            id = CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_REPORT_GROUP_FINDER_LISTING,
            externalInfoTitle = GetString(SI_CUSTOMER_SERVICE_ASK_FOR_HELP_GROUP_FINDER_LISTING_DETAILS),
            externalInfoInstructions = GetString(SI_CUSTOMER_SERVICE_ASK_FOR_HELP_GROUP_FINDER_LISTING_INSTRUCTIONS),
            externalInfoRegistrationFunction = ZO_HELP_GENERIC_TICKET_SUBMISSION_MANAGER.SetCustomerServiceTicketGroupFinderListingTarget,
            externalInfoKeyboardTooltipFunction = function(...) HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:ShowGroupFinderListingTooltip(...) end,
            externalInfoGamepadTooltipFunction = function(...) HELP_CUSTOMER_SERVICE_GAMEPAD:ShowGroupFinderListingTooltip(...) end,
            categoryStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTGROUPFINDERLISTINGCATEGORY",
            categoryDescriptionStringName = "SI_CUSTOMERSERVICEASKFORHELPREPORTGROUPFINDERLISTINGCATEGORY_DESCRIPTION",
            categories =
            {
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GROUP_FINDER_LISTING_CATEGORY_NONE,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GROUP_FINDER_LISTING_CATEGORY_INAPPROPRIATE_TITLE,
                    ticketCategory = 1315,
                },
                {
                    id = CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GROUP_FINDER_LISTING_CATEGORY_INAPPROPRIATE_DESCRIPTION,
                    ticketCategory = 1314,
                },
            },
        },
    },
}
function ZO_GetAskForHelpListEntryName(listStringName, entryData)
    local entryName = GetString(listStringName, entryData.id)
    local stringArgs = entryData.nameStringArgs
    if stringArgs then
        if type(stringArgs) == "function" then
            stringArgs = stringArgs()
        end
    end
    return entryName
end
function ZO_GetAskForHelpListEntryDescription(listDescriptionStringName, entryData)
    if listDescriptionStringName then
        local entryDescription = GetString(listDescriptionStringName, entryData.id)
        if entryDescription and entryDescription ~= "" then
            local stringArgs = entryData.descriptionStringArgs
            if stringArgs then
                if type(stringArgs) == "function" then
                    stringArgs = stringArgs()
                end
                entryDescription = zo_strformat(entryDescription, unpack(stringArgs))
            end
            return entryDescription
        end
    end
    return nil
end