Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Tue Jul 25, 2006 10:18 pm Post subject: Items not decaying.
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.
Author
Message
MuadDib POL Developer
Joined: 13 Feb 2006 Posts: 830 Location: Indiana, USA
Posted: Wed Jul 26, 2006 12:05 am Post subject:
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
Author
Message
Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed Jul 26, 2006 1:18 am Post subject:
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.
Author
Message
Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed Jul 26, 2006 1:27 am Post subject:
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.
Author
Message
Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed Jul 26, 2006 1:29 am Post subject:
Guess the problem was in the create command.
Thanks for the help Maud. Once again you've come to my rescue.