ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Loot Alert - Account-Wide Settings? (https://www.esoui.com/forums/showthread.php?t=8746)

NeuroticPixels 09/02/19 06:53 PM

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.

Baertram 09/03/19 06:11 AM

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


NeuroticPixels 09/03/19 08:22 AM

Baertram Is The Coolest
 
Omg.
Omg.
Omg.
:D :banana: :D :banana: :D :banana: :D :banana: :D :banana: :D

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


All times are GMT -6. The time now is 10:35 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI