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:
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.