Dezzie

Member
I want my security guards to have black glasses, this is my script. How do I add the hue command to the glasses?
I had put AddItem(new Server.Items.Glasses(Hue=1)); but then I can't add the security guard in game, when I try it says:
Usage:
Securityguard
I've attached a picture of what the server says when I try and add the security guard.

How do I color clothing items in this script?

Thanks very much

using System;
using System.Collections.Generic;
using Server;
namespace Server.Mobiles
{
public class SecurityGuard : BaseVendor
{
private List<SBInfo> m_SBInfos = new List<SBInfo>();
protected override List<SBInfo> SBInfos{ get { return m_SBInfos; } }

[Constructable]
public SecurityGuard() : base( "the security guard" )
{
SetSkill( SkillName.EvalInt, 65.0, 88.0 );
SetSkill( SkillName.Tactics, 36.0, 68.0 );
SetSkill( SkillName.Macing, 45.0, 68.0 );
SetSkill( SkillName.MagicResist, 65.0, 88.0 );
SetSkill( SkillName.Wrestling, 36.0, 68.0 );
}

public override void InitSBInfo()
{
m_SBInfos.Add( new SBSecurityGuard() );
}

public override void InitOutfit()
{
AddItem( new Server.Items.Tuxedo() );
AddItem( new Server.Items.TuxedoPants() );
AddItem( new Server.Items.Shoes() );
AddItem(new Server.Items.Glasses());

}

public SecurityGuard( 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();
}
}
}
 

Attachments

  • SecurityGuardError.jpg
    SecurityGuardError.jpg
    161.9 KB · Views: 7

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back