Notify users of decay

Open discussion forum. For topics that do not fit anywhere else.
Post Reply
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

Notify users of decay

Post by xeon »

Hi,
is there a way to notify users before the automatic decay happens?
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: Notify users of decay

Post by Austin »

The only way to do this is to disable the core decay in servspecopt.cfg with DecayItems=0 and then script your own decay system.

You're welcome to build off of a decay system I wrote to accomplish that:
https://svn.code.sf.net/p/mytharria/cod ... ems/decay/
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

Re: Notify users of decay

Post by xeon »

Interesting! Thank you Austin.

Looking at the sources, I've seen that you use .decayat as the property on which decide when to decay item. I can't seem to find documentation about how this prop works. For example, when you drop an item on the ground, this property is automatically set to some value by POL?
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: Notify users of decay

Post by Austin »

http://docs.polserver.com/pol099/objref.php#Item

Yeah the POL core sets it.

It is related to the serverspecopt.cfg DefaultDecayTime value.
http://docs.polserver.com/pol099/config ... pecopt.cfg
Post Reply