ModernUO/Scripts/Mobiles/Townfolk/BrideGroom.cs
eos 35fbffdb51 ML quest system; first SVN release.
Secondary changes:
- Region fixes, mainly for New Haven.
- Recipe system changes.
- Enabled ML craftables.
- Dyeing/cutting restrictions for quest items.
- Moved IsInvulnerable from BaseVendor to BaseCreature.
- Moved RandomBrightHue to Utility.
- Items no longer decay when attached to a spawner.
- Quest item hue is now faked through packets, instead of overriding Hue.
- Re-enabled item drag effects for SA clients.
- Fixed AssignRandomFacialHair bug in Utility.
- Added random hue comments to Utility.
2013-02-03 01:05:17 +00:00

80 lines
No EOL
1.6 KiB
C#

using System;
using Server;
using Server.Items;
using EDI = Server.Mobiles.EscortDestinationInfo;
namespace Server.Mobiles
{
public class BrideGroom : BaseEscortable
{
[Constructable]
public BrideGroom()
{
if ( Female )
Title = "the bride";
else
Title = "the groom";
}
public override bool CanTeach{ get{ return true; } }
public override bool ClickTitle{ get{ return false; } } // Do not display 'the groom' when single-clicking
private static int GetRandomHue()
{
switch ( Utility.Random( 6 ) )
{
default:
case 0: return 0;
case 1: return Utility.RandomBlueHue();
case 2: return Utility.RandomGreenHue();
case 3: return Utility.RandomRedHue();
case 4: return Utility.RandomYellowHue();
case 5: return Utility.RandomNeutralHue();
}
}
public override void InitOutfit()
{
if ( Female )
AddItem( new FancyDress() );
else
AddItem( new FancyShirt() );
int lowHue = GetRandomHue();
AddItem( new LongPants( lowHue ) );
if ( Female )
AddItem( new Shoes( lowHue ) );
else
AddItem( new Boots( lowHue ) );
if( Utility.RandomBool() )
HairItemID = 0x203B;
else
HairItemID = 0x203C;
HairHue = this.Race.RandomHairHue();
PackGold( 200, 250 );
}
public BrideGroom( 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();
}
}
}