public FacialHairEquipUpdate(Mobile parent) : base(0x2E, 15) { var hue = parent.SolidHueOverride >= 0 ? parent.SolidHueOverride : parent.FacialHairHue; Stream.Write(FacialHairInfo.FakeSerial(parent)); Stream.Write((short)parent.FacialHairItemID); Stream.Write((byte)0); Stream.Write((byte)Layer.FacialHair); Stream.Write(parent.Serial); Stream.Write((short)hue); }
public FacialHairEquipUpdate( Mobile parent ) : base( 0x2E, 15 ) { int hue = parent.FacialHairHue; if( parent.SolidHueOverride >= 0 ) hue = parent.SolidHueOverride; int hairSerial = FacialHairInfo.FakeSerial( parent ); m_Stream.Write( (int)hairSerial ); m_Stream.Write( (short)parent.FacialHairItemID ); m_Stream.Write( (byte)0 ); m_Stream.Write( (byte)Layer.FacialHair ); m_Stream.Write( (int)parent.Serial ); m_Stream.Write( (short)hue ); }
public RemoveFacialHair(Mobile parent) : base(0x1D, 5) { m_Stream.Write((int)FacialHairInfo.FakeSerial(parent)); }