It is currently Wed Nov 19, 2008 4:03 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Deleting Items
PostPosted: Fri Jun 29, 2007 3:07 am 
Offline

Joined: Fri Jul 21, 2006 9:58 pm
Posts: 61
Where i can specify time after what item , which are not in player back pack and not at House, are destroying.
For example : I drop a not usefull ore on the ground of cave. It must be destroyed . What script do that ?
Thnx


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 5:38 am 
Offline
Certified POL Expert
User avatar

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 573
There are a couple of approaches.
1. You can specify the decay timer in the itemdesc.cfg files entry for the item. (Default is 10 minutes if you don't override it.) decaytime is read at creation of the item. To set it to 30 minutes:
DecayTime=30

2. You can change the decay via script at any time. In this example you can set the decay time to 60 seconds from now:
item.decayat := ReadGameClock() + 60;

Turn off decay with
item.decayat := 0

or lock down the item.

3. In pol097 you can script the entire decay system. Enable this in servspecopt.cfg with:
DecayItems=0
See the 097 distro for an example of how to script the entire decay system yourself.

The default decay cycle runs every 10 minutes and sweeps the world at moderate speed. That means an item can decay at a minimum of 10 minutes and may be a bit longer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl