RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Original hoodable robe

Tru

Knight
Appears most of my scripts are gone, updates and moves and such. I'm going to update some and repost them....

This was my first script released on RunUO (back in its infancy), I realize there are other versions maybe even this one with a different name but I didn't find this one.

Hoodable robe

When the hood is up it hides your Name, Guild, and Criminal status, when its down all is back to normal (works when putting it on or taking it off with the hood up or down). They are dyeable. Just add them to a craft menu, or vendor, or reward system.
 

Attachments

  • HoodedRobe.cs
    3.1 KB · Views: 142

alekwdrake

Sorceror
Thanks for the repost mate. I love that it can conceal your identity if thats what the player wearing it wants. Will make a good addition to my Fel, original ruleset server.
 
  • Like
Reactions: Tru

Simon Omega

Traveler
Hello,

LOVE YOUR SCRIPT! :)

I changed it a bit because I wanted it to reinstate the Criminal Status if the player was a criminal before waring the hood, but had no kills. Made cosmetic changes to it to fit my Server Theme. Wanted to share back the changes. I don't write anything to the serializer, so it won't save the criminal status. I just wanted to make sure it re-criminal-ize-ed (My own word Webster watch out ^_^) during the current uptime, as it seemed thieves could use it to un-criminal if they had 0 kills.
 

Attachments

  • HoodedRangerRobe.cs
    3.5 KB · Views: 25

Evanonian

Sorceror
Nice script, I've used it for awhile.

However I had to add some code to it in order fix a random bug one of my players discovered.

If you were wearing it whilst in a trade, and then proceeded to double click it to raise or lower the hood in some cases it would disappear and go to the internal map. My best guess is because you're not able to drag things off or equip things while a trade is active. In the OnDoubleClick method when it removes the current item to replace it the server doesn't know what to do so it sends it into the abyss! :p

Here is my modified OnDoubleClick method.

Code:
public override void OnDoubleClick( Mobile m )
     {
 
         if( Parent != m )
         {
           m.SendMessage( "You must be wearing the robe to use it!" );
         }
else if( ItemID == 0x2683 || ItemID == 0x2684 )
           {
               m.SendMessage( "You lower the hood." );
               m.PlaySound( 0x57 );
               ItemID = 0x1F03;
               m.RemoveItem(this);
                        if (!m.EquipItem(this))
                        {
                            bool dropped = false;
                            if (null != m.Backpack)
                            {
                                m.Backpack.DropItem(this);
                                dropped = true;
                            }
 
                            if (!dropped)
                            {
                                if (m.BankBox != null)
                                {
                                    m.BankBox.DropItem(this);
                                }
                            }
                        }
              
           }
else if( ItemID == 0x1F03 || ItemID == 0x1F04 )
           {
 
               m.SendMessage( "You pull the hood over your head." );
               m.PlaySound( 0x57 );
               ItemID = 0x2683;
                        m.RemoveItem(this); if (!m.EquipItem(this))
                        {
                            bool dropped = false;
                            if (null != m.Backpack)
                            {
                                m.Backpack.DropItem(this);
                                dropped = true;
                            }
 
                            if (!dropped)
                            {
                                if (m.BankBox != null)
                                {
                                    m.BankBox.DropItem(this);
                                }
                            }
                        }
 
           }
         }

In any case in which the robe would normally disappear it will now instead drop the robe in your backpack or bank, it's just a fail safe I suppose. I had a couple players complaining about their robes disappearing. :p
 
Top