PenUltima Online

It is currently Thu Aug 28, 2008 3:37 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Items not decaying.
PostPosted: Tue Jul 25, 2006 6:18 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
I am running POL 96.1. My servspecopt.cfg file has the following entries:

Code:
#
# DecayItems - Determines if the decay system is enabled or not.
#
DecayItems=1

#
# DefaultDecayTime - minimum number of minutes before movable items decay (are destroyed)
#
DefaultDecayTime=10


I created a robe, made sure it was set to moveable and have left it for over 24 hours lying on the ground and it still remains. I think this might be a bug or else I am misinterpreting the logic for the "DecayItems" setting in the specopt file.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 8:05 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Did you create it on the ground, and never move it? Did you check to make sure the decayat property was set? etc. Please, more info :)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 9:18 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
I used the .create command which creates things on the ground. I never checked the decayat property though. I guess I assumed that created items would have that set to some default value.

I'll write a quick script to check the property and get back to you.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 9:27 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
Maud,

Here is my read decay property script:

Code:
use uo;
use os;

include "include/client";


program read_decayat(who)
//
   var item := target(who);
   SendSysMessage (who, "DecayAt property set to " + item.decayat);

endprogram


It returns a value of 0. If memory serves me this means that the item will never decay. I wasn't aware that the create command set items decayat to 0. I'll look at that script and if it does I'll fix that.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 9:29 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1118
Location: Southern Central USA
Guess the problem was in the create command.

Thanks for the help Maud. Once again you've come to my rescue.

*smiles*

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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