Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -5,87 +5,89 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
#region Quests
|
||||
#region Quests
|
||||
|
||||
public class PointyEars : MLQuest
|
||||
{
|
||||
public PointyEars()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074640; // Pointy Ears
|
||||
Description = 1074641; // I've heard ... there's some that will pay a good bounty for pointed ears, much like we used to pay for each wolf skin. I've got nothing personal against these elves. It's just business. You want in on this? I'm not fussy who I work with.
|
||||
RefusalMessage = 1074642; // Suit yourself.
|
||||
InProgressMessage = 1074643; // I can't pay a bounty if you don't bring bag the ears.
|
||||
CompletionMessage = 1074644; // Here to collect on a bounty?
|
||||
public class PointyEars : MLQuest
|
||||
{
|
||||
public PointyEars()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074640; // Pointy Ears
|
||||
Description =
|
||||
1074641; // I've heard ... there's some that will pay a good bounty for pointed ears, much like we used to pay for each wolf skin. I've got nothing personal against these elves. It's just business. You want in on this? I'm not fussy who I work with.
|
||||
RefusalMessage = 1074642; // Suit yourself.
|
||||
InProgressMessage = 1074643; // I can't pay a bounty if you don't bring bag the ears.
|
||||
CompletionMessage = 1074644; // Here to collect on a bounty?
|
||||
|
||||
Objectives.Add( new CollectObjective( 20, typeof( SeveredElfEars ), 1032590 ) ); // severed elf ears
|
||||
Objectives.Add(new CollectObjective(20, typeof(SeveredElfEars), 1032590)); // severed elf ears
|
||||
|
||||
Rewards.Add( ItemReward.BagOfTrinkets );
|
||||
}
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
|
||||
public override void Generate()
|
||||
{
|
||||
base.Generate();
|
||||
public override void Generate()
|
||||
{
|
||||
base.Generate();
|
||||
|
||||
PutSpawner( new Spawner( 1, 5, 10, 0, 4, "Drithen" ), new Point3D( 1983, 1364, -80 ), Map.Malas );
|
||||
}
|
||||
}
|
||||
PutSpawner(new Spawner(1, 5, 10, 0, 4, "Drithen"), new Point3D(1983, 1364, -80), Map.Malas);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Mobiles
|
||||
#region Mobiles
|
||||
|
||||
[QuesterName( "Drithen (Umbra)" )]
|
||||
public class Drithen : BaseCreature
|
||||
{
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Drithen";
|
||||
public override bool CanShout => true;
|
||||
public override void Shout( PlayerMobile pm )
|
||||
{
|
||||
MLQuestSystem.Tell( this, pm, 1074188 ); // Weakling! You are not up to the task I have.
|
||||
}
|
||||
[QuesterName("Drithen (Umbra)")]
|
||||
public class Drithen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Drithen()
|
||||
: base(AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2)
|
||||
{
|
||||
Title = "the Fierce";
|
||||
Race = Race.Human;
|
||||
BodyValue = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
[Constructible]
|
||||
public Drithen()
|
||||
: base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 )
|
||||
{
|
||||
Title = "the Fierce";
|
||||
Race = Race.Human;
|
||||
BodyValue = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
InitStats( 100, 100, 25 );
|
||||
AddItem(new Backpack());
|
||||
AddItem(new ElvenBoots(Utility.RandomNeutralHue()));
|
||||
AddItem(new LongPants(Utility.RandomBlueHue()));
|
||||
AddItem(new Tunic(Utility.RandomNeutralHue()));
|
||||
AddItem(new Cloak(Utility.RandomBrightHue()));
|
||||
|
||||
AddItem( new Backpack() );
|
||||
AddItem( new ElvenBoots( Utility.RandomNeutralHue() ) );
|
||||
AddItem( new LongPants( Utility.RandomBlueHue() ) );
|
||||
AddItem( new Tunic( Utility.RandomNeutralHue() ) );
|
||||
AddItem( new Cloak( Utility.RandomBrightHue() ) );
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
}
|
||||
|
||||
SetSkill( SkillName.Focus, 60.0, 80.0 );
|
||||
}
|
||||
public Drithen(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public Drithen( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Drithen";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074188); // Weakling! You are not up to the task I have.
|
||||
}
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
#endregion
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue