ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Hello again :) I was wondering if anyone has a deed to rename clothing items?
 
I haven't seen one of those, but if you look at some examples from things like clothing bless deeds you could modify those to do it. You can also look at how runes are renamed to see how a player's input can be used to rename something too.

C#:
public override void OnDoubleClick( Mobile from )
        {
            int number;

            if ( !IsChildOf( from.Backpack ) )
            {
                number = 1042001; // That must be in your pack for you to use it.
            }
            else if ( House != null )
            {
                number = 1062399; // You cannot edit the description for this rune.
            }
            else if ( m_Marked )
            {
                number = 501804; // Please enter a description for this marked object.

                from.Prompt = new RenamePrompt( this );
            }
            else
            {
                number = 501805; // That rune is not yet marked.
            }

            from.SendLocalizedMessage( number );
        }

        private class RenamePrompt : Prompt
        {
            private MagicRune m_Rune;

            public RenamePrompt( MagicRune rune )
            {
                m_Rune = rune;
            }

            public override void OnResponse( Mobile from, string text )
            {
                if ( m_Rune.House == null && m_Rune.Marked )
                {
                    m_Rune.Description = text;
                    from.SendLocalizedMessage( 1010474 ); // The etching on the rune has been changed.
                }
            }
        }
This is from a modified rune version that I use, but that is how runes are renamed via Double Click. You could incorporate something like this into a Clothing Bless Deed and just remove the bless part.
 
Back