Add DefaultName property to Mobiles & Items (#18)

This commit is contained in:
Kamron Batman 2018-08-09 17:18:41 -07:00 • committed by GitHub
parent b06f5bf60d
commit 8ee42c8ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
713 changed files with 5112 additions and 4987 deletions

View file

@ -714,7 +714,8 @@ namespace Server.Engines.MLQuests.Definitions
public class Aelorn : KeeperOfChivalry
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "Aelorn";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078133 ); // Hail, friend. Want to live the life of a paladin?
@ -723,7 +724,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public Aelorn()
{
Name = "Aelorn";
Title = "the Chivalry Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -777,10 +777,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Dimethro : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Dimethro";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078128 ); // You there! Wanna master hand to hand defense? Of course you do!
@ -790,7 +790,6 @@ namespace Server.Engines.MLQuests.Definitions
public Dimethro()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Dimethro";
Title = "the Wrestling Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -836,10 +835,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Churchill : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Churchill";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078141 ); // Don't listen to Jockles. Real warriors wield mace weapons!
@ -849,7 +848,6 @@ namespace Server.Engines.MLQuests.Definitions
public Churchill()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Churchill";
Title = "the Mace Fighting Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -914,7 +912,8 @@ namespace Server.Engines.MLQuests.Definitions
public class Robyn : Bowyer
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "Robyn";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078202 ); // Archery requires a steady aim and dexterous fingers.
@ -923,7 +922,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public Robyn()
{
Name = "Robyn";
Title = "the Archery Instructor";
BodyValue = 0x191;
Hue = 0x83EA;
@ -996,10 +994,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Recaro : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Recaro";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078187 ); // The art of fencing requires a dexterous hand, a quick wit and fleet feet.
@ -1009,7 +1007,6 @@ namespace Server.Engines.MLQuests.Definitions
public Recaro()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Recaro";
Title = "the Fencer Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -1076,10 +1073,10 @@ namespace Server.Engines.MLQuests.Definitions
public class AldenArmstrong : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Alden Armstrong";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078136 ); // There is an art to slaying your enemies swiftly. It's called tactics, and I can teach it to you.
@ -1089,7 +1086,6 @@ namespace Server.Engines.MLQuests.Definitions
public AldenArmstrong()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Alden Armstrong";
Title = "the Tactics Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -1137,10 +1133,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Jockles : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Jockles";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078135 ); // Talk to me to learn the way of the blade.
@ -1150,7 +1146,6 @@ namespace Server.Engines.MLQuests.Definitions
public Jockles()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Jockles";
Title = "the Swordsmanship Instructor";
BodyValue = 0x190;
Hue = 0x83FA;
@ -1198,10 +1193,10 @@ namespace Server.Engines.MLQuests.Definitions
public class TylAriadne : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Tyl Ariadne";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078140 ); // Want to learn how to parry blows?
@ -1211,7 +1206,6 @@ namespace Server.Engines.MLQuests.Definitions
public TylAriadne()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Tyl Ariadne";
Title = "the Parrying Instructor";
BodyValue = 0x190;
Hue = 0x8374;
@ -1279,10 +1273,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Alefian : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Alefian";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078130 ); // A mage should learn how to resist spells.
@ -1292,7 +1286,6 @@ namespace Server.Engines.MLQuests.Definitions
public Alefian()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Alefian";
Title = "the Resisting Spells Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -1335,10 +1328,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Gustar : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Gustar";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078126 ); // Meditation allows a mage to replenish mana quickly. I can teach you.
@ -1348,7 +1341,6 @@ namespace Server.Engines.MLQuests.Definitions
public Gustar()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Gustar";
Title = "the Meditation Instructor";
BodyValue = 0x190;
Hue = 0x83F5;
@ -1419,10 +1411,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Jillian : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Jillian";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078129 ); // I can teach you how to scribe magic scrolls.
@ -1432,7 +1424,6 @@ namespace Server.Engines.MLQuests.Definitions
public Jillian()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Jillian";
Title = "the Inscription Instructor";
BodyValue = 0x191;
Female = true;
@ -1476,10 +1467,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Kaelynna : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Kaelynna";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078125 ); // Want to unlock the secrets of magery?
@ -1489,7 +1480,6 @@ namespace Server.Engines.MLQuests.Definitions
public Kaelynna()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Kaelynna";
Title = "the Magery Instructor";
BodyValue = 0x191;
Female = true;
@ -1533,10 +1523,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Mithneral : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Mithneral";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078127 ); // Want to maximize your spell damage? I have a scholarly task for you!
@ -1546,7 +1536,6 @@ namespace Server.Engines.MLQuests.Definitions
public Mithneral()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Mithneral";
Title = "the Evaluating Intelligence Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -1594,7 +1583,8 @@ namespace Server.Engines.MLQuests.Definitions
public class AmeliaYoungstone : Tinker
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "Amelia Youngstone";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078123 ); // Tinkering is very useful for a blacksmith. You can make your own tools.
@ -1603,7 +1593,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public AmeliaYoungstone()
{
Name = "Amelia Youngstone";
Title = "the Tinkering Instructor";
BodyValue = 0x191;
Female = true;
@ -1653,10 +1642,10 @@ namespace Server.Engines.MLQuests.Definitions
public class AndreasVesalius : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Andreas Vesalius";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078138 ); // Learning of the body will allow you to excel in combat.
@ -1666,7 +1655,6 @@ namespace Server.Engines.MLQuests.Definitions
public AndreasVesalius()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Andreas Vesalius";
Title = "the Anatomy Instructor";
BodyValue = 0x190;
Hue = 0x83EC;
@ -1713,10 +1701,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Avicenna : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Avicenna";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078137 ); // A warrior needs to learn how to apply bandages to wounds.
@ -1726,7 +1714,6 @@ namespace Server.Engines.MLQuests.Definitions
public Avicenna()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Avicenna";
Title = "the Healing Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -1770,10 +1757,10 @@ namespace Server.Engines.MLQuests.Definitions
public class SarsmeaSmythe : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Sarsmea Smythe";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078139 ); // Know yourself, and you will become a true warrior.
@ -1783,7 +1770,6 @@ namespace Server.Engines.MLQuests.Definitions
public SarsmeaSmythe()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Sarsmea Smythe";
Title = "the Focus Instructor";
BodyValue = 0x191;
Female = true;
@ -1835,7 +1821,8 @@ namespace Server.Engines.MLQuests.Definitions
private List<SBInfo> m_SBInfos = new List<SBInfo>();
protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }
public override bool CanShout { get { return true; } }
public override string DefaultName => "Ryuichi";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078155 ); // I can teach you Ninjitsu. The Art of Stealth.
@ -1845,7 +1832,6 @@ namespace Server.Engines.MLQuests.Definitions
public Ryuichi()
: base( "the Ninjitsu Instructor" )
{
Name = "Ryuichi";
Hue = 0x8403;
SetSkill( SkillName.Hiding, 120.0 );
@ -1903,10 +1889,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Chiyo : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Chiyo";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078165 ); // To be undetected means you cannot be harmed.
@ -1916,7 +1902,6 @@ namespace Server.Engines.MLQuests.Definitions
public Chiyo()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Chiyo";
Title = "the Hiding Instructor";
BodyValue = 0xF7;
@ -1952,10 +1937,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Jun : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Jun";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078175 ); // Walk Silently. Remain unseen. I can teach you.
@ -1965,7 +1950,6 @@ namespace Server.Engines.MLQuests.Definitions
public Jun()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Jun";
Title = "the Stealth Instructor";
BodyValue = 0x190;
Hue = 0x8403;
@ -2012,10 +1996,10 @@ namespace Server.Engines.MLQuests.Definitions
public class Walker : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Walker";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, Utility.RandomList(
@ -2029,7 +2013,6 @@ namespace Server.Engines.MLQuests.Definitions
public Walker()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Walker";
Title = "the Tracking Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -2080,7 +2063,8 @@ namespace Server.Engines.MLQuests.Definitions
private List<SBInfo> m_SBInfos = new List<SBInfo>();
protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }
public override bool CanShout { get { return true; } }
public override string DefaultName => "Hamato";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078134 ); // Seek me to learn the way of the samurai.
@ -2090,7 +2074,6 @@ namespace Server.Engines.MLQuests.Definitions
public Hamato()
: base( "the Bushido Instructor" )
{
Name = "Hamato";
Hue = 0x8403;
SetSkill( SkillName.Anatomy, 120.0 );
@ -2149,7 +2132,8 @@ namespace Server.Engines.MLQuests.Definitions
public class Mulcivikh : Mage
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "Mulcivikh";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078131 ); // Allured by dark magic, aren't you?
@ -2158,7 +2142,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public Mulcivikh()
{
Name = "Mulcivikh";
Title = "the Necromancy Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -2226,7 +2209,8 @@ namespace Server.Engines.MLQuests.Definitions
public class Morganna : Mage
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "Morganna";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078132 ); // Want to learn how to channel the supernatural?
@ -2235,7 +2219,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public Morganna()
{
Name = "Morganna";
Title = "the Spirit Speak Instructor";
BodyValue = 0x191;
Female = true;
@ -2283,10 +2266,10 @@ namespace Server.Engines.MLQuests.Definitions
public class JacobWaltz : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
public override bool CanTeach { get { return true; } }
public override bool CanShout { get { return true; } }
public override bool IsInvulnerable => true;
public override bool CanTeach => true;
public override string DefaultName => "Jacob Waltz";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078124 ); // You there! I can use some help mining these rocks!
@ -2296,7 +2279,6 @@ namespace Server.Engines.MLQuests.Definitions
public JacobWaltz()
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
{
Name = "Jacob Waltz";
Title = "the Miner Instructor";
BodyValue = 0x190;
Hue = 0x83EA;
@ -2346,7 +2328,8 @@ namespace Server.Engines.MLQuests.Definitions
public class GeorgeHephaestus : Blacksmith
{
public override bool CanShout { get { return true; } }
public override string DefaultName => "George Hephaestus";
public override bool CanShout => true;
public override void Shout( PlayerMobile pm )
{
MLQuestSystem.Tell( this, pm, 1078122 ); // Wanna learn how to make powerful weapons and armor? Talk to me.
@ -2355,7 +2338,6 @@ namespace Server.Engines.MLQuests.Definitions
[Constructible]
public GeorgeHephaestus()
{
Name = "George Hephaestus";
Title = "the Blacksmith Instructor";
BodyValue = 0x190;
Hue = 0x83EA;