koluch
Sorceror
I tried this several ways as you can see commented out in the script, but I cant get more then the first one of peacemaking to show on the armor.
On adding the armor, it does increase all three skills by 10 points.
Any thoughts on what I have totally missed to have this show on the armor?
Here is the armor:
And it does give the bonus on equipping the set:
Thanks!
Koluch
On adding the armor, it does increase all three skills by 10 points.
Any thoughts on what I have totally missed to have this show on the armor?
Code:
using System;
using Server.Items;
namespace Server.Items
{
public class VirtuosoGloves : LeatherGloves
{
public override int LabelNumber{ get{ return 1151322; } } // Virtuoso's Kid Gloves
public override SetItem SetID{ get{ return SetItem.Virtuoso; } }
public override int Pieces{ get{ return 4; } }
public override int InitMinHits{ get{ return 125; } }
public override int InitMaxHits{ get{ return 125; } }
public override int BasePhysicalResistance{ get{ return 4; } }
public override int BaseFireResistance{ get{ return 19; } }
public override int BaseColdResistance{ get{ return 5; } }
public override int BasePoisonResistance{ get{ return 5; } }
public override int BaseEnergyResistance{ get{ return 5; } }
[Constructable]
public VirtuosoGloves() : base()
{
SetHue = 1158;
SetSkillBonuses.SetValues( 0, SkillName.Peacemaking, 10.0 );
SetSkillBonuses.SetValues( 1, SkillName.Provocation, 10.0 );
SetSkillBonuses.SetValues( 2, SkillName.Discordance, 10.0 );
/*SetSkillBonuses.Skill_1_Name = SkillName.Peacemaking;
SetSkillBonuses.Skill_1_Value = 10.0;
SetSkillBonuses.Skill_2_Name = SkillName.Provocation;
SetSkillBonuses.Skill_2_Value = 10.0;
SetSkillBonuses.Skill_3_Name = SkillName.Discordance;
SetSkillBonuses.Skill_3_Value = 10.0;*/
SetSelfRepair = 3;
SetPhysicalBonus = 5;
SetColdBonus = 5;
SetPoisonBonus = 5;
SetEnergyBonus = 5;
}
public VirtuosoGloves( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
Here is the armor:
And it does give the bonus on equipping the set:
Thanks!
Koluch