Item lifetimes

Started by Darmius, March 11, 2010, 01:01:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Add two fields to the items DB
LifetimeCounter = double
LifetimeNotIgnored = bool


  • Every hour a thread is spawned and crawls every active item in the game (low pri).  The counter is decremented by 1.  At 0 the item is removed from the game
  • Items in player inventories are safe.  Except those that have the NotIgnored flag set.  Items like this could be beholder eye, quest items.  Thing that people shouldn't be able to stockpile
  • Gang house could reduce the effect of the decrement by some value.  This would slow degradation but would stop hoarding.
  • There is no need for remove@maintenance and would provide a more dynamic item cleaning system
  • Applies to money also

Since we are on the subject, we could have a degrades to ability.  It would be placed after the LifetimeCounter, and items with this ability would become another item when their lifetime is over.


I like that.  A glowing broadsword could become a broadsword after 500 hours.  It would open the way for enchantments/spells on items.