#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
84
Scripts/Mobiles/Townfolk/Noble.cs
Normal file
84
Scripts/Mobiles/Townfolk/Noble.cs
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using EDI = Server.Mobiles.EscortDestinationInfo;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Noble : BaseEscortable
|
||||
{
|
||||
[Constructable]
|
||||
public Noble()
|
||||
{
|
||||
Title = "the noble";
|
||||
|
||||
SetSkill( SkillName.Parry, 80.0, 100.0 );
|
||||
SetSkill( SkillName.Swords, 80.0, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0, 100.0 );
|
||||
}
|
||||
|
||||
public override bool CanTeach{ get{ return true; } }
|
||||
public override bool ClickTitle{ get{ return false; } } // Do not display 'the noble' 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( GetRandomHue() ) );
|
||||
|
||||
int lowHue = GetRandomHue();
|
||||
|
||||
AddItem( new ShortPants( lowHue ) );
|
||||
|
||||
if ( Female )
|
||||
AddItem( new ThighBoots( lowHue ) );
|
||||
else
|
||||
AddItem( new Boots( lowHue ) );
|
||||
|
||||
if ( !Female )
|
||||
AddItem( new BodySash( lowHue ) );
|
||||
|
||||
AddItem( new Cloak( GetRandomHue() ) );
|
||||
|
||||
if ( !Female )
|
||||
AddItem( new Longsword() );
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
|
||||
PackGold( 200, 250 );
|
||||
}
|
||||
|
||||
public Noble( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue