PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Deleting Items

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
Nosferatu



Joined: 22 Jul 2006
Posts: 61

PostPosted: Fri Jun 29, 2007 7:07 am    Post subject: Deleting Items Reply with quote

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

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Fri Jun 29, 2007 9:38 am    Post subject: Reply with quote

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.

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty