Quantcast Loot Alert - Account-Wide Settings? - ESOUI
 
Thread Tools Display Modes
09/02/19, 06:53 PM   #1
amber1019
Addon Addict
 
amber1019's Avatar
Premium Member
Join Date: May 2019
Posts: 77
Unhappy Loot Alert - Account-Wide Settings?

Is there anything simple I could add to addons' lua to make its settings account-wide?
Or does the coding somehow change depending on the addon?

I desperately need Loot Alert to have account-wide settings for my fiancee and myself. It's very time consuming and tedious to add each individual item to the "watchlist" in the addon on each character. Especially when the list already has probably around 100 items, and I just need to add a few new ones... to every single character we have.
Ugh.

Can anyone assist me with this, please? Thank you in advance.
  Reply With Quote
09/03/19, 06:11 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,499
You can check this info about the SavedVariables on the wiki:
https://wiki.esoui.com/Circonians_Sa...ables_Tutorial

There is written what SavedVariabls are and how they work and how to implement them.

Solution:
Search in the addon for ZO_SavedVars and check if it's ZO_SavedVars:NewCharacterIdSettings or ZO_SavedVars:New (obsolete! Not name change save, should be changed to: ZO_SavedVars:NewCharacterIdSettings) and change it to

ZO_SavedVars:NewAccountWide


Be sure to logout before, and make a backup of your SavedVariables files.
You could also prepare the the SavedVariables file to use your old character settings as accountwide settings:
Rename the table with the ["CharacterName"] or ["1212431312312"] (characterId) below the ["$AccountName"] to "$AccountWide":

Code:
MyAddonName_SavedVariablesName = 
{ 
  ["default"] = 
    ["$AccountName"] = {
         ["CharatcerName" or "121231231232" here] =     <- Rename this to "$AccountWide"
         { 
             ...        ---Don't touch! This is your SavedVariables contents

          },-- ["CharatcerName" or "121231231232" here] = 

     }, -- $AccountName

  } --default

} -- MyAddonName_SavedVariablesName

Last edited by Baertram : 09/03/19 at 08:49 AM.
  Reply With Quote
09/03/19, 08:22 AM   #3
amber1019
Addon Addict
 
amber1019's Avatar
Premium Member
Join Date: May 2019
Posts: 77
Cool Baertram Is The Coolest

Omg.
Omg.
Omg.


You're so awesome. Thank you! It worked perfectly!
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Loot Alert - Account-Wide Settings?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off