Not a problem with EE. I have not done all the debugging yet to make sure of it.
It is bug with travellers and using Advscript.esp (1.40)
With 1.40 version I added a script feature that checks when a certain package is run using onpackagestart "nameofpackage", this modifes the traveller barter gold using setbartergold based on player lvls and increase has player goes up in lvl to a certain max.
And how my script works, is pretty much everytime you talk to a traveller it switches to this package so bartergold get set to this. and end up wiping out EE changes from looks of things.
Will need to do some more testing to be sure, but, I am sure this is what is happening and what I saw. Same NPC by the way.
I may have to redesign that part of my script so that it does not check so often or try it a different way or remove this feature totally if needed. But I would like to keep this feature for those that do not use EE or LE.
Ok, good to know, and maybe we can work out together a way for you to have this feature for non-EE/LE users while at the same time keeping it compatible with at least Enhanced Economy.
How EE basically works is this:
1. If it doesn't have any data about a merchant (first trade, or at least 96 hours [default] since last trade) it reads the merchant's current barter gold, caps it to fit with the general rule (dependant on the max_gold setting), randomizes and adjusts for time of day, and then sets the new barter gold, and stores both the old and new value with the formID of the merchant.
2. If it has data about the merchant, EE calculates barter gold change depending on time since last trade and current time of day, and adds this change to the merchant's curent barter gold.
And I guess what happened was that between 1 and 2, you had adjusted the merchant's barter gold, and EE didn't know, thus added the change to the new, high value, which is not good.
A very simple solution could be that EE doesn't add the calculated change to the merchant's current barter gold (which is changed by TT), but instead add it to EE's stored value of what the merchant had after last trade. This will completely overwrite any change TT does to the merchant in the meantime. This should be acceptable, because if it goes more than 96 hours between two trades, EE will completely wipe out the merchant's data and read its barter gold again the next time they trade - thus using TT's change then. Do you think that sounds OK?
In short, with this change to EE, the following will happen:
1. TT decides the merchants initial barter gold
2. At first trade, EE will reduce the gold if it is too high according to the merchant's skill and the max_gold setting.
3. At later trades within the reset limit of 96 hours, EE will overwrite any new TT changes to the barter gold.
4. If more than 96 hours have passed since last trade, EE will again read the barter gold, thus using any new value from TT.
Does this sound good to you?