by tuigii » Sun Dec 02, 2007 12:59 am
Nice shot !!
I had a closer look at CharacterProfiler.lua.
We could use these ["Vault"]["log"]["money"]["time"] and ["Vault"]["log"]["money"]["time"] values.
Taken in account the last Guild (Vault) update and the actual timestamp of the current CP.lua and the time found in these two arrays, one could decide IF the Vault info is more current as the one in the Roster.
For example : last roster update : 10:00 - today
New upload : 11:15 - today
But 11:15 minus smallest(["Vault"]["log"]["money"]["time"]) (or smallest(["Vault"]["log"]["money"]["time"])) smaller or equal last update then NO Vault Update
because the guys didn't visit the Vault, or he did, but nothing changed.
Of course, the complet array ["Vault"]["log"]["money"] and ["Vault"]["log"]["money"] should be parsed, looking for the smallest ["time"] index value.
All this to decide IF we should update the Vault data base, or not.
Let's put this on a really low 'to-do' level.