I've been trying to figure out how to do this for some reason now.
In the script for one of my rares, I have this:
It should be obvious what I'm trying to do here, when the item is created I want it to not decay. that works fine - but I want it to become decayable once it has been picked up. However, the second I try to add the second part of the script, the onitemlifted part, I get errors. If I remove the
Part from the OnItemLifted, it compiles fine, but obviously its not doing anything then.
So my question is, how do I over ride the decays property of an item in the script once it has been picked up?
In the script for one of my rares, I have this:
Code:
public override bool Decays{ get{ return false; } }
public override void OnItemLifted( Mobile from, Item item )
{
public override bool Decays{ get{ return true; } }
}
It should be obvious what I'm trying to do here, when the item is created I want it to not decay. that works fine - but I want it to become decayable once it has been picked up. However, the second I try to add the second part of the script, the onitemlifted part, I get errors. If I remove the
Code:
public override bool Decays{ get{ return true; } }
Part from the OnItemLifted, it compiles fine, but obviously its not doing anything then.
So my question is, how do I over ride the decays property of an item in the script once it has been picked up?