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!

Question About Layers

Thagoras

Sorceror
Ok, After reading numerous posts concerning the paperdoll and the body graphic...and it being built into the client...I'm left with a few options. One link I followed attached a body gump to what worked out to be a shield (if I remember correctly). Even though this is a good way of doing this, it means that one can't use a shield then. I'm looking at the layer declaration in Items.cs (below) and there are a number of options and questions...for those who have played around with this. I'm guessing, though, probably wrong, that the value of the layer has something to do with how they appear on the gump. As in, the lower on the list (the higher the value) the lower on the gump, higher on the list items would cover up the items lower on the list....a one handed weapon would cover up a cloak.

Code:
public enum Layer : byte
 {
 /// <summary>
 /// Invalid layer.
 /// </summary>
 Invalid = 0x00,
 /// <summary>
 /// First valid layer. Equivalent to <c>Layer.OneHanded</c>.
 /// </summary>
 FirstValid = 0x01,
 /// <summary>
 /// One handed weapon.
 /// </summary>
 OneHanded = 0x01,
 /// <summary>
 /// Two handed weapon or shield.
 /// </summary>
 TwoHanded = 0x02,
 /// <summary>
 /// Shoes.
 /// </summary>
 Shoes = 0x03,
 /// <summary>
 /// Pants.
 /// </summary>
 Pants = 0x04,
 /// <summary>
 /// Shirts.
 /// </summary>
 Shirt = 0x05,
 /// <summary>
 /// Helmets, hats, and masks.
 /// </summary>
 Helm = 0x06,
 /// <summary>
 /// Gloves.
 /// </summary>
 Gloves = 0x07,
 /// <summary>
 /// Rings.
 /// </summary>
 Ring = 0x08,
 /// <summary>
 /// Talismans.
 /// </summary>
 Talisman = 0x09,
 /// <summary>
 /// Gorgets and necklaces.
 /// </summary>
 Neck = 0x0A,
 /// <summary>
 /// Hair.
 /// </summary>
 Hair = 0x0B,
 /// <summary>
 /// Half aprons.
 /// </summary>
 Waist = 0x0C,
 /// <summary>
 /// Torso, inner layer.
 /// </summary>
 InnerTorso = 0x0D,
 /// <summary>
 /// Bracelets.
 /// </summary>
 Bracelet = 0x0E,
 /// <summary>
 /// Unused.
 /// </summary>
 Unused_xF = 0x0F,
 /// <summary>
 /// Beards and mustaches.
 /// </summary>
 FacialHair = 0x10,
 /// <summary>
 /// Torso, outer layer.
 /// </summary>
 MiddleTorso = 0x11,
 /// <summary>
 /// Earings.
 /// </summary>
 Earrings = 0x12,
 /// <summary>
 /// Arms and sleeves.
 /// </summary>
 Arms = 0x13,
 /// <summary>
 /// Cloaks.
 /// </summary>
 Cloak = 0x14,
 /// <summary>
 /// Backpacks.
 /// </summary>
 Backpack = 0x15,
 /// <summary>
 /// Torso, outer layer.
 /// </summary>
 OuterTorso = 0x16,
 /// <summary>
 /// Leggings, outer layer.
 /// </summary>
 OuterLegs = 0x17,
 /// <summary>
 /// Leggings, inner layer.
 /// </summary>
 InnerLegs = 0x18,
 /// <summary>
 /// Last valid non-internal layer. Equivalent to <c>Layer.InnerLegs</c>.
 /// </summary>
 LastUserValid= 0x18,
 /// <summary>
 /// Mount item layer.
 /// </summary>
 Mount = 0x19,
 /// <summary>
 /// Vendor 'buy pack' layer.
 /// </summary>
 ShopBuy = 0x1A,
 /// <summary>
 /// Vendor 'resale pack' layer.
 /// </summary>
 ShopResale = 0x1B,
 /// <summary>
 /// Vendor 'sell pack' layer.
 /// </summary>
 ShopSell = 0x1C,
 /// <summary>
 /// Bank box layer.
 /// </summary>
 Bank = 0x1D,
 /// <summary>
 /// Last valid layer. Equivalent to <c>Layer.Bank</c>.
 /// </summary>
 LastValid = 0x1D
 }

Therefore, if I wanted to attach a body gump to a layer, it would make sense to have it set to LastValid, so everything else covers it up? Does this make sense, or have other people played around with Layers and have different results?
 

Thagoras

Sorceror
Actually, if you do a agent ransack, InnerLegs remains unused. NOTHING has this layer. Pants use Pants layer.
 

Thagoras

Sorceror
but if you check the scripts, nothing is set by default to that layer. Seriously, check the scripts. Perhaps there are customs out there...and you CAN do it in game. But when I started this quest, I checked out the unused layers, and bingo, InnerLegs came up unused.

Edit: oh wait, I see what you're saying. I thought you were saying that this layer was being used so I can't use it. I wonder what it's purpose is then.
 
Top