Full Version : Hair issue
xmlspawner >>Scripting Support >>Hair issue
<< Prev | Next >>
Erica- 04-15-2007
Hi was wondering why when i try to shave and elf hair npc doesnt shave it and even when i add him or her has on hairitemid 0 when i prop it heres the script.

CODE
using System; using System.Collections; using Server; namespace Server.Mobiles {
public class ElvenVendor : BaseVendor
{
private ArrayList m_SBInfos = new ArrayList();
protected override ArrayList SBInfos{ get { return m_SBInfos; } }
[Constructable]
public ElvenVendor() : base( "the Elven Vendor" )
{
//SetSkill( SkillName.Mining, 65.0, 88.0 );
Body = 606;
Hue = Utility.RandomList( 1154, 371 );
Female = true;
Race = Race.Elf;
InitStats( 150, 150, 150 );
Item hair = new Item( Utility.RandomList( 0x2FD1, 0x2FCF, 0x2FC0, 0x2FC2 ) );
hair.Hue = Utility.RandomList( 1153, 1175, 1260, 1266 );
hair.Layer = Layer.Hair;
hair.Movable = false;
AddItem( hair );
}
public override void InitSBInfo()
{
m_SBInfos.Add( new SBElvenVendor() );
}
public override void InitOutfit()
{
//AddItem( new Server.Items.ElvenShirt() );
AddItem( new Server.Items.FemaleElvenRobe() );
AddItem( new Server.Items.WoodlandBelt() );
AddItem( new Server.Items.ElvenBoots() );
}
public ElvenVendor( 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();
}
}
}

any idea why cant shave it or why is hairitemid 0 when i prop it in game.
Erica- 04-16-2007
Never mind fixed once server if i reboot it would then have the hairitemid .