Servuo VersionLatest
OSWindows 10 fully updated.
Okay, So I'm trying to make a deed that can change any human armor to the gargoyles equivalent.
Problem is i can't override the canbewornbygargoyles from within the deed.
I was hoping i could just make the deed drag and drop without making changes to basearmor.


C#:
protected override void OnTarget( Mobile from, object target )
                 {
                        if( target == from )
                {
                               from.SendMessage( "You cant do that." );
                }
                      else if( target is BaseArmor )
                      {
            
                          BaseArmor a = (BaseArmor)target;
                        
                    if (a.Layer == Layer.Helm )
                        {
                        a.ItemID = 17988;
                        a.CanBeWornByGargoyles = true;
                        }
                    }

ErrorCode:
Line 99: Property or indexer 'BaseArmor.CanBeWornByGargoyles' cannot be assigned to -- it is read only
Scripts: One or more scripts failed to compile or no script files were found.


Does anyone have any ideas?
 
Back