Quote:
Originally Posted by scriptless
DBNPC seems to not always save flags and they dissapear. Not entirely sure under which circumstances tho. But occasionally I notice some just vanishing. Some people said it happens sometimes when restarting npc server even with the rc save npcs command
|
I still have no idea why, but it seems that if you do
this.trigger('update'); in a DBNPC after saving some value, it won't be lost. We had tons of trouble in the past with DBNPCs rolling back (especially on Era), and this seemed to fix it.
We also noticed that savenpcs seems not effective; we wrote our own that we called before restarting the NPC-server that just called
trigger('update') on every DBNPC with much better results -shrug-
Maybe it's just a placebo but I kind of doubt it. I don't know why it works or if it has to be
update.