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!

(How-To)Armor Information

R

Rainman

Guest
(How-To)Armor Information

If your new to RunUO or C# you might be intrested in some values for Armor. Try this:


[code:1]
using System;
using Server.Items;

namespace Server.Scripts.Items.Armor
{
public class DaemonBoneChest : BaseArmor
{
[Constructable]
public DaemonBoneChest() : base( 0x144f, OreInfo.Iron, 11, ArmorMaterialType.Bone, ArmorBodyType.Chest )
{
Weight = 1;
DexBonus = -6;
StrRequirement = 40;
Hue = 0x648;
}
public DaemonBoneChest( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}

public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
[/code:1]

The variables you will need to know the most are:
[code:1]
base( 0x144f, OreInfo.Iron, 11, ArmorMaterialType.Bone, ArmorBodyType.Chest )
{
Weight = 1;
DexBonus = -6;
StrRequirement = 40;
Hue = 0x648;
}
[/code:1]

0x144f is the armors graphic
The OreInfo.* is the ore quality type. Like OSI this adds to the Armor Quality. The different types are:

  • *.Iron
    *.DullCopper
    *.Shadow
    *.Copper
    *.Bronze
    *.Gold
    *.Agapite
    *.Verite
    *.Valorite
    [/list:u]

    The 11 is the Armor Rating.
    ArmorMaterialType.* is the type of armor. The types are:

    • *.Cloth
      *.Leather
      *.Studded
      *.Bone
      *.Spined
      *.Horned
      *.Barbed
      *.Ringmail
      *.Chainmail
      *.Plate
      [/list:u]

      ArmorBodyType.* is the area which the armor is associated with. The types are:

      • *.Gorget
        *.Gloves
        *.Helment
        *.Arms
        *.Legs
        *.Chest
        [/list:u]

        Everything else should be simple enough to figure out.
 

moemakki

Wanderer
When I make an armor peice I can see the armor in-game but when equiped it turns into a pure black shirt. Is there anyway I can edit the gump image?
 
K

Krazy_zack

Guest
When I make an armor peice I can see the armor in-game but when equiped it turns into a pure black shirt. Is there anyway I can edit the gump image?

I experience the same error...
 
R

Rainman

Guest
There are issues with layers, they will be fixed in the upcoming builds. So its not anything your doing wrong. :)

Theres lots of oddities in current build with armor
 
R

Rainman

Guest
BTW, Helment was not a typo I made thats actually what the docs generated

However in beta 2 it has been fixed to Helmet once again :)

So if your using Beta 1 then its Helment, Beta 2 then its Helmet
 
Top