Originally Posted by SniperHF
Originally Posted by FrauBlake

I cannot find anything in the code that suggests that traders are handled in any way different. They are only normal NPCs after all.


So it's possible to disable the regeneration just by commenting out those scripts then?

Also you could probably modify the script and create a list of predefined traders as DB query so only NPCs that are meant to be vendors regenerate. Yeah they don't use as many handles but those 1-3 items on each NPC might add up over the course of the entire game.

Though for some reason I thought there already was a trader DB somewhere, which is why I thought generic flavor NPCS like those around the docks might not regenerate based on time/level. I'd look at what calls GenTradeItems and see which _Trader's get passed.


For the mobs, a lot of them are local characters so that makes sense.

Mainly I ask because I use the TimeOfDay in Dunamis for my Day/night cycle and the traders behaving strangely can be explained by me accelerating the gamehours.

The IF RequestTrade(_Player,_Npc) event calls StartTrade() which then calls GenTradeItems() which might create treasure.
Osiris does not handle mob drops, the engine does. So global/local does not matter, bosses drop random as well from what I've heard, and all of them are global.

The time thing is done with a recursive timer in _AAA_FirstGoal.txt. (They still have a comment expecting the engine to give them an event ;-)

Yeah, disable treasure regeneration for non traders might be way to push reaching the limit further away. But it does not make sense to take steps if we don't even know the slightest bit of how it really works behind the scene.

As we discussed though, traders can only become a problem if one is really very long into the game. There might be a way bigger problem with unopened containers.
(All vases in HOM for example have 'UsePartyLevelForTreasureLevel' set, so it might be tempting to wait until you loot them, resulting in a new creation every time you enter HOM.)

Really, they should just have left treasure creation alone in the first place, this whole save scumming is really not the end of the world.

Since they didn't, I now get paranoid if I should let my mattress talk, because I spawn it, and this probably uses a new handle every time ;-)

... and as said above, characters have handles too, and we don't know if those handles come from the same handle pool, so we remove summon skills ... ;-)