#W# Cleanup: Removed default OSI MLQuests.
This commit is contained in:
parent
f333f8da65
commit
a994b61445
94 changed files with 24 additions and 13166 deletions
|
|
@ -1,196 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class AGhostOfCovetous : MLQuest
|
||||
{
|
||||
public AGhostOfCovetous()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075287; // A Ghost of Covetous
|
||||
// What? Oh, you startled me! Sorry, I'm a little jumpy.
|
||||
// My master Griswolt learned that a ghost has recently taken up residence in the Covetous dungeon.
|
||||
// He sent me to capture it, but I . . . well, it terrified me, to be perfectly honest.
|
||||
// If you think yourself courageous enough, I'll give you my Spirit Bottle, and you can try to capture it yourself.
|
||||
// I'm certain my master would reward you richly for such service.
|
||||
Description = 1075286;
|
||||
// That's okay, I'm sure someone with more courage than either of us will come along eventually.
|
||||
RefusalMessage = 1075288;
|
||||
InProgressMessage = 1075290; // You'll find that ghost in the mountain pass above the Covetous dungeon.
|
||||
// (As you try to use the Spirit Bottle, the ghost snatches it out of your hand and smashes it on the rocks)
|
||||
// Please, don't be frightened. I need your help!
|
||||
CompletionMessage = 1075291;
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(SpiritBottle), 1, "Spirit Bottle", typeof(Frederic)));
|
||||
|
||||
// Return the filled Spirit Bottle to Griswolt the Master Necromancer to receive a reward.
|
||||
Rewards.Add(new DummyReward(1075284));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(SaveHisDad);
|
||||
}
|
||||
|
||||
public class SaveHisDad : MLQuest
|
||||
{
|
||||
public SaveHisDad()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075337; // Save His Dad
|
||||
Description =
|
||||
1075338; // My father, Andros, is a smith in Minoc. Last week his forge overturned and he was splashed by molten steel. He was horribly burned, and we feared he would die. An alchemist in Vesper promised to make a bandage that could heal him, but he needed the silk of a dread spider. I came here to get some, but I was careless, and succumbed to their poison. Please, won't you help my father?
|
||||
RefusalMessage = 1075340; // Oh . . . that's your decision . . . OooOoooOOoo . . .
|
||||
InProgressMessage =
|
||||
1075341; // Thank you! Deliver it to Leon the Alchemist in Vesper. The silk crumbles easily, and much time has already passed since I died. Please! Hurry!
|
||||
CompletionMessage =
|
||||
1075342; // How may I help thee? You have the silk of a dread spider? Of course I can make you a bandage, but what happened to Frederic?
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new TimedDeliverObjective(
|
||||
TimeSpan.FromSeconds(600),
|
||||
typeof(DreadSpiderSilk),
|
||||
1,
|
||||
"Dread Spider Silk",
|
||||
typeof(Leon)
|
||||
)
|
||||
);
|
||||
|
||||
// Hurry! You must get the silk to Leon the Alchemist quickly, or it will crumble and become useless!
|
||||
Rewards.Add(new DummyReward(1075339));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(AFathersGratitude);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class AFathersGratitude : MLQuest
|
||||
{
|
||||
public AFathersGratitude()
|
||||
{
|
||||
Activated = true;
|
||||
OneTimeOnly = true;
|
||||
Title = 1075343; // A Father's Gratitude
|
||||
Description =
|
||||
1075344; // That is simply terrible. First Andros, and now his son. Well, let's make sure Frederic's sacrifice wasn't in vain. Will you take the bandages to his father? You can probably deliver them faster than I can, can't you?
|
||||
RefusalMessage =
|
||||
1075346; // Well I'm sorry to hear you say that. Without your help, I don't know if I can get these to Andros quickly enough to help him.
|
||||
InProgressMessage =
|
||||
1075347; // I don't know how much longer Andros will survive. You'd better get this to him as quick as you can. Every second counts!
|
||||
CompletionMessage =
|
||||
1075348; // Sorry, I'm not accepting commissions at the moment. What? You have the bandage I need from Leon? Thank you so much! But why didn't my son bring this to me himself? . . . Oh, no! You can't be serious! *sag* My Freddie, my son! Thank you for carrying out his last wish. Here -- I made this for my son, to give to him when he became a journeyman. I want you to have it.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(AlchemistsBandage), 1, "Alchemist's Bandage", typeof(Andros)));
|
||||
|
||||
Rewards.Add(new ItemReward(1075345, typeof(AndrosGratitude))); // Andros' Gratitude
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Ben : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Ben() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Apprentice Necromancer";
|
||||
Body = 0x190;
|
||||
Hue = 0x83FD;
|
||||
HairItemID = 0x2048;
|
||||
HairHue = 0x463;
|
||||
FacialHairItemID = 0x204C;
|
||||
FacialHairHue = 0x463;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(0x901));
|
||||
AddItem(new LongPants(0x1BB));
|
||||
AddItem(new FancyShirt(0x756));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Ben";
|
||||
}
|
||||
|
||||
[QuesterName("The Ghost of Frederic Smithson")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Frederic : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Frederic() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Body = 0x1A;
|
||||
Hue = 0x455;
|
||||
Frozen = true;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "The Ghost of Frederic Smithson";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Leon : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Leon() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Alchemist";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(0x901));
|
||||
AddItem(new Robe(0x657));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Leon";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Andros : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Andros() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Blacksmith";
|
||||
Body = 0x190;
|
||||
Hue = 0x8409;
|
||||
FacialHairItemID = 0x2041;
|
||||
FacialHairHue = 0x45E;
|
||||
HairItemID = 0x2049;
|
||||
HairHue = 0x45E;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x901));
|
||||
AddItem(new FancyShirt(0x60B));
|
||||
AddItem(new LongPants(0x1BB));
|
||||
AddItem(new FullApron(0x901));
|
||||
AddItem(new SmithHammer());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Andros";
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
// Base class for escorts providing the AwardHumanInNeed option
|
||||
public class BaseEscort : MLQuest
|
||||
{
|
||||
public BaseEscort() => CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
public virtual bool AwardHumanInNeed => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
if (AwardHumanInNeed)
|
||||
{
|
||||
HumanInNeed.AwardTo(instance.Player);
|
||||
}
|
||||
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class Momento : MLQuest
|
||||
{
|
||||
public Momento()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074750; // Momento!
|
||||
Description =
|
||||
1074751; // I was going to march right out there and get it myself, but no ... Master Gnosos won't let me. But you see, that bridle means so much to me. A momento of happier, less-dead ... well undead horseback riding. Could you fetch it for me? I think my horse, formerly known as 'Resolve', may still be wearing it.
|
||||
RefusalMessage = 1074752; // Hrmph.
|
||||
InProgressMessage =
|
||||
1074753; // The bridle would be hard to miss on him now ... since he's skeletal. Please do what you need to do to retrieve it for me.
|
||||
CompletionMessage = 1074754; // I'd know that jingling sound anywhere! You have recovered my bridle. Thank you.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(ResolvesBridle), "Resolve's Bridle"));
|
||||
|
||||
Rewards.Add(ItemReward.LargeBagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
public class CulinaryCrisis : MLQuest
|
||||
{
|
||||
public CulinaryCrisis()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074755; // Culinary Crisis
|
||||
Description =
|
||||
1074756; // You have NO idea how impossible this is. Simply intolerable! How can one expect an artiste' like me to create masterpieces of culinary delight without the best, fresh ingredients? Ever since this whositwhatsit started this uproar, my thrice-daily produce deliveries have ended. I can't survive another hour without produce!
|
||||
RefusalMessage = 1074757; // You have no artistry in your soul.
|
||||
InProgressMessage = 1074758; // I must have fresh produce and cheese at once!
|
||||
CompletionMessage =
|
||||
1074759; // Those dates look bruised! Oh no, and you fetched a soft cheese. *deep pained sigh* Well, even I can only do so much with inferior ingredients. BAM!
|
||||
|
||||
Objectives.Add(new CollectObjective(20, typeof(Dates), 1025927)); // bunch of dates
|
||||
Objectives.Add(new CollectObjective(5, typeof(CheeseWheel), 1022430)); // wheel of cheese
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
public class GoneNative : MLQuest
|
||||
{
|
||||
public GoneNative()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074855; // Gone Native
|
||||
Description =
|
||||
1074856; // Pathetic really. I must say, a senior instructor going native -- forgetting about his students and peers and engaging in such disgraceful behavior! I'm speaking, of course, of Theophilus. Master Theophilus to you. He may have gone native but he still holds a Mastery Degree from Bedlam College! But, well, that's neither here nor there. I need you to take care of my colleague. Convince him of the error of his ways. He may resist. In fact, assume he will and kill him. We'll get him resurrected and be ready to cure his folly. What do you say?
|
||||
RefusalMessage =
|
||||
1074857; // I understand. A Master of Bedlam, even one entirely off his rocker, is too much for you to handle.
|
||||
InProgressMessage =
|
||||
1074858; // You had better get going. Master Theophilus isn't likely to kill himself just to save me this embarrassment.
|
||||
CompletionMessage =
|
||||
1074859; // You look a bit worse for wear! He put up a good fight did he? Hah! That's the spirit … a Master of Bedlam is a match for most.
|
||||
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(MasterTheophilus) }, "Master Theophilus"));
|
||||
|
||||
Rewards.Add(ItemReward.LargeBagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Kia (Bedlam)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Kia : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Kia() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the student";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(0x709));
|
||||
AddItem(new Robe(0x497));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Kia";
|
||||
}
|
||||
|
||||
[QuesterName("Emerillo (Bedlam)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Emerillo : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Emerillo() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the cook";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(Utility.RandomNeutralHue()));
|
||||
AddItem(new ShortPants(Utility.RandomPinkHue()));
|
||||
AddItem(new Shirt());
|
||||
AddItem(new HalfApron(0x8FD));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Emerillo";
|
||||
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074222); // Could I trouble you for some assistance?
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Nythalia : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Nythalia() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the student";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new Robe(Utility.RandomBool() ? 0x497 : 0x498));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Mythalia";
|
||||
}
|
||||
|
|
@ -1,235 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
public class VilePoison : MLQuest
|
||||
{
|
||||
public VilePoison()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074950; // Vile Poison
|
||||
Description =
|
||||
1074956; // Heya! I'm sure glad to see you. Listen I'm in a bit of a bind here. I'm supposed to be gathering poisoned water at the base of that corrupted tree there, but I can't get in under the roots to get a good sample. The branches and brush are so tainted that they can't be cut, burned or even magically passed. It's put my work at a real standstill. If you help me out, I'll help you get in there too. Whadda ya say?
|
||||
RefusalMessage = 1074964; // Okay. If you change your mind, I'll probably still be stuck here trying to get in.
|
||||
InProgressMessage = 1074968; // My friend, Iosep, is a weaponsmith in Jhelom. If anyone can help us, he can!
|
||||
CompletionMessage =
|
||||
1074991; // Greetings. What have you there? Ah, a sample from a poisonous tree, you say? My friend Jamal sent you? Well, let me see that then, and we'll get to work.
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(TaintedTreeSample), 1, "tainted tree sample", typeof(Iosep)));
|
||||
|
||||
Rewards.Add(new DummyReward(1074962)); // A step closer to entering Blighted Grove.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(ARockAndAHardPlace);
|
||||
}
|
||||
|
||||
public class ARockAndAHardPlace : MLQuest
|
||||
{
|
||||
public ARockAndAHardPlace()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074951; // A Rock and a Hard Place
|
||||
Description =
|
||||
1074957; // This is some nasty stuff, that's for certain. I don't even want to think about what sort of blight caused this venomous reaction from that old tree. Let's get to work … we'll need to try something really hard but still workable as our base material. Nothing's harder than stone and diamond. Let's try them first.
|
||||
RefusalMessage = 1074965; // Sure, no problem. I thought you were interested in figuring this out.
|
||||
InProgressMessage =
|
||||
1074969; // If you're a miner, you should have no trouble getting that stuff. If not, you can probably buy some samples from a miner?
|
||||
CompletionMessage =
|
||||
1074992; // Have you got the granite and diamonds? Great, let me see them and we'll see what effect this venom has upon them.
|
||||
|
||||
// Any type of granite works
|
||||
Objectives.Add(new CollectObjective(4, typeof(BaseGranite), 1026009)); // rock
|
||||
Objectives.Add(new CollectObjective(2, typeof(BlueDiamond), 1032696)); // Blue Diamond
|
||||
|
||||
Rewards.Add(new DummyReward(1074962)); // A step closer to entering Blighted Grove.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(SympatheticMagic);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class SympatheticMagic : MLQuest
|
||||
{
|
||||
public SympatheticMagic()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074952; // Sympathetic Magic
|
||||
Description =
|
||||
1074958; // Hmm, I've never even heard of something that can damage diamond like that. I guess we'll have to go with plan B. Let's try something similar. Sometimes there's a natural immunity to be found when you use a substance that's like the one you're trying to cut. A sort of "sympathetic" thing. Y'know?
|
||||
RefusalMessage = 1074965; // Sure, no problem. I thought you were interested in figuring this out.
|
||||
InProgressMessage = 1074970; // I think a lumberjack can help supply bark.
|
||||
CompletionMessage = 1074993; // You're back with the bark already? Terrific! I bet this will do the trick.
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(BarkFragment), 1032687)); // Bark Fragment
|
||||
|
||||
Rewards.Add(new DummyReward(1074962)); // A step closer to entering Blighted Grove.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(AlreadyDead);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class AlreadyDead : MLQuest
|
||||
{
|
||||
public AlreadyDead()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074953; // Already Dead
|
||||
Description =
|
||||
1074959; // Amazing! The bark was reduced to ash in seconds. Whatever this taint is, it plays havok with living things. And of course, it took the edge off both diamonds and granite even faster. What we need is something workable but dead; something that can hold an edge without melting. See what you can come up with, please.
|
||||
RefusalMessage = 1074965; // Sure, no problem. I thought you were interested in figuring this out.
|
||||
InProgressMessage =
|
||||
1074971; // I'm thinking we need something fairly brittle or it won't hold an edge. And, it can't be alive, of course.
|
||||
CompletionMessage = 1074994; // Great thought! Bone might just do the trick.
|
||||
|
||||
Objectives.Add(new InternalObjective());
|
||||
|
||||
Rewards.Add(new DummyReward(1074962)); // A step closer to entering Blighted Grove.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(Eureka);
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
private class InternalObjective : CollectObjective
|
||||
{
|
||||
public InternalObjective()
|
||||
: base(10, typeof(Bone), 1074963) // (10) workable samples
|
||||
{
|
||||
}
|
||||
|
||||
public override bool ShowDetailed => false;
|
||||
}
|
||||
}
|
||||
|
||||
public class Eureka : MLQuest
|
||||
{
|
||||
public Eureka()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074954; // Eureka!
|
||||
Description =
|
||||
1074960; // We're in business! I've put together the instructions for chopping sort of sword, in the style of one of those new-fangled elven machetes. Take those back to Jamal for me, if you would.
|
||||
RefusalMessage = 1074966; // Well, okay. I guess I thought you'd want to see this through.
|
||||
InProgressMessage =
|
||||
1074972; // I'm sure Jamal is eager to get this information. He's probably still hanging around near that big old blighted tree.
|
||||
CompletionMessage = 1074995; // Heya! You're back. Was Iosep able to help? Let me see what he's sent.
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(SealedNotesForJamal), 1, "sealed note for Jamal", typeof(Jamal)));
|
||||
|
||||
Rewards.Add(new DummyReward(1074962)); // A step closer to entering Blighted Grove.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(SubContracting);
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
var pm = instance.Player;
|
||||
|
||||
if (!pm.HasRecipe(32))
|
||||
{
|
||||
// The ability is awarded regardless of blacksmithy skill
|
||||
pm.AcquireRecipe(32);
|
||||
|
||||
if (pm.Skills.Blacksmith.Base < 45.0) // TODO: Verify threshold
|
||||
{
|
||||
// You observe carefully but you can't grasp the complexities of smithing a bone handled machete.
|
||||
pm.SendLocalizedMessage(1075005);
|
||||
}
|
||||
else
|
||||
{
|
||||
pm.SendLocalizedMessage(1075006); // You have learned how to smith a bone handled machete!
|
||||
}
|
||||
}
|
||||
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
|
||||
public class SubContracting : MLQuest
|
||||
{
|
||||
public SubContracting()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074955; // Sub Contracting
|
||||
Description =
|
||||
1074961; // Wonderful! Now we can both get in there! Let me show you these instructions for making this machete. If you're not skilled in smithing, I'm not sure how much sense it will make though. Listen, if you're heading in there anyway … maybe you'd do me one more favor? I'm ah ... buried in work out here ... so if you'd go in and get me a few water samples, I'd be obliged.
|
||||
RefusalMessage = 1074967; // Oh. Right, I guess you're really ... ah ... busy too.
|
||||
InProgressMessage =
|
||||
1074973; // Once you're inside, look for places where the water has twisted and warped the natural creatures.
|
||||
CompletionMessage =
|
||||
1074996; // I hear sloshing ... that must mean you've got my water samples. Whew, I'm so glad you braved the dangers in there ... I mean, I would have but I'm so busy out here. Here's your reward!
|
||||
|
||||
// On OSI the label is "#1074999"
|
||||
Objectives.Add(new CollectObjective(3, typeof(SamplesOfCorruptedWater), "samples of corrupted water"));
|
||||
// TODO: "Return to" should say "Jamal (near Blighted Grove)"
|
||||
// Maybe every quest NPC has directions as a property?
|
||||
|
||||
Rewards.Add(ItemReward.LargeBagOfTreasure);
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[QuesterName("Jamal (near Blighted Grove)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Jamal : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Jamal() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Fisherman";
|
||||
Body = 400;
|
||||
Hue = Race.RandomSkinHue();
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
Utility.AssignRandomFacialHair(this, HairHue);
|
||||
|
||||
AddItem(new Shirt(0x1BB));
|
||||
AddItem(new ShortPants(Utility.RandomNeutralHue()));
|
||||
AddItem(new ThighBoots(Utility.RandomAnimalHue()));
|
||||
AddItem(new Backpack());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Jamal";
|
||||
}
|
||||
|
||||
[QuesterName("Iosep (Jhelom)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Iosep : BaseCreature
|
||||
{
|
||||
|
||||
[Constructible]
|
||||
public Iosep() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Exporter";
|
||||
Body = 400;
|
||||
Hue = Race.RandomSkinHue();
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new FancyShirt(Utility.RandomBlueHue()));
|
||||
AddItem(new LongPants(0x1BB));
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new Backpack());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Iosep";
|
||||
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
// Hey, could you help me out with something?
|
||||
// Don’t test my patience you sniveling worm!
|
||||
MLQuestSystem.Tell(this, pm, Utility.RandomBool() ? 1074209 : 1074215 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
public class Aemaeth1 : MLQuest
|
||||
{
|
||||
public Aemaeth1()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075321; // Aemaeth
|
||||
Description =
|
||||
1075322; // My father died in an accident some months ago. My mother refused to accept his death. We had a little money set by, and she took it to a necromancer, who promised to restore my father to life. Well, he revived my father, all right, the cheat! Now my father is a walking corpse, a travesty . . . a monster. My mother is beside herself -- she won't eat, she can't sleep. I prayed at the shrine of Spirituality for guidance, and I must have fallen asleep. When I awoke, there was this basin of clear water. I cannot leave my mother, for I fear what she might do to herself. Could you take this to the graveyard, and give it to what is left of my father?
|
||||
RefusalMessage =
|
||||
1075324; // Oh! Alright then. I hope someone comes along soon who can help me, or I dont know what will become of us.
|
||||
InProgressMessage =
|
||||
1075325; // My father - or what remains of him - can be found in the graveyard northwest of the city.
|
||||
CompletionMessage = 1075326; // What is this you give me? A basin of water?
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(BasinOfCrystalClearWater),
|
||||
1,
|
||||
"Basin of Crystal Clear Water",
|
||||
typeof(SkeletonOfSzandor)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1075323)); // Aurelia's gratitude.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(Aemaeth2);
|
||||
}
|
||||
|
||||
public class Aemaeth2 : MLQuest
|
||||
{
|
||||
public Aemaeth2()
|
||||
{
|
||||
Activated = true;
|
||||
OneTimeOnly = true;
|
||||
Title = 1075327; // Aemaeth
|
||||
Description =
|
||||
1075328; // You tell me it is time to leave this flesh. I did not understand until now. I thought: I can see my wife and my daughter, I can speak. Is this not life? But now, as I regard my reflection, I see what I have become. This only a mockery of life. Thank you for having the courage to show me the truth. For the love I bear my wife and daughter, I know now that I must pass beyond the veil. Will you return this basin to Aurelia? She will know by this that I am at rest.
|
||||
RefusalMessage =
|
||||
1075330; // You wont take this back to my daughter? Please, I cannot leave until she knows I am at peace.
|
||||
InProgressMessage = 1075331; // My daughter will be at my home, on the east side of the city.
|
||||
CompletionMessage =
|
||||
1075332; // Thank goodness! Now we can honor my father for the great man he was while he lived, rather than the horror he became.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(BasinOfCrystalClearWater),
|
||||
1,
|
||||
"Basin of Crystal Clear Water",
|
||||
typeof(Aurelia)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new ItemReward(1075304, typeof(MirrorOfPurification))); // Mirror of Purification
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class OddsAndEnds : MLQuest
|
||||
{
|
||||
public OddsAndEnds()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074354; // Odds and Ends
|
||||
Description =
|
||||
1074677; // I've always been fascinated by primitive cultures -- especially the artifacts. I'm a collector, you see. I'm working on building my troglodyte display and I'm saddened to say that I'm short on examples of religion and superstition amongst the creatures. If you come across any primitive fetishes, I'd be happy to trade you something interesting for them.
|
||||
RefusalMessage = 1072270; // Well, okay. But if you decide you are up for it after all, c'mon back and see me.
|
||||
InProgressMessage =
|
||||
1074678; // I don't really want to know where you get the primitive fetishes, as I can't support the destruction of their lifestyle and culture. That would be wrong.
|
||||
CompletionMessage = 1074679; // Bravo! These fetishes are just what I needed. You've earned this reward.
|
||||
|
||||
Objectives.Add(new CollectObjective(12, typeof(PrimitiveFetish), "Primitive Fetishes"));
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
public class EmbracingHumanity : MLQuest
|
||||
{
|
||||
public EmbracingHumanity()
|
||||
{
|
||||
Activated = true;
|
||||
OneTimeOnly = true; // OSI has no limit or delay, VERY exploitable
|
||||
Title = 1074349; // Embracing Humanity
|
||||
Description =
|
||||
1074357; // Well, I don't mind saying it -- I'm flabbergasted! Absolutely astonished. I just heard that some elves want to convert themselves to humans through some magical process. My cousin Nedrick does whatever needs doing. I guess you could check it out for yourself if you're curious. Anyway, I wonder if you'll bring my cousin, Drithen, this here treat my wife baked up for him special.
|
||||
RefusalMessage = 1074459; // That's okay, I'll find someone else to make the delivery.
|
||||
InProgressMessage = 1074460; // If I knew where my cousin was, I'd make the delivery myself.
|
||||
CompletionMessage = 1074461; // Oh, hello there. What do you have for me?
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(SpecialTreatForDrithen), 1, "treat for Drithen", typeof(Drithen)));
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Aurelia : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Aurelia() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Architect's Daughter";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(Utility.RandomPinkHue()));
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddItem(new Kilt(Utility.RandomPinkHue()));
|
||||
}
|
||||
else
|
||||
{
|
||||
AddItem(new Skirt(Utility.RandomPinkHue()));
|
||||
}
|
||||
|
||||
AddItem(new FancyShirt(Utility.RandomRedHue()));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Aurelia";
|
||||
}
|
||||
|
||||
[QuesterName("Szandor")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SkeletonOfSzandor : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public SkeletonOfSzandor() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Late Architect";
|
||||
Hue = 0x83F2; // TODO: Random human hue? Why???
|
||||
Body = 0x32;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Skeleton of Szandor";
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,571 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class Seasons : MLQuest
|
||||
{
|
||||
public Seasons()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072782; // Seasons
|
||||
Description =
|
||||
1072802; // *rumbling growl* *sniff* ... not-smell ... seek-fight ... not-smell ... fear-stench ... *rumble* ... cold-soon-time comes ... hungry ... eat-fish ... sleep-soon-time ... *deep fang-filled yawn* ... much-fish.
|
||||
RefusalMessage = 1072810; // *yawn* ... cold-soon-time ... *growl*
|
||||
InProgressMessage = 1072811; // *sniff* *sniff* ... not-much-fish ... hungry ... *grumble*
|
||||
CompletionMessage = 1074174; // *sniff* fish! much-fish!
|
||||
|
||||
Objectives.Add(new CollectObjective(20, typeof(RawFishSteak), 1022426)); // raw fish steak
|
||||
|
||||
Rewards.Add(new DummyReward(1072803)); // The boon of Maul.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of Maul! Your understanding of the seasons grows.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074940, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
public class CaretakerOfTheLand : MLQuest
|
||||
{
|
||||
public CaretakerOfTheLand()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072783; // Caretaker of the Land
|
||||
Description =
|
||||
1072812; // Hrrrrr. Hurrrr. Huuuman. *creaking branches* Suuun on baaark, roooooots diiig deeeeeep, wiiind caaaresses leeeaves … Hrrrrr. Saaap of Sooosaria feeeeeeds us. Hrrrrr. Huuuman leeearn. Caaaretaker of plaaants … teeend … prooove.<br>
|
||||
RefusalMessage = 1072813; // Hrrrrr. Hrrrrr. Huuuman.
|
||||
InProgressMessage =
|
||||
1072814; // Hrrrr. Hrrrr. Roooooots neeeeeed saaap of Sooosaria. Hrrrrr. Roooooots tiiingle neeeaaar Yeeew. Seeeaaarch. Hrrrr!
|
||||
CompletionMessage = 1074175; // Thiiirsty. Hurrr. Hurrr.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(SapOfSosaria), "sap of sosaria"));
|
||||
|
||||
Rewards.Add(new DummyReward(1072804)); // The boon of Strongroot.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of Strongroot! You have been approved by one whose roots touch the bones of Sosaria.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074941, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
public class WisdomOfTheSphynx : MLQuest
|
||||
{
|
||||
public WisdomOfTheSphynx()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072784; // Wisdom of the Sphynx
|
||||
Description =
|
||||
1072822; // I greet thee human and divine my boon thou seek. Convey hence the object of my riddle and I shall reward thee with thy desire.<br><br>Three lives have I.<br>Gentle enough to soothe the skin,<br>Light enough to caress the sky,<br>Hard enough to crack rocks<br>What am I?
|
||||
RefusalMessage = 1072823; // As thou wish, human.
|
||||
InProgressMessage =
|
||||
1072824; // I give thee a hint then human. The answer to my riddle must be held carefully or it cannot be contained at all. Bring this elusive item to me in a suitable container.
|
||||
CompletionMessage = 1074176; // Ah, thus it ends.
|
||||
|
||||
Objectives.Add(new InternalObjective());
|
||||
|
||||
Rewards.Add(new DummyReward(1072805)); // The boon of Enigma.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of Enigma! You are wise enough to know how little you know.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074945, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
|
||||
private class InternalObjective : CollectObjective
|
||||
{
|
||||
public InternalObjective()
|
||||
: base(1, typeof(Pitcher), 1074869) // The answer to the riddle.
|
||||
{
|
||||
}
|
||||
|
||||
public override bool ShowDetailed => false;
|
||||
|
||||
public override bool CheckItem(Item item) =>
|
||||
item is Pitcher pitcher && pitcher.Content == BeverageType.Water && pitcher.Quantity > 0;
|
||||
}
|
||||
}
|
||||
|
||||
public class DefendingTheHerd : MLQuest
|
||||
{
|
||||
public DefendingTheHerd()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072785; // Defending the Herd
|
||||
Description =
|
||||
1072825; // *snort* ... guard-mates ... guard-herd *hoof stomp* ... defend-with-hoof-and-horn ... thirsty-drink. *proud head-toss*
|
||||
RefusalMessage = 1072826; // *snort*
|
||||
InProgressMessage = 1072827; // *impatient hoof stomp* ... thirsty herd ... water scent.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new EscortObjective(new QuestArea(1074779, "Bravehorn's drinking pool"))
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1072806)); // The boon of Bravehorn.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of Bravehorn!
|
||||
// You have glimpsed the nobility of those that sacrifice themselves for their people.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074942, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
public class TheBalanceOfNature : MLQuest
|
||||
{
|
||||
public TheBalanceOfNature()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072786; // The Balance of Nature
|
||||
Description =
|
||||
1072829; // Ho, there human. Why do you seek out the Huntsman? The hunter serves the land by culling both predators and prey. The hunter maintains the essential balance of life and does not kill for sport or glory. If you seek my favor, human, then demonstrate you are capable of the duty. Cull the wolves nearby.
|
||||
RefusalMessage = 1072830; // Then begone. I have no time to waste on you, human.
|
||||
InProgressMessage = 1072831; // The timber wolves are easily tracked, human.
|
||||
|
||||
Objectives.Add(
|
||||
new KillObjective(
|
||||
15,
|
||||
new[] { typeof(TimberWolf) },
|
||||
"timber wolves",
|
||||
new QuestArea(1074833, "Huntsman's Forest")
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1072807)); // The boon of the Huntsman.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of the Huntsman!
|
||||
// You have been given a taste of the bittersweet duty of those who guard the balance.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074943, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
public class TheJoysOfLife : MLQuest
|
||||
{
|
||||
public TheJoysOfLife()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072787; // The Joys of Life
|
||||
Description =
|
||||
1072832; // *giggle* So serious, so grim! *tickle* Enjoy life! Have fun! Laugh! Be merry! *giggle* Find three of my baubles ... *giggle* I hid them! *giggles hysterically* Hid them! La la la! Bring them quickly! They are magical and will hide themselves again if you are too slow.
|
||||
RefusalMessage = 1072833; // *giggle* Too serious. Too thinky!
|
||||
InProgressMessage = 1072834; // Magical baubles hidden, find them as you're bidden! *giggle*
|
||||
CompletionMessage = 1074177; // *giggle* So pretty!
|
||||
|
||||
Objectives.Add(new CollectObjective(3, typeof(ABauble), "arielle's baubles"));
|
||||
|
||||
Rewards.Add(new DummyReward(1072809)); // The boon of Arielle.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have gained the boon of Arielle!
|
||||
// You have been taught the importance of laughter and light spirits.
|
||||
// You are one step closer to claiming your elven heritage.
|
||||
instance.Player.SendLocalizedMessage(1074944, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Maul")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MaulTheBear : GrizzlyBear
|
||||
{
|
||||
[Constructible]
|
||||
public MaulTheBear()
|
||||
{
|
||||
AI = AIType.AI_Vendor;
|
||||
FightMode = FightMode.None;
|
||||
Tamable = false;
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Maul";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Strongroot : Treefellow
|
||||
{
|
||||
[Constructible]
|
||||
public Strongroot()
|
||||
{
|
||||
AI = AIType.AI_Vendor;
|
||||
FightMode = FightMode.None;
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Strongroot";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Enigma : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Enigma() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Body = 788;
|
||||
BaseSoundID = 0x3EE;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Enigma";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Bravehorn : BaseEscortable
|
||||
{
|
||||
[Constructible]
|
||||
public Bravehorn()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool StaticMLQuester => true;
|
||||
public override bool InitialInnocent => true;
|
||||
public override string DefaultName => "Bravehorn";
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
Body = 0xEA;
|
||||
|
||||
SetStr(41, 71);
|
||||
SetDex(47, 77);
|
||||
SetInt(27, 57);
|
||||
|
||||
SetHits(27, 41);
|
||||
SetMana(0);
|
||||
|
||||
SetDamage(5, 9);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 20, 25);
|
||||
SetResistance(ResistanceType.Cold, 5, 10);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 26.8, 44.5);
|
||||
SetSkill(SkillName.Tactics, 29.8, 47.5);
|
||||
SetSkill(SkillName.Wrestling, 29.8, 47.5);
|
||||
|
||||
Fame = 300;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 24;
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
}
|
||||
|
||||
public override int GetAttackSound() => 0x82;
|
||||
|
||||
public override int GetHurtSound() => 0x83;
|
||||
|
||||
public override int GetDeathSound() => 0x84;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BravehornsMate : Hind
|
||||
{
|
||||
[Constructible]
|
||||
public BravehornsMate() => Tamable = false;
|
||||
|
||||
public override string DefaultName => "bravehorn's mate";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Huntsman : Centaur
|
||||
{
|
||||
[Constructible]
|
||||
public Huntsman()
|
||||
{
|
||||
AI = AIType.AI_Vendor;
|
||||
FightMode = FightMode.None;
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Huntsman";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Arielle : Pixie
|
||||
{
|
||||
[Constructible]
|
||||
public Arielle()
|
||||
{
|
||||
AI = AIType.AI_Vendor;
|
||||
FightMode = FightMode.None;
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Arielle";
|
||||
}
|
||||
|
||||
public class Ingenuity : MLQuest
|
||||
{
|
||||
public Ingenuity()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074350; // Ingenuity
|
||||
Description =
|
||||
1074462; // The best thing about my job is that I do a little bit of everything, every day. It's what we're good at really. Just picking up something and making it do something else. Listen, I'm really low on parts. Are you interested in fetching me some supplies?
|
||||
RefusalMessage = 1074508; // Okay. Best of luck with your other endeavors.
|
||||
InProgressMessage =
|
||||
1074509; // Lord overseers are the best source I know for power crystals of the type I need. Iron golems too, can have them but they're harder to find.
|
||||
CompletionMessage =
|
||||
1074510; // Do you have those power crystals? I'm ready to put the finishing touches on my latest experiment.
|
||||
CompletionNotice = CompletionNoticeShortReturn;
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(PowerCrystal), "Power Crystals"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074875)); // Another step closer to becoming human.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have demonstrated your ingenuity!
|
||||
// Humans are jacks of all trades and know a little about a lot of things.
|
||||
// You are one step closer to achieving humanity.
|
||||
instance.Player.SendLocalizedMessage(1074946, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
public class HeaveHo : MLQuest
|
||||
{
|
||||
public HeaveHo()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074351; // Heave Ho!
|
||||
Description =
|
||||
1074519; // Ho there! There's nothing quite like a day's honest labor to make you appreciate being alive. Hey, maybe you'd like to help out with this project? These crates need to be delivered to Sledge. The only thing is -- it's a bit of a rush job and if you don't make it in time, he won't take them. Can I trust you to help out?
|
||||
RefusalMessage = 1074521; // Oh yah, if you're too busy, no problem.
|
||||
InProgressMessage =
|
||||
1074522; // Sledge can be found in Buc's Den. Better hurry, he won't take those crates if you take too long with them.
|
||||
CompletionMessage = 1074523; // Hey, if you have cargo for me, you can start unloading over here.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new TimedDeliverObjective(
|
||||
TimeSpan.FromHours(1),
|
||||
typeof(CrateForSledge),
|
||||
5,
|
||||
"Crates for Sledge",
|
||||
typeof(Sledge)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074875)); // Another step closer to becoming human.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have demonstrated your physical strength!
|
||||
// Humans can carry vast loads without complaint. You are one step closer to achieving humanity.
|
||||
instance.Player.SendLocalizedMessage(1074948, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
// This is not a real quest, it is only used as a reference
|
||||
public class HumanInNeed : MLQuest
|
||||
{
|
||||
public HumanInNeed()
|
||||
{
|
||||
Title = 1075011; // A quest that asks you to defend a human in need.
|
||||
Description = 0;
|
||||
RefusalMessage = 0;
|
||||
InProgressMessage = 0;
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public static void AwardTo(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.GetOrCreateContext(pm).SetDoneQuest(MLQuestSystem.FindQuest(typeof(HumanInNeed)));
|
||||
// You have demonstrated your compassion! Your kind actions have been noted.
|
||||
pm.SendLocalizedMessage(1074949, "", 0x2A);
|
||||
}
|
||||
}
|
||||
|
||||
public class AllSeasonAdventurer : MLQuest
|
||||
{
|
||||
public AllSeasonAdventurer()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074353; // All Season Adventurer
|
||||
Description =
|
||||
1074527; // It's all about hardship, suffering, struggle and pain. Without challenges, you've got nothing to test yourself against -- and that's what life is all about. Self improvement! Honing your body and mind! Overcoming obstacles ... You'll see what I mean if you take on my challenge.
|
||||
RefusalMessage = 1074528; // My way of life isn't for everyone, that's true enough.
|
||||
InProgressMessage = 1074529; // You're not making much progress in the honing-mind-and-body department, are you?
|
||||
CompletionNotice = CompletionNoticeShortReturn;
|
||||
|
||||
Objectives.Add(
|
||||
new KillObjective(
|
||||
5,
|
||||
new[] { typeof(Efreet) },
|
||||
"efreets",
|
||||
new QuestArea(1074808, "Fire")
|
||||
)
|
||||
);
|
||||
Objectives.Add(
|
||||
new KillObjective(
|
||||
5,
|
||||
new[] { typeof(IceFiend) },
|
||||
"ice fiends",
|
||||
new QuestArea(1074809, "Ice")
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074875)); // Another step closer to becoming human.
|
||||
}
|
||||
|
||||
public override bool RecordCompletion => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
// You have demonstrated your toughness!
|
||||
// Humans are able to endure unimaginable hardships in pursuit of their goals.
|
||||
// You are one step closer to achieving humanity.
|
||||
instance.Player.SendLocalizedMessage(1074947, "", 0x2A);
|
||||
instance.ClaimRewards(); // skip gump
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Sledge (Buc's Den)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Sledge : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Sledge() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Versatile";
|
||||
Body = 400;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new Tunic(Utility.RandomNeutralHue()));
|
||||
AddItem(new LongPants(Utility.RandomBlueHue()));
|
||||
AddItem(new Cloak(Utility.RandomBrightHue()));
|
||||
AddItem(new ElvenBoots(Utility.RandomNeutralHue()));
|
||||
AddItem(new Backpack());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Sledge";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074188, // Weakling! You are not up to the task I have.
|
||||
1074195 // You there, in the stupid hat! Come here.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Patricus (Vesper)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Patricus : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Patricus() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Trader";
|
||||
Body = 400;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new FancyShirt(Utility.RandomNeutralHue()));
|
||||
AddItem(new LongPants(Utility.RandomBrightHue()));
|
||||
AddItem(new Cloak(0x1BB));
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new Backpack());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Patricus";
|
||||
}
|
||||
|
||||
[QuesterName("Belulah (Nujel'm)")] // On OSI it's "Belulah (Nu'Jelm)" (incorrect spelling)
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Belulah : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Belulah() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the scorned";
|
||||
Female = true;
|
||||
Body = 401;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new FancyShirt(Utility.RandomBlueHue()));
|
||||
AddItem(new LongPants(Utility.RandomNondyedHue()));
|
||||
AddItem(new Boots());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Belulah";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
/*
|
||||
* 1074205 - Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
* 1074206 - Excuse me please traveler, might I have a little of your time?
|
||||
*/
|
||||
MLQuestSystem.Tell(this, pm, Utility.Random(1074205, 2));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class HonestBeggar : MLQuest
|
||||
{
|
||||
public HonestBeggar()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075392; // Honest Beggar
|
||||
// Beg pardon, sir. I mean, madam. Uh, can I ask a favor of you? I found this jeweled ring. Most people would sell it and keep the money, but not me. I ain't never stole nothing, and I ain't about to start. I tried to take it over to Brit castle, figgerin' it must belong to some highborn lady, but the guards threw me out. You look like they might let you pass. Will you take the ring over there and see if you can find the owner?
|
||||
|
||||
Description = 1075393;
|
||||
RefusalMessage = 1075395; // I see. Too good to help an honest beggar like me, eh?
|
||||
// A jewel like this must be worth a lot, so it must belong to some noble or another. I would show it around the castle. Someone's bound to recognize it.
|
||||
InProgressMessage = 1075396;
|
||||
// Didst thou find my ring? I thank thee very much! It is an old ring, and a gift from my husband. I was most distraught when I realized it was missing.
|
||||
CompletionMessage = 1075397;
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(ReginasRing), 1, "Regina's Ring", typeof(Regina)));
|
||||
|
||||
Rewards.Add(new DummyReward(1075394)); // Find the ring's owner.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(ReginasThanks);
|
||||
}
|
||||
|
||||
public class ReginasThanks : MLQuest
|
||||
{
|
||||
public ReginasThanks()
|
||||
{
|
||||
Activated = true;
|
||||
OneTimeOnly = true;
|
||||
Title = 1075398; // Regina's Thanks
|
||||
Description =
|
||||
1075399; // What's that you say? It was a humble beggar that found my ring? Such honesty must be rewarded. Here, take this packet and return it to him, and I will be in your debt.
|
||||
RefusalMessage = 1075401; // Hmph. Very well. What did you say his name was?
|
||||
InProgressMessage = 1075402; // Take the packet and return it to the beggar who found my ring.
|
||||
CompletionMessage =
|
||||
1075403; // What? For me? Let me see . . . these sapphire earrings are for you, it says. Oh, she wants to offer me a job! This is the most wonderful thing that ever happened to me!
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(ReginasLetter), 1, "Regina's Letter", typeof(Evan)));
|
||||
|
||||
Rewards.Add(new ItemReward(1075400, typeof(TransparentHeart))); // Transparent Heart
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Evan : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Evan() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Beggar";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Doublet());
|
||||
AddItem(new ShortPants(0x755));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Evan";
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Regina : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Regina() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Noble";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new GildedDress());
|
||||
AddItem(new Boots());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Regina";
|
||||
}
|
||||
|
|
@ -1,256 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class Responsibility : BaseEscort
|
||||
{
|
||||
public Responsibility()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074352; // Responsibility
|
||||
Description =
|
||||
1074524; // Oh! I just don't know what to do. My mother is away and my father told me not to talk to strangers ... *worried frown* But my grandfather has sent word that he has been hurt and needs me to tend his wounds. He has a small farm southeast of here. Would you ... could you ... escort me there safely?
|
||||
RefusalMessage = 1074525; // I hope my grandfather will be alright.
|
||||
InProgressMessage =
|
||||
1074526; // Grandfather's farm is a ways west of the Shrine of Spirituality. So, we're not quite there yet. Thank you again for keeping me safe.
|
||||
|
||||
Objectives.Add(new EscortObjective(new QuestArea(1074781, "Sheep Farm"))); // Sheep Farm
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
|
||||
// OSI sends this instead, but it doesn't make sense for an escortable
|
||||
// public override void OnComplete( MLQuestInstance instance )
|
||||
// {
|
||||
// instance.Player.SendLocalizedMessage( 1073775, "", 0x23 ); // Your quest is complete. Return for your reward.
|
||||
// }
|
||||
}
|
||||
|
||||
public class SomethingToWailAbout : MLQuest
|
||||
{
|
||||
public SomethingToWailAbout()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1073071; // Something to Wail About
|
||||
Description =
|
||||
1073561; // Can you hear them? The never-ending howling? The incessant wailing? These banshees, they never cease! Never! They haunt my nights. Please, I beg you -- will you silence them? I would be ever so grateful.
|
||||
RefusalMessage = 1073580; // I hope you'll reconsider. Until then, farwell.
|
||||
InProgressMessage = 1073581; // Until you kill 12 Wailing Banshees, there will be no peace.
|
||||
|
||||
Objectives.Add(new KillObjective(12, new[] { typeof(WailingBanshee) }, "wailing banshees"));
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTreasure);
|
||||
}
|
||||
}
|
||||
|
||||
public class Runaways : MLQuest
|
||||
{
|
||||
public Runaways()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072993; // Runaways!
|
||||
Description =
|
||||
1073026; // You've got to help me out! Those wild ostards have been causing absolute havok around here. Kill them off before they destroy my land. There are around twelve of them.
|
||||
RefusalMessage = 1072270; // Well, okay. But if you decide you are up for it after all, c'mon back and see me.
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
|
||||
Objectives.Add(new KillObjective(12, new[] { typeof(FrenziedOstard) }, "frenzied ostards"));
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
}
|
||||
|
||||
public class ViciousPredator : MLQuest
|
||||
{
|
||||
public ViciousPredator()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072994; // Vicious Predator
|
||||
Description =
|
||||
1073028; // You've got to help me out! Those dire wolves have been causing absolute havok around here. Kill them off before they destroy my land. They run around in a pack of around ten.
|
||||
RefusalMessage = 1072270; // Well, okay. But if you decide you are up for it after all, c'mon back and see me.
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
|
||||
Objectives.Add(new KillObjective(10, new[] { typeof(DireWolf) }, "dire wolves"));
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
}
|
||||
|
||||
public class GuileIrkAndSpite : MLQuest
|
||||
{
|
||||
public GuileIrkAndSpite()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074739; // Guile, Irk and Spite
|
||||
Description =
|
||||
1074740; // You know them, don't you. The three? They look like you, you'll see. They looked like me, I remember, they looked like, well, you'll see. The three. They'll drive you mad too, if you let them. They are trouble, and they need to be slain. Seek them out.
|
||||
RefusalMessage =
|
||||
1074745; // You just don't understand the gravity of the situation. If you did, you'd agree to my task.
|
||||
InProgressMessage =
|
||||
1074746; // Perhaps I was unclear. You'll know them when you see them, because you'll see you, and you, and you. Hurry now.
|
||||
CompletionMessage =
|
||||
1074747; // Are you one of THEM? Ahhhh! Oh, wait, if you were them, then you'd be me. So you're -- you. Good job!
|
||||
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(Guile) }, "Guile"));
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(Irk) }, "Irk"));
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(Spite) }, "Spite"));
|
||||
|
||||
Rewards.Add(ItemReward.Strongbox);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Lissbet : BaseEscortable
|
||||
{
|
||||
[Constructible]
|
||||
public Lissbet()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool StaticMLQuester => true;
|
||||
public override bool InitialInnocent => true;
|
||||
public override string DefaultName => "Lissbet";
|
||||
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074204, // Greetings seeker. I have an urgent matter for you, if you are willing.
|
||||
1074222 // Could I trouble you for some assistance?
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
SetStr(40, 50);
|
||||
SetDex(70, 80);
|
||||
SetInt(80, 90);
|
||||
|
||||
Hue = Race.Human.RandomSkinHue();
|
||||
Female = true;
|
||||
Body = 401;
|
||||
|
||||
Title = "the flower girl";
|
||||
|
||||
HairItemID = 0x203D;
|
||||
HairHue = 0x1BB;
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
AddItem(new Kilt(Utility.RandomYellowHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomYellowHue()));
|
||||
AddItem(new Sandals());
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GrandpaCharley : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public GrandpaCharley() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the farmer";
|
||||
Body = 400;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
var hairHue = 0x3B2 + Utility.Random(2);
|
||||
Utility.AssignRandomHair(this, hairHue);
|
||||
|
||||
FacialHairItemID = 0x203E; // Long Beard
|
||||
FacialHairHue = hairHue;
|
||||
|
||||
SetSkill(SkillName.ItemID, 80, 90);
|
||||
|
||||
AddItem(new WideBrimHat(Utility.RandomNondyedHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomNondyedHue()));
|
||||
AddItem(new LongPants(Utility.RandomNondyedHue()));
|
||||
AddItem(new Sandals(Utility.RandomNeutralHue()));
|
||||
AddItem(new ShepherdsCrook());
|
||||
AddItem(new Backpack());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Grandpa Charley";
|
||||
public override bool CanTeach => true;
|
||||
}
|
||||
|
||||
[QuesterName("Jelrice (Ilshenar)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Jelrice : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Jelrice() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the trader";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new Skirt(Utility.RandomBlueHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomRedHue()));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Jelrice";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074221); // Greetings! I have a small task for you good traveler.
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Yorus (Ilshenar)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Yorus : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Yorus() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the tinker";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new LongPants(Utility.RandomBlueHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomOrangeHue()));
|
||||
AddItem(new Cloak(Utility.RandomBrightHue()));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Yorus";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074218); // Hey! I want to talk to you, now.
|
||||
}
|
||||
}
|
||||
|
|
@ -11,6 +11,11 @@ namespace Server.Engines.MLQuests.Definitions;
|
|||
|
||||
public class IronForTheForge : MLQuest
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
MLQuestSystem.Register(new IronForTheForge(), typeof(QuestBlacksmith));
|
||||
}
|
||||
|
||||
public IronForTheForge()
|
||||
{
|
||||
Activated = true;
|
||||
|
|
@ -28,20 +33,11 @@ public class IronForTheForge : MLQuest
|
|||
// Reward: 500 Gold
|
||||
Rewards.Add(new ItemReward("500 Gold", typeof(Gold), 500));
|
||||
}
|
||||
|
||||
public override void Generate()
|
||||
{
|
||||
base.Generate();
|
||||
|
||||
// Registers this quest and links it to QuestBlacksmith
|
||||
MLQuestSystem.Register(this, typeof(QuestBlacksmith));
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class QuestBlacksmith : BaseCreature, IQuestGiver
|
||||
{
|
||||
// Implementation for IQuestGiver
|
||||
public List<MLQuest> MLQuests => MLQuestSystem.FindQuestList(GetType());
|
||||
|
||||
[Constructible]
|
||||
|
|
@ -49,14 +45,23 @@ public partial class QuestBlacksmith : BaseCreature, IQuestGiver
|
|||
{
|
||||
Title = "the Blacksmith";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
|
||||
Female = Utility.RandomBool();
|
||||
Body = Female ? 0x191 : 0x190;
|
||||
Name = NameList.RandomName(Female ? "female" : "male");
|
||||
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
int hairHue = Race.RandomHairHue();
|
||||
Utility.AssignRandomHair(this, hairHue);
|
||||
|
||||
if (!Female)
|
||||
{
|
||||
Utility.AssignRandomFacialHair(this, hairHue);
|
||||
}
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new ShortPants(0x755));
|
||||
|
|
@ -67,5 +72,4 @@ public partial class QuestBlacksmith : BaseCreature, IQuestGiver
|
|||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Gareth";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,49 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Items;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
// TODO: Assassination Contract, Evidence, Lost in Transit, Last Words
|
||||
|
||||
public class LostAndFound : MLQuest
|
||||
{
|
||||
public LostAndFound()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072370; // Lost and Found
|
||||
Description =
|
||||
1072589; // The battered, old bucket is inscribed with barely legible writing that indicates it belongs to someone named "Dallid". Maybe they'd pay for its return?
|
||||
RefusalMessage =
|
||||
1072590; // You're right, who cares if Dallid might pay for his battered old bucket back. This way you can carry it around with you!
|
||||
InProgressMessage = 1072591; // Whoever this "Dallid" might be, he's probably looking for his bucket.
|
||||
CompletionMessage =
|
||||
1074580; // Is that my bucket? I had to ditch my favorite bucket when a group of ratmen jumped me!
|
||||
|
||||
Objectives.Add(
|
||||
new TimedDeliverObjective(
|
||||
TimeSpan.FromSeconds(600),
|
||||
typeof(BatteredBucket),
|
||||
1,
|
||||
"battered bucket",
|
||||
typeof(Dallid),
|
||||
false
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BatteredBucket : TransientQuestGiverItem
|
||||
{
|
||||
[Constructible]
|
||||
public BatteredBucket() : base(0x2004, TimeSpan.FromMinutes(10)) => LootType = LootType.Blessed;
|
||||
|
||||
// Original label, doesn't fit the expiration message well
|
||||
// public override int LabelNumber => 1073129; // A battered bucket.
|
||||
|
||||
public override string DefaultName => "battered bucket";
|
||||
}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
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
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Drithen (Umbra)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Drithen : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Drithen() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Fierce";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
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()));
|
||||
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
}
|
||||
|
||||
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.
|
||||
}
|
||||
}
|
||||
|
|
@ -1,304 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Items;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class MistakenIdentity : MLQuest
|
||||
{
|
||||
public MistakenIdentity()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074573; // Mistaken Identity
|
||||
Description =
|
||||
1074574; // What do you want? Wonderful, another whining request for a refund on tuition. You know, experiences like that are invaluable ... and infrequent. Having the opportunity to test yourself under such realistic situations isn't something the college offers all students. Fine. Fine. You'll need to submit a refund request form in triplicate before I can return your 1,000,000 gold tuition. You'll need to get some signatures and a few other odds and ends.
|
||||
RefusalMessage = 1074606; // If you're not willing to follow the proper process then go away.
|
||||
InProgressMessage = 1074605; // You're not getting a refund without the proper forms and signatures.
|
||||
CompletionMessage = 1074607; // Oh blast! Not another of those forms. I'm so sick of this endless paperwork.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(TuitionReimbursementForm),
|
||||
1,
|
||||
"Tuition Reimbursement Form",
|
||||
typeof(Gorrow)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074634)); // Tuition Reimbursement
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(YouScratchMyBack);
|
||||
}
|
||||
|
||||
public class YouScratchMyBack : MLQuest
|
||||
{
|
||||
public YouScratchMyBack()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074608; // You Scratch My Back
|
||||
Description =
|
||||
1074609; // Heh. Heheheh. Good one. You're not a Bedlam student and you're definitely not eligible for a tuition refund. Heheheh. That old witch Aernya doesn't see as well as she used to you know. Otherwise, she would have ... hmmm, wait a minute. I sense a certain 'opportunity' here. I'll sign your forms in return for a little help with a project of my own. What do you say?
|
||||
RefusalMessage = 1074615; // Hehehe. Your choice.
|
||||
InProgressMessage =
|
||||
1074616; // I'm something of a gourmet, you see. It's tough getting some of the ingredients, though. Bring me back some pixie legs, unicorn ribs and ki-rin brains and I'll sign your form.
|
||||
CompletionMessage =
|
||||
1074617; // Oh excellent, you're back. I'll get the oven going. That thing about pixie legs, you see, is that they burn and dry out if you're not really careful. Taste just like chicken too!
|
||||
CompletionNotice = CompletionNoticeShortReturn;
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(UnicornRibs), "Unicorn Ribs"));
|
||||
Objectives.Add(new CollectObjective(2, typeof(KirinBrains), "Ki-Rin Brains"));
|
||||
Objectives.Add(new CollectObjective(5, typeof(PixieLeg), "Pixie Leg"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074634)); // Tuition Reimbursement
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(FoolingAernya);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class FoolingAernya : MLQuest
|
||||
{
|
||||
public FoolingAernya()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074618; // Fooling Aernya
|
||||
Description =
|
||||
1074619; // Now that I've signed your papers you'd better get back to that witch Aernya. Mmmm mmm smell those ribs!
|
||||
RefusalMessage = 1074620; // Giving up on your scheme eh? Suit yourself.
|
||||
InProgressMessage =
|
||||
1074621; // You better hurry back to Mistress Aernya with that signed form. The college only has so much money and with enough claims you may find yourself unable to get your tuition refunded. *wink*
|
||||
CompletionMessage = 1074622; // What? Hrmph. Gorrow signed your form did he? Let me see that. *squint*
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(SignedTuitionReimbursementForm),
|
||||
1,
|
||||
"Signed Tuition Reimbursement Form",
|
||||
typeof(Aernya)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074634)); // Tuition Reimbursement
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(NotQuiteThatEasy);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class NotQuiteThatEasy : MLQuest
|
||||
{
|
||||
public NotQuiteThatEasy()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074623; // Not Quite That Easy
|
||||
Description =
|
||||
1074624; // I wouldn't be too smug just yet, whiner. You still need Master Gnosos' signature before I can cut your refund. Last I heard, he's coordinating the recovery of the portions of the college that are currently overrun. *nasty smile* Off with you.
|
||||
RefusalMessage = 1074626; // Coward.
|
||||
InProgressMessage = 1074627; // What are you waiting for? The iron maiden is still the portal to Bedlam.
|
||||
CompletionMessage =
|
||||
1074628; // Made it through did you? Did you happen to see Red Death out there? Big horse, skeletal ... burning eyes? No? What's this? Forms? FORMS? I'm up to my eyebrows in ravenous out-of-control undead and you want a signature?
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(SignedTuitionReimbursementForm),
|
||||
1,
|
||||
"Signed Tuition Reimbursement Form",
|
||||
typeof(MasterGnosos)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074634)); // Tuition Reimbursement
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(ConvinceMe);
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void Generate()
|
||||
{
|
||||
base.Generate();
|
||||
|
||||
PutDeco(new BedlamTeleporter(), new Point3D(2067, 1371, -75), Map.Malas);
|
||||
}
|
||||
|
||||
public override void OnAccepted(MLQuestInstance instance)
|
||||
{
|
||||
instance.PlayerContext.BedlamAccess = true; // Permanent access
|
||||
}
|
||||
}
|
||||
|
||||
public class ConvinceMe : MLQuest
|
||||
{
|
||||
public ConvinceMe()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074629; // Convince Me
|
||||
Description =
|
||||
1074630; // I'm not signing any forms until the situation here is under control. So, you can either help out or you can forget getting your tuition refund. Which will it be? Help control the shambling dead?
|
||||
RefusalMessage = 1074631; // No signature for you.
|
||||
InProgressMessage =
|
||||
1074632; // No signature for you until you kill off some of the shambling dead out there and destroy that blasted horse.
|
||||
CompletionMessage = 1074633; // Pulled it off huh? Well then you've earned this signature!
|
||||
CompletionNotice = CompletionNoticeShortReturn;
|
||||
|
||||
var bedlam = new QuestArea(1074835, "Bedlam"); // Bedlam
|
||||
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(RedDeath) }, "Red Death", bedlam));
|
||||
Objectives.Add(new KillObjective(10, new[] { typeof(GoreFiend) }, "gore fiends", bedlam));
|
||||
Objectives.Add(new KillObjective(8, new[] { typeof(RottingCorpse) }, "rotting corpses", bedlam));
|
||||
|
||||
Rewards.Add(new DummyReward(1074634)); // Tuition Reimbursement
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(TuitionReimbursement);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class TuitionReimbursement : MLQuest
|
||||
{
|
||||
public TuitionReimbursement()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074634; // Tuition Reimbursement
|
||||
Description =
|
||||
1074635; // Well, there you are. I've added my signature to that of Gorrow, so you should be set to return to Mistress Aernya and get your tuition refunded.
|
||||
RefusalMessage =
|
||||
1074636; // Great! If you're going to stick around here, I know we have more tasks for you to perform.
|
||||
InProgressMessage =
|
||||
1074637; // Just head out the main gates there and you'll find yourself embracing the iron maiden in the Bloodletter's Guild.
|
||||
CompletionMessage =
|
||||
1074638; // *disinterested stare* What? Oh, you've gotten your form filled in. How nice. *glare* And I'd hoped you'd drop this charade before I was forced to rub your nose in it. *nasty smile* You're not even a student and as such, you're not eligible for a refund -- you've never paid tuition. For your services, Master Gnosos has recommended you receive pay. So here. Now go away.
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(
|
||||
new DeliverObjective(
|
||||
typeof(CompletedTuitionReimbursementForm),
|
||||
1,
|
||||
"Completed Tuition Reimbursement Form",
|
||||
typeof(Aernya)
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(ItemReward.Strongbox);
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[QuesterName("Aernya (Umbra)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Aernya : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Aernya() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Mistress of Admissions";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(Utility.RandomNeutralHue()));
|
||||
AddItem(new Skirt(Utility.RandomBool() ? 0x1 : 0x0));
|
||||
AddItem(new Cloak(Utility.RandomBrightHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomBool() ? 0x3B2 : 0x3B3));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Aernya";
|
||||
}
|
||||
|
||||
[QuesterName("Gorrow (Luna)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Gorrow : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Gorrow() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Mayor";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(0x1BB));
|
||||
AddItem(new Tunic(Utility.RandomNeutralHue()));
|
||||
AddItem(new LongPants(0x901));
|
||||
AddItem(new Cloak(Utility.RandomRedHue()));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Gorrow";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074200, // Thank goodness you are here, there's no time to lose.
|
||||
1074203 // Hello friend. I realize you are busy but if you would be willing to render me a service I can assure you that you will be judiciously renumerated.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Master Gnosos (Bedlam)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MasterGnosos : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public MasterGnosos() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the necromancer";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = 0x83E8;
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
HairItemID = 0x2049;
|
||||
FacialHairItemID = 0x204B;
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(0x485));
|
||||
AddItem(new Robe(0x497));
|
||||
|
||||
SetSkill(SkillName.EvalInt, 60.0, 80.0);
|
||||
SetSkill(SkillName.Inscribe, 60.0, 80.0);
|
||||
SetSkill(SkillName.MagicResist, 60.0, 80.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 60.0, 80.0);
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Necromancy, 60.0, 80.0);
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Master Gnosos";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074186); // Come here, I have a task.
|
||||
}
|
||||
}
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
public class NewHavenEscort : BaseEscort
|
||||
{
|
||||
// Escort reward
|
||||
private static readonly BaseReward m_Reward = new ItemReward("Gold", typeof(Gold), 500);
|
||||
|
||||
public NewHavenEscort(int title, int description, int progress, int destination, string region)
|
||||
{
|
||||
Activated = true;
|
||||
Title = title;
|
||||
Description = description;
|
||||
RefusalMessage =
|
||||
1072288; // I wish you would reconsider my offer. I'll be waiting right here for someone brave enough to assist me.
|
||||
InProgressMessage = progress;
|
||||
|
||||
Objectives.Add(new EscortObjective(new QuestArea(destination, region)));
|
||||
|
||||
Rewards.Add(m_Reward);
|
||||
}
|
||||
|
||||
// New Haven escorts do not count for 'helping a human in need'
|
||||
public override bool AwardHumanInNeed => false;
|
||||
}
|
||||
|
||||
public class EscortToNHAlchemist : NewHavenEscort
|
||||
{
|
||||
public EscortToNHAlchemist()
|
||||
: base(1072314, 1042769, 1072326, 1073864, "the New Haven Alchemist")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHBard : NewHavenEscort
|
||||
{
|
||||
public EscortToNHBard()
|
||||
: base(1072315, 1042772, 1072327, 1073865, "the New Haven Bard")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHWarrior : NewHavenEscort
|
||||
{
|
||||
public EscortToNHWarrior()
|
||||
: base(1072316, 1042787, 1072328, 1073866, "the New Haven Warrior")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHTailor : NewHavenEscort
|
||||
{
|
||||
public EscortToNHTailor()
|
||||
: base(1072317, 1042781, 1072329, 1073867, "the New Haven Tailor")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHCarpenter : NewHavenEscort
|
||||
{
|
||||
public EscortToNHCarpenter()
|
||||
: base(1072318, 1042775, 1072330, 1073868, "the New Haven Carpenter")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHMapmaker : NewHavenEscort
|
||||
{
|
||||
public EscortToNHMapmaker()
|
||||
: base(1072319, 1042793, 1072331, 1073869, "the New Haven Mapmaker")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHMage : NewHavenEscort
|
||||
{
|
||||
public EscortToNHMage()
|
||||
: base(1072320, 1042790, 1072332, 1073870, "the New Haven Mage")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHInn : NewHavenEscort
|
||||
{
|
||||
public EscortToNHInn()
|
||||
: base(1072321, 1042796, 1072333, 1073871, "the New Haven Inn")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHFarm : NewHavenEscort
|
||||
{
|
||||
public EscortToNHFarm()
|
||||
: base(1072322, 1042799, 1072334, 1073872, "the New Haven Farm")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHDocks : NewHavenEscort
|
||||
{
|
||||
public EscortToNHDocks()
|
||||
: base(1072323, 1042802, 1072335, 1073873, "the New Haven Docks")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHBowyer : NewHavenEscort
|
||||
{
|
||||
public EscortToNHBowyer()
|
||||
: base(1072324, 1042805, 1072336, 1073874, "the New Haven Bowyer")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNHBank : NewHavenEscort
|
||||
{
|
||||
public EscortToNHBank()
|
||||
: base(1072325, 1042784, 1072337, 1073875, "the New Haven Bank")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,773 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class SplitEnds : MLQuest
|
||||
{
|
||||
public SplitEnds()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075506; // Split Ends
|
||||
Description =
|
||||
1075507; // *sighs* I think bowcrafting is a might beyond my talents. Say there, you look a bit more confident with tools. Can I persuade thee to make a few arrows? You could have my satchel in return... 'tis useless to me! You'll need a fletching kit to start, some feathers, and a few arrow shafts. Just use the fletching kit while you have the other things, and I'm sure you'll figure out the rest.
|
||||
RefusalMessage = 1075508; // Oh. Well. I'll just keep trying alone, I suppose...
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
CompletionMessage = 1072272; // Thanks for helping me out. Here's the reward I promised you.
|
||||
|
||||
Objectives.Add(new CollectObjective(20, typeof(Arrow), 1023902)); // arrow
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(AndricSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class IShotAnArrowIntoTheAir : MLQuest
|
||||
{
|
||||
public IShotAnArrowIntoTheAir()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075486; // I Shot an Arrow Into the Air...
|
||||
Description =
|
||||
1075482; // Truth be told, the only way to get a feel for the bow is to shoot one and there's no better practice target than a sheep. If ye can shoot ten of them I think ye will have proven yer abilities. Just grab a bow and make sure to take enough ammunition. Bows tend to use arrows and crossbows use bolts. Ye can buy 'em or have someone craft 'em. How about it then? Come back here when ye are done.
|
||||
RefusalMessage = 1075483; // Fair enough, the bow isn't for everyone. Good day then.
|
||||
InProgressMessage = 1075484; // Return once ye have killed ten sheep with a bow and not a moment before.
|
||||
|
||||
Objectives.Add(new KillObjective(10, new[] { typeof(Sheep) }, 1018270)); // sheep
|
||||
|
||||
Rewards.Add(ItemReward.BagOfTrinkets);
|
||||
}
|
||||
}
|
||||
|
||||
public class BakersDozen : MLQuest
|
||||
{
|
||||
public BakersDozen()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075478; // Baker's Dozen
|
||||
Description =
|
||||
1075479; // You there! Do you know much about the ways of cooking? If you help me out, I'll show you a thing or two about how it's done. Bring me some cookie mix, about 5 batches will do it, and I will reward you. Although, I don't think you can buy it, you can make some in a snap! First get a rolling pin or frying pan or even a flour sifter. Then you mix one pinch of flour with some water and you've got some dough! Take that dough and add one dollop of honey and you've got sweet dough. add one more drop of honey and you've got cookie mix. See? Nothing to it! Now get to work!
|
||||
RefusalMessage =
|
||||
1075480; // Argh, I absolutely must have more of these 'cookies!' Come back if you change your mind.
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
CompletionMessage = 1075481; // Thank you! I haven't been this excited about food in months!
|
||||
|
||||
Objectives.Add(new CollectObjective(5, typeof(CookieMix), 1024159)); // cookie mix
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(AsandosSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class AStitchInTime : MLQuest
|
||||
{
|
||||
public AStitchInTime()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075523; // A Stitch in Time
|
||||
Description =
|
||||
1075522; // Oh how I wish I had a fancy dress like the noble ladies of Castle British! I don't have much... but I have a few trinkets I might trade for it. It would mean the world to me to go to a fancy ball and dance the night away. Oh, and I could tell you how to make one! You just need to use your sewing kit on enough cut cloth, that's all.
|
||||
RefusalMessage = 1075526; // Won't you reconsider? It'd mean the world to me, it would!
|
||||
InProgressMessage =
|
||||
1075527; // Hello again! Do you need anything? You may want to visit the tailor's shop for cloth and a sewing kit, if you don't already have them.
|
||||
CompletionMessage =
|
||||
1075528; // It's gorgeous! I only have a few things to give you in return, but I can't thank you enough! Maybe I'll even catch Uzeraan's eye at the, er, *blushes* I mean, I can't wait to wear it to the next town dance!
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(FancyDress), 1027935)); // fancy dress
|
||||
|
||||
Rewards.Add(new ItemReward(1075524, typeof(AnOldRing))); // an old ring
|
||||
Rewards.Add(new ItemReward(1075525, typeof(AnOldNecklace))); // an old necklace
|
||||
}
|
||||
}
|
||||
|
||||
public class BatteredBucklers : MLQuest
|
||||
{
|
||||
public BatteredBucklers()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075511; // Battered Bucklers
|
||||
Description =
|
||||
1075512; // Hey there! Yeah... you! Ya' any good with a hammer? Tell ya what, if yer thinking about tryin' some metal work, and have a bit of skill, I can show ya how to bend it into shape. Just get some of those ingots there, and grab a hammer and use it over here at this forge. I need a few more bucklers hammered out to fill this here order with... hmmm about ten more. that'll give some taste of how to work the metal.
|
||||
RefusalMessage =
|
||||
1075514; // Not enough muscle on yer bones to use it? hmph, probably afraid of the sparks markin' up yer loverly skin... to good for some honest labor... ha!... off with ya!
|
||||
InProgressMessage = 1075515; // Come On! Whats that... a bucket? We need ten bucklers... not spitoons.
|
||||
CompletionMessage = 1075516; // Thanks for the help. Here's something for ya to remember me by.
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(Buckler), 1027027)); // buckler
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(GervisSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class MoreOrePlease : MLQuest
|
||||
{
|
||||
public MoreOrePlease()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075530; // More Ore Please
|
||||
Description =
|
||||
1075529; // Have a pickaxe? My supplier is late and I need some iron ore so I can complete a bulk order for another merchant. If you can get me some soon I'll pay you double what it's worth on the market. Just find a cave or mountainside and try to use your pickaxe there, maybe you'll strike a good vein! 5 large pieces should do it.
|
||||
RefusalMessage =
|
||||
1075531; // Not feeling strong enough today? Its alright, I didn't need a bucket of rocks anyway.
|
||||
InProgressMessage = 1075532; // Hmmm' we need some more Ore. Try finding a mountain or cave, and give it a whack.
|
||||
CompletionMessage =
|
||||
1075533; // I see you found a good vien! Great! This will help get this order out on time. Good work!
|
||||
|
||||
Objectives.Add(new InternalObjective());
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(MuggSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
|
||||
private class InternalObjective : CollectObjective
|
||||
{
|
||||
// Any type of ore is allowed
|
||||
public InternalObjective()
|
||||
: base(5, typeof(BaseOre), 1026585) // ore
|
||||
{
|
||||
}
|
||||
|
||||
public override bool CheckItem(Item item) => item.ItemID == 6585;
|
||||
}
|
||||
}
|
||||
|
||||
public class ComfortableSeating : MLQuest
|
||||
{
|
||||
public ComfortableSeating()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075517; // Comfortable Seating
|
||||
Description =
|
||||
1075518; // Hail friend, hast thou a moment? A mishap with a saw hath left me in a sorry state, for it shall be a while before I canst return to carpentry. In the meantime, I need a comfortable chair that I may rest. Could thou craft a straw chair? Only a tool, such as a dovetail saw, a few boards, and some skill as a carpenter is needed. Remember, this is a piece of furniture, so please pay attention to detail.
|
||||
RefusalMessage = 1072687; // I quite understand your reluctance. If you reconsider, I'll be here.
|
||||
InProgressMessage = 1075509; // Is all going well? I look forward to the simple comforts in my very own home.
|
||||
CompletionMessage = 1074720; // This is perfect!
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(BambooChair), "straw chair"));
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(LowelSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class ThePenIsMightier : MLQuest
|
||||
{
|
||||
public ThePenIsMightier()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075542; // The Pen is Mightier
|
||||
Description =
|
||||
1075543; // Do you know anything about 'Inscription?' I've been trying to get my hands on some hand crafted Recall scrolls for a while now, and I could really use some help. I don't have a scribe's pen, let alone a spellbook with Recall in it, or blank scrolls, so there's no way I can do it on my own. How about you though? I could trade you one of my old leather bound books for some.
|
||||
RefusalMessage =
|
||||
1075546; // Hmm, thought I had your interest there for a moment. It's not everyday you see a book made from real daemon skin, after all!
|
||||
InProgressMessage =
|
||||
1075547; // Inscribing... yes, you'll need a scribe's pen, some reagents, some blank scroll, and of course your own magery book. You might want to visit the magery shop if you're lacking some materials.
|
||||
CompletionMessage =
|
||||
1075548; // Ha! Finally! I've had a rune to the waterfalls near Justice Isle that I've been wanting to use for the longest time, and now I can visit at last. Here's that book I promised you... glad to be rid of it, to be honest.
|
||||
|
||||
Objectives.Add(new CollectObjective(5, typeof(RecallScroll), "recall scroll"));
|
||||
|
||||
Rewards.Add(new ItemReward(1075545, typeof(RedLeatherBook))); // a book bound in red leather
|
||||
}
|
||||
}
|
||||
|
||||
public class AClockworkPuzzle : MLQuest
|
||||
{
|
||||
public AClockworkPuzzle()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075535; // A clockwork puzzle
|
||||
Description =
|
||||
1075534; // 'Tis a riddle, you see! "What kind of clock is only right twice per day? A broken one!" *laughs heartily* Ah, yes *wipes eye*, that's one of my favorites! Ah... to business. Could you fashion me some clock parts? I wish my own clocks to be right all the day long! You'll need some tinker's tools and some iron ingots, I think, but from there it should be just a matter of working the metal.
|
||||
RefusalMessage = 1072981; // Or perhaps you'd rather not.
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
CompletionMessage = 1075536; // Wonderful! Tick tock, tick tock, soon all shall be well with grandfather's clock!
|
||||
|
||||
Objectives.Add(new CollectObjective(5, typeof(ClockParts), 1024175)); // clock parts
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(NibbetSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class DeliciousFishes : MLQuest
|
||||
{
|
||||
public DeliciousFishes()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075555; // Delicious Fishes
|
||||
Description =
|
||||
1075556; // Ello there, looking for a good place on the dock to fish? I like the southeast corner meself. What's that? Oh, no, *sighs* me pole is broken and in for fixin'. My grandpappy gave me that pole, means a lot you see. Miss the taste of fish though... Oh say, since you're here, could you catch me a few fish? I can cook a mean fish steak, and I'll split 'em with you! But make sure it's one of the green kind, they're the best for seasoning!
|
||||
RefusalMessage =
|
||||
1075558; // Ah, you're missin' out my friend, you're missing out. My peppercorn fishsteaks are famous on this little isle of ours!
|
||||
InProgressMessage =
|
||||
1075559; // Eh? Find yerself a pole and get close to some water. Just toss the line on in and hopefully you won't snag someone's old boots! Remember, that's twenty of them green fish we'll be needin', so come back when you've got em, 'aight?
|
||||
CompletionMessage =
|
||||
1075560; // Just a moment my friend, just a moment! *rummages in his pack* Here we are! My secret blend of peppers always does the trick, never fails, no not once. These'll fill you up much faster than that tripe they sell in the market!
|
||||
|
||||
Objectives.Add(new CollectObjective(5, typeof(Fish), 1022508)); // fish
|
||||
|
||||
Rewards.Add(new ItemReward(1075557, typeof(PeppercornFishsteak), 3)); // peppercorn fishsteak
|
||||
}
|
||||
}
|
||||
|
||||
public class FleeAndFatigue : MLQuest
|
||||
{
|
||||
public FleeAndFatigue()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075487; // Flee and Fatigue
|
||||
Description =
|
||||
1075488; // I was just *coughs* ambushed near the moongate. *wheeze* Why do I pay my taxes? Where were the guards? You then, you an Alchemist? If you can make me a few Refresh potions, I will be back on my feet and can give those lizards the what for! Find a mortar and pestle, a good amount of black pearl, and ten empty bottles to store the finished potions in. Just use the mortar and pestle and the rest will surely come to you. When you return, the favor will be repaid.
|
||||
RefusalMessage =
|
||||
1075489; // Fine fine, off with *cough* thee then! The next time you see a lizardman though, give him a whallop for me, eh?
|
||||
InProgressMessage =
|
||||
1075490; // Just remember you need to use your mortar and pestle while you have empty bottles and some black pearl. Refresh potions are what I need.
|
||||
CompletionMessage =
|
||||
1075491; // *glug* *glug* Ahh... Yes! Yes! That feels great! Those lizardmen will never know what hit 'em! Here, take this, I can get more from the lizards.
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(RefreshPotion), "refresh potions"));
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(SadrahSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
public class ChopChopOnTheDouble : MLQuest
|
||||
{
|
||||
public ChopChopOnTheDouble()
|
||||
{
|
||||
Activated = true;
|
||||
HasRestartDelay = true;
|
||||
Title = 1075537; // Chop Chop, On The Double!
|
||||
Description =
|
||||
1075538; // That's right, move it! I need sixty logs on the double, and they need to be freshly cut! If you can get them to me fast I'll have your payment in your hands before you have the scent of pine out from beneath your nostrils. Just get a sharp axe and hack away at some of the trees in the land and your lumberjacking skill will rise in no time.
|
||||
RefusalMessage = 1072981; // Or perhaps you'd rather not.
|
||||
InProgressMessage = 1072271; // You're not quite done yet. Get back to work!
|
||||
CompletionMessage =
|
||||
1075539; // Ahhh! The smell of fresh cut lumber. And look at you, all strong and proud, as if you had done an honest days work!
|
||||
|
||||
Objectives.Add(new CollectObjective(60, typeof(Log), 1027133)); // log
|
||||
|
||||
Rewards.Add(new ItemReward(1074282, typeof(HargroveSatchel))); // Craftsmans's Satchel
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Andric : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Andric() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the archer trainer";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Archery, 60.0, 80.0);
|
||||
|
||||
AddItem(new Backpack());
|
||||
|
||||
Item item;
|
||||
|
||||
item = new LeatherChest();
|
||||
item.Hue = 0x1BB;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherLegs();
|
||||
item.Hue = 0x6AD;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherArms();
|
||||
item.Hue = 0x6AD;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherGloves();
|
||||
item.Hue = 0x1BB;
|
||||
AddItem(item);
|
||||
|
||||
AddItem(new Boots(0x1BB));
|
||||
AddItem(new CompositeBow());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Andric";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213 // Hey buddy. Looking for work?
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Kashiel : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Kashiel() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the archer";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
|
||||
Item item;
|
||||
|
||||
item = new LeatherChest();
|
||||
item.Hue = 0x1BB;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherLegs();
|
||||
item.Hue = 0x901;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherArms();
|
||||
item.Hue = 0x901;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeatherGloves();
|
||||
item.Hue = 0x1BB;
|
||||
AddItem(item);
|
||||
|
||||
AddItem(new Boots(0x1BB));
|
||||
AddItem(new CompositeBow());
|
||||
}
|
||||
|
||||
public override string DefaultName => "Kashiel";
|
||||
public override bool IsInvulnerable => true;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Asandos : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Asandos() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the chef";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x901));
|
||||
AddItem(new ShortPants());
|
||||
AddItem(new Shirt());
|
||||
AddItem(new Cap());
|
||||
AddItem(new HalfApron(0x28));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Asandos";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213 // Hey buddy. Looking for work?
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Clairesse : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Clairesse() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the servant";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Shoes(Utility.RandomNeutralHue()));
|
||||
AddItem(new PlainDress(0x3C9));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Clarisse";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213 // Hey buddy. Looking for work?
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Gervis : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Gervis() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the blacksmith trainer";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Blacksmith, 60.0, 80.0);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x3B3));
|
||||
AddItem(new ShortPants(0x1BB));
|
||||
AddItem(new Doublet(0x652));
|
||||
AddItem(new SmithHammer());
|
||||
|
||||
AddItem(new LeatherGloves
|
||||
{
|
||||
Hue = 0x3B2
|
||||
});
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Gervis";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213, // Hey buddy. Looking for work?
|
||||
1074211 // I could use some help.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Mugg : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Mugg() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the miner";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x901));
|
||||
AddItem(new ShortPants(0x3B3));
|
||||
AddItem(new Shirt(0x22B));
|
||||
AddItem(new HalfApron(0x5F1));
|
||||
AddItem(new SkullCap(0x177));
|
||||
AddItem(new Pickaxe());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Mugg";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074211); // I could use some help.
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Lowel : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Lowel() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the carpenter";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x543));
|
||||
AddItem(new ShortPants(0x758));
|
||||
AddItem(new FancyShirt(0x53A));
|
||||
AddItem(new HalfApron(0x6D2));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Lowel";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213 // Hey buddy. Looking for work?
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Lyle : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Lyle() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the mage";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Robe(0x2FD));
|
||||
AddItem(new ThighBoots());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Lyle";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213 // Hey buddy. Looking for work?
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Nibbet : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Nibbet() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the tinker";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x591));
|
||||
AddItem(new ShortPants(0xF8));
|
||||
AddItem(new Shirt(0x2D));
|
||||
AddItem(new FullApron(0x288));
|
||||
}
|
||||
|
||||
public override string DefaultName => "Nibbet";
|
||||
public override bool IsInvulnerable => true;
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Norton : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Norton() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the fisher";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new ThighBoots());
|
||||
AddItem(new LongPants(0x6C2));
|
||||
AddItem(new Shirt(0x11D));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Norton";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213, // Hey buddy. Looking for work?
|
||||
1074211 // I could use some help.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Sadrah : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Sadrah() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the courier";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x901));
|
||||
AddItem(new Skirt(0x52));
|
||||
AddItem(new Shirt(0x127));
|
||||
AddItem(new Cloak(0x65));
|
||||
AddItem(new Longsword());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Sadrah";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074205, // Oh great adventurer, would you please assist a weak soul in need of aid?
|
||||
1074213, // Hey buddy. Looking for work?
|
||||
1074211 // I could use some help.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Hargrove : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Hargrove() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Lumberjack";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Boots(0x901));
|
||||
AddItem(new StuddedLegs());
|
||||
AddItem(new Shirt(0x288));
|
||||
AddItem(new Bandana(0x20));
|
||||
AddItem(new BattleAxe());
|
||||
|
||||
AddItem(new PlateGloves
|
||||
{
|
||||
Hue = 0x21E
|
||||
});
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Hargrove";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074213, // Hey buddy. Looking for work?
|
||||
1074211 // I could use some help.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,667 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public static class Spellweaving
|
||||
{
|
||||
public static void AwardTo(PlayerMobile pm)
|
||||
{
|
||||
if (pm == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var context = MLQuestSystem.GetOrCreateContext(pm);
|
||||
|
||||
if (!context.Spellweaving)
|
||||
{
|
||||
context.Spellweaving = true;
|
||||
|
||||
Effects.SendLocationParticles(
|
||||
EffectItem.Create(pm.Location, pm.Map, EffectItem.DefaultDuration),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
5060,
|
||||
0
|
||||
);
|
||||
Effects.PlaySound(pm.Location, pm.Map, 0x243);
|
||||
|
||||
Effects.SendMovingParticles(
|
||||
new Entity(Serial.Zero, new Point3D(pm.X - 6, pm.Y - 6, pm.Z + 15), pm.Map),
|
||||
pm,
|
||||
0x36D4,
|
||||
7,
|
||||
0,
|
||||
false,
|
||||
true,
|
||||
0x497,
|
||||
0,
|
||||
9502,
|
||||
1,
|
||||
0,
|
||||
(EffectLayer)255,
|
||||
0x100
|
||||
);
|
||||
Effects.SendMovingParticles(
|
||||
new Entity(Serial.Zero, new Point3D(pm.X - 4, pm.Y - 6, pm.Z + 15), pm.Map),
|
||||
pm,
|
||||
0x36D4,
|
||||
7,
|
||||
0,
|
||||
false,
|
||||
true,
|
||||
0x497,
|
||||
0,
|
||||
9502,
|
||||
1,
|
||||
0,
|
||||
(EffectLayer)255,
|
||||
0x100
|
||||
);
|
||||
Effects.SendMovingParticles(
|
||||
new Entity(Serial.Zero, new Point3D(pm.X - 6, pm.Y - 4, pm.Z + 15), pm.Map),
|
||||
pm,
|
||||
0x36D4,
|
||||
7,
|
||||
0,
|
||||
false,
|
||||
true,
|
||||
0x497,
|
||||
0,
|
||||
9502,
|
||||
1,
|
||||
0,
|
||||
(EffectLayer)255,
|
||||
0x100
|
||||
);
|
||||
|
||||
Effects.SendTargetParticles(pm, 0x375A, 35, 90, 0x00, 0x00, 9502, (EffectLayer)255, 0x100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Patience : MLQuest
|
||||
{
|
||||
public Patience()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072753; // Patience
|
||||
Description =
|
||||
1072762; // Learning to weave spells and control the forces of nature requires sacrifice, discipline, focus, and an unwavering dedication to Sosaria herself. We do not teach the unworthy. They do not comprehend the lessons nor the dedication required. If you would walk the path of the Arcanist, then you must do as I require without hesitation or question. Your first task is to gather miniature mushrooms ... 20 of them from the branches of our mighty home. I give you one hour to complete the task.
|
||||
RefusalMessage = 1072767; // *nods* Not everyone has the temperment to undertake the way of the Arcanist.
|
||||
InProgressMessage =
|
||||
1072774; // The mushrooms I seek can be found growing here in The Heartwood. Seek them out and gather them. You are running out of time.
|
||||
CompletionMessage = 1074166; // Have you gathered the mushrooms?
|
||||
|
||||
Objectives.Add(
|
||||
new TimedCollectObjective(
|
||||
TimeSpan.FromHours(1),
|
||||
20,
|
||||
typeof(MiniatureMushroom),
|
||||
"miniature mushrooms"
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(NeedsOfTheManyHeartwood1);
|
||||
}
|
||||
|
||||
public class NeedsOfTheManyHeartwood1 : MLQuest
|
||||
{
|
||||
public NeedsOfTheManyHeartwood1()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072797; // Needs of the Many - The Heartwood
|
||||
Description =
|
||||
1072763; // The way of the Arcanist involves cooperation with others and a strong commitment to the community of your people. We have run low on the cotton we use to pack wounds and our people have need. Bring 10 bales of cotton to me.
|
||||
RefusalMessage = 1072768; // You endanger your progress along the path with your unwillingness.
|
||||
InProgressMessage = 1072775; // I care not where you acquire the cotton, merely that you provide it.
|
||||
CompletionMessage = 1074110; // Well, where are the cotton bales?
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(Cotton), 1023577)); // bale of cotton
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(NeedsOfTheManyHeartwood2);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class NeedsOfTheManyHeartwood2 : MLQuest
|
||||
{
|
||||
public NeedsOfTheManyHeartwood2()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072797; // Needs of the Many - The Heartwood
|
||||
Description = 1072764; // We must look to the defense of our people! Bring boards for new arrows.
|
||||
RefusalMessage =
|
||||
1072769; // The people have need of these items. You are proving yourself inadequate to the demands of a member of this community.
|
||||
InProgressMessage = 1072776; // The requirements are simple -- 250 boards.
|
||||
CompletionMessage = 1074152; // Well, where are the boards?
|
||||
|
||||
Objectives.Add(new CollectObjective(250, typeof(Board), 1027127)); // board
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(MakingAContributionHeartwood);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class MakingAContributionHeartwood : MLQuest
|
||||
{
|
||||
public MakingAContributionHeartwood()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072798; // Making a Contribution - The Heartwood
|
||||
Description =
|
||||
1072765; // With health and defense assured, we need look to the need of the community for food and drink. We will feast on fish steaks, sweets, and wine. You will supply the ingredients, the cooks will prepare the meal. As a Arcanist relies upon others to build focus and lend their power to her workings, the community needs the effort of all to survive.
|
||||
RefusalMessage = 1072770; // Do not falter now. You have begun to show promise.
|
||||
InProgressMessage = 1072777; // Where are the items you've been tasked to supply for the feast?
|
||||
CompletionMessage = 1074158; // Ah good, you're back. We're eager for the feast.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(SackFlour), 1024153)); // sack of flour
|
||||
Objectives.Add(new CollectObjective(10, typeof(JarHoney), 1022540)); // jar of honey
|
||||
Objectives.Add(new CollectObjective(20, typeof(FishSteak), 1022427)); // fish steak
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(UnnaturalCreations);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class UnnaturalCreations : MLQuest
|
||||
{
|
||||
public UnnaturalCreations()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072758; // Unnatural Creations
|
||||
Description =
|
||||
1072780; // You have proven your desire to contribute to the community and serve the people. Now you must demonstrate your willingness to defend Sosaria from the greatest blight that plagues her. Unnatural creatures, brought to a sort of perverted life, despoil our fair world. Destroy them -- 5 Exodus Overseers and 2 Exodus Minions.
|
||||
RefusalMessage =
|
||||
1072771; // You must serve Sosaria with all your heart and strength. Your unwillingness does not reflect favorably upon you.
|
||||
InProgressMessage = 1072779; // Every moment you procrastinate, these unnatural creatures damage Sosaria.
|
||||
CompletionMessage = 1074167; // Well done! Well done, indeed. You are worthy to become an arcanist!
|
||||
|
||||
Objectives.Add(new KillObjective(5, new[] { typeof(ExodusOverseer) }, "Exodus Overseers"));
|
||||
Objectives.Add(new KillObjective(2, new[] { typeof(ExodusMinion) }, "Exodus Minions"));
|
||||
|
||||
Rewards.Add(new ItemReward(1031601, typeof(ArcaneCircleScroll))); // Arcane Circle
|
||||
Rewards.Add(new ItemReward(1031600, typeof(SpellweavingBook))); // Spellweaving Spellbook
|
||||
Rewards.Add(new ItemReward(1031602, typeof(GiftOfRenewalScroll))); // Gift of Renewal
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
Spellweaving.AwardTo(instance.Player);
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
|
||||
public class Discipline : MLQuest
|
||||
{
|
||||
public Discipline()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072752; // Discipline
|
||||
Description =
|
||||
1072761; // Learning to weave spells and control the forces of nature requires sacrifice, discipline, focus, and an unwavering dedication to Sosaria herself. We do not teach the unworthy. They do not comprehend the lessons nor the dedication required. If you would walk the path of the Arcanist, then you must do as I require without hesitation or question. Your first task is to rid our home of rats ... 50 of them in the next hour.
|
||||
RefusalMessage = 1072767; // *nods* Not everyone has the temperament to undertake the way of the Arcanist.
|
||||
InProgressMessage = 1072773; // You waste my time. The task is simple. Kill 50 rats in an hour.
|
||||
// No completion message
|
||||
|
||||
Objectives.Add(
|
||||
new TimedKillObjective(
|
||||
TimeSpan.FromHours(1),
|
||||
50,
|
||||
new[] { typeof(Rat) },
|
||||
"rats",
|
||||
new QuestArea(1074807, "Sanctuary")
|
||||
)
|
||||
);
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(NeedsOfTheManySanctuary);
|
||||
}
|
||||
|
||||
public class NeedsOfTheManySanctuary : MLQuest
|
||||
{
|
||||
public NeedsOfTheManySanctuary()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072754; // Needs of the Many - Sanctuary
|
||||
Description =
|
||||
1072763; // The way of the Arcanist involves cooperation with others and a strong commitment to the community of your people. We have run low on the cotton we use to pack wounds and our people have need. Bring 10 bales of cotton to me.
|
||||
RefusalMessage = 1072768; // You endanger your progress along the path with your unwillingness.
|
||||
InProgressMessage = 1072775; // I care not where you acquire the cotton, merely that you provide it.
|
||||
CompletionMessage = 1074110; // Well, where are the cotton bales?
|
||||
|
||||
Objectives.Add(new CollectObjective(10, typeof(Cotton), 1023577)); // bale of cotton
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(MakingAContributionSanctuary);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class MakingAContributionSanctuary : MLQuest
|
||||
{
|
||||
public MakingAContributionSanctuary()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072755; // Making a Contribution - Sanctuary
|
||||
Description = 1072764; // We must look to the defense of our people! Bring boards for new arrows.
|
||||
RefusalMessage =
|
||||
1072769; // The people have need of these items. You are proving yourself inadequate to the demands of a member of this community.
|
||||
InProgressMessage = 1072776; // The requirements are simple -- 250 boards.
|
||||
CompletionMessage = 1074152; // Well, where are the boards?
|
||||
|
||||
Objectives.Add(new CollectObjective(250, typeof(Board), 1027127)); // board
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(SuppliesForSanctuary);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class SuppliesForSanctuary : MLQuest
|
||||
{
|
||||
public SuppliesForSanctuary()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072756; // Supplies for Sanctuary
|
||||
Description =
|
||||
1072765; // With health and defense assured, we need look to the need of the community for food and drink. We will feast on fish steaks, sweets, and wine. You will supply the ingredients, the cooks will prepare the meal. As a Arcanist relies upon others to build focus and lend their power to her workings, the community needs the effort of all to survive.
|
||||
RefusalMessage = 1072770; // Do not falter now. You have begun to show promise.
|
||||
InProgressMessage = 1072777; // Where are the items you've been tasked to supply for the feast?
|
||||
CompletionMessage = 1074158; // Ah good, you're back. We're eager for the feast.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(SackFlour), 1024153)); // sack of flour
|
||||
Objectives.Add(new CollectObjective(10, typeof(JarHoney), 1022540)); // jar of honey
|
||||
Objectives.Add(new CollectObjective(20, typeof(FishSteak), 1022427)); // fish steak
|
||||
|
||||
Rewards.Add(new DummyReward(1074872)); // The opportunity to learn the ways of the Arcanist.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(TheHumanBlight);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class TheHumanBlight : MLQuest
|
||||
{
|
||||
public TheHumanBlight()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1072757; // The Human Blight
|
||||
Description =
|
||||
1072766; // You have proven your desire to contribute to the community and serve the people. Now you must demonstrate your willingness to defend Sosaria from the greatest blight that plagues her. The human vermin that have spread as a disease, despoiling the land are the greatest blight we face. Kill humans and return to me the proof of your actions. Bring me 30 human ears.
|
||||
RefusalMessage =
|
||||
1072771; // You must serve Sosaria with all your heart and strength. Your unwillingness does not reflect favorably upon you.
|
||||
InProgressMessage = 1072778; // Why do you delay? The human blight must be averted.
|
||||
CompletionMessage = 1074160; // I will take the ears you have collected now. Hand them here.
|
||||
|
||||
Objectives.Add(new CollectObjective(30, typeof(SeveredHumanEars), 1032591)); // severed human ears
|
||||
|
||||
Rewards.Add(new ItemReward(1031601, typeof(ArcaneCircleScroll))); // Arcane Circle
|
||||
Rewards.Add(new ItemReward(1031600, typeof(SpellweavingBook))); // Spellweaving Spellbook
|
||||
Rewards.Add(new ItemReward(1031602, typeof(GiftOfRenewalScroll))); // Gift of Renewal
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
Spellweaving.AwardTo(instance.Player);
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
|
||||
public class FriendOfTheFey : MLQuest
|
||||
{
|
||||
public FriendOfTheFey()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074284; // Friend of the Fey
|
||||
Description =
|
||||
1074286; // The children of Sosaria understand the dedication and committment of an arcanist -- and will, from time to time offer their friendship. If you would forge such a bond, first seek out a goodwill offering to present. Pixies enjoy sweets and pretty things.
|
||||
RefusalMessage = 1074288; // There's always time to make new friends.
|
||||
InProgressMessage = 1074290; // I think honey and some sparkly beads would please a pixie.
|
||||
CompletionMessage = 1074292; // What have we here? Oh yes, gifts for a pixie.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(Beads), 1024235)); // beads
|
||||
Objectives.Add(new CollectObjective(1, typeof(JarHoney), 1022540)); // jar of honey
|
||||
|
||||
// The opportunity to prove yourself worthy of learning to Summon Fey. (Sufficient spellweaving skill is required to cast the spell)
|
||||
Rewards.Add(new DummyReward(1074874));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(TokenOfFriendship);
|
||||
}
|
||||
|
||||
public class TokenOfFriendship : MLQuest
|
||||
{
|
||||
public TokenOfFriendship()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074293; // Token of Friendship
|
||||
Description =
|
||||
1074297; // I've wrapped your gift suitably to present to a pixie of discriminating taste. Seek out Arielle and give her your offering.
|
||||
RefusalMessage = 1074310; // I'll hold onto this gift in case you change your mind.
|
||||
InProgressMessage =
|
||||
1074315; // Arielle wanders quite a bit, so I'm not sure exactly where to find her. I'm sure she's going to love your gift.
|
||||
CompletionMessage = 1074319; // *giggle* Oooh! For me?
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(GiftForArielle), 1, "gift for Arielle", typeof(Arielle)));
|
||||
|
||||
// The opportunity to prove yourself worthy of learning to Summon Fey. (Sufficient spellweaving skill is required to cast the spell)
|
||||
Rewards.Add(new DummyReward(1074874));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(Alliance);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class Alliance : MLQuest
|
||||
{
|
||||
public Alliance()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074294; // Alliance
|
||||
Description = 1074298; // *giggle* Mean reapers make pixies unhappy. *light-hearted giggle* You could fix them!
|
||||
RefusalMessage = 1074311; // *giggle* Okies!
|
||||
InProgressMessage = 1074316; // Mean reapers are all around trees! *giggle* You fix them up, please.
|
||||
CompletionNotice = CompletionNoticeShortReturn;
|
||||
|
||||
Objectives.Add(new KillObjective(20, new[] { typeof(Reaper) }, "reapers"));
|
||||
|
||||
Rewards.Add(new ItemReward(1031607, typeof(SummonFeyScroll))); // Summon Fey
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
instance.PlayerContext.SummonFey = true;
|
||||
// *giggle* Mean reapers got fixed! Pixie friend now! *giggle* When mean thingies bother you, a brave pixie will help.
|
||||
instance.Player.SendLocalizedMessage(1074320, "", 0x2A);
|
||||
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
|
||||
public class FiendishFriends : MLQuest
|
||||
{
|
||||
public FiendishFriends()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074283; // Fiendish Friends
|
||||
Description =
|
||||
1074285; // It is true that a skilled arcanist can summon and dominate an imp to serve at their pleasure. To do such at thing though, you must master the miserable little fiends utterly by demonstrating your superiority. Rough them up some -- kill a few. That will do the trick.
|
||||
RefusalMessage = 1074287; // You're probably right. They're not worth the effort.
|
||||
InProgressMessage = 1074289; // Surely you're not having difficulties swatting down those annoying pests?
|
||||
// TODO: Verify
|
||||
CompletionMessage = 1074291; // Hah! You showed them!
|
||||
|
||||
Objectives.Add(new KillObjective(50, new[] { typeof(Imp) }, "imps"));
|
||||
|
||||
// The opportunity to prove yourself worthy of learning to Summon Fiends.
|
||||
// (Sufficient spellweaving skill is required to cast the spell)
|
||||
Rewards.Add(new DummyReward(107487));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(CrackingTheWhipI);
|
||||
}
|
||||
|
||||
// TODO: Verify
|
||||
public class CrackingTheWhipI : MLQuest
|
||||
{
|
||||
public CrackingTheWhipI()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074295; // Cracking the Whip
|
||||
Description =
|
||||
1074300; // Now that you've shown those mini pests your might, you should collect suitable implements to use to train your summoned pet. I suggest a stout whip.
|
||||
RefusalMessage = 1074313; // Heh. Changed your mind, eh?
|
||||
InProgressMessage =
|
||||
1074317; // Well, hurry up. If you don't get a whip how do you expect to control the little devil?
|
||||
CompletionMessage = 1074321; // That's a well-made whip. No imp will ignore the sting of that lash.
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(StoutWhip), "Stout Whip"));
|
||||
|
||||
// The opportunity to prove yourself worthy of learning to Summon Fiends. (Sufficient spellweaving skill is required to cast the spell)
|
||||
Rewards.Add(new DummyReward(1074873));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(CrackingTheWhipII);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
// TODO: Verify
|
||||
public class CrackingTheWhipII : MLQuest
|
||||
{
|
||||
public CrackingTheWhipII()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074295; // Cracking the Whip
|
||||
Description =
|
||||
1074302; // Now you just need to make the little buggers fear you -- if you can slay an arcane daemon, you'll earn their subservience.
|
||||
RefusalMessage = 1074314; // If you're not up for it, so be it.
|
||||
InProgressMessage = 1074318; // You need to vanquish an arcane daemon before the imps will fear you properly.
|
||||
|
||||
Objectives.Add(new KillObjective(1, new[] { typeof(ArcaneDaemon) }, 1029733)); // arcane demon
|
||||
|
||||
Rewards.Add(new ItemReward(1031608, typeof(SummonFiendScroll))); // Summon Fiend
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
|
||||
public override void GetRewards(MLQuestInstance instance)
|
||||
{
|
||||
instance.PlayerContext.SummonFiend = true;
|
||||
// You've demonstrated your strength, got a means of control, and taught the imps to fear you.
|
||||
// You're ready now to summon them.
|
||||
instance.Player.SendLocalizedMessage(1074322, "", 0x2A);
|
||||
|
||||
base.GetRewards(instance);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Aeluva (The Heartwood)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Aeluva : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Aeluva() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the arcanist";
|
||||
Race = Race.Elf;
|
||||
Female = true;
|
||||
Body = 606;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
|
||||
AddItem(new ElvenShirt());
|
||||
AddItem(new Kilt(Utility.RandomNondyedHue())); // Note: OSI hue = 0x1516, typo?
|
||||
AddItem(new ElvenBoots());
|
||||
AddItem(new Circlet());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Aeluva";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
/*
|
||||
* 1074206 - Excuse me please traveler, might I have a little of your time?
|
||||
* 1074207 - Good day to you friend! Allow me to offer you a fabulous opportunity! Thrills and adventure await!
|
||||
*/
|
||||
MLQuestSystem.Tell(this, pm, Utility.Random(1074206, 2));
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Koole (Sanctuary)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Koole : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Koole() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the arcanist";
|
||||
Race = Race.Elf;
|
||||
Body = 605;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
|
||||
Item item;
|
||||
|
||||
item = new LeafChest();
|
||||
item.Hue = 443;
|
||||
AddItem(item);
|
||||
|
||||
item = new LeafArms();
|
||||
item.Hue = 443;
|
||||
AddItem(item);
|
||||
|
||||
AddItem(new LeafTonlet());
|
||||
AddItem(new ThighBoots(Utility.RandomAnimalHue()));
|
||||
AddItem(new RoyalCirclet());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Koole";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074186, // Come here, I have a task.
|
||||
1074218 // Hey! I want to talk to you, now.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Synaeva (The Heartwood)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Synaeva : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Synaeva() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the arcanist";
|
||||
Race = Race.Elf;
|
||||
Female = true;
|
||||
Body = 606;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
|
||||
AddItem(new RavenHelm
|
||||
{
|
||||
Hue = Utility.RandomGreenHue()
|
||||
});
|
||||
|
||||
AddItem(new FemaleLeafChest());
|
||||
AddItem(new LeafArms());
|
||||
AddItem(new LeafTonlet());
|
||||
AddItem(new ElvenBoots());
|
||||
AddItem(new WildStaff());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Synaeva";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074223); // Have you done it yet? Oh, I haven’t told you, have I?
|
||||
}
|
||||
}
|
||||
|
||||
[QuesterName("Elder Brae (Sanctuary)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ElderBrae : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public ElderBrae() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the wise";
|
||||
Race = Race.Elf;
|
||||
Female = true;
|
||||
Body = 606;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
|
||||
AddItem(new GemmedCirclet());
|
||||
AddItem(new FemaleElvenRobe(Utility.RandomBrightHue()));
|
||||
AddItem(new ElvenBoots(Utility.RandomAnimalHue()));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Elder Brae";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(
|
||||
this,
|
||||
pm,
|
||||
Utility.RandomList(
|
||||
1074215, // Don’t test my patience you sniveling worm!
|
||||
1074218 // Hey! I want to talk to you, now.
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,133 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class TheAncientWorld : MLQuest
|
||||
{
|
||||
public TheAncientWorld()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074534; // The Ancient World
|
||||
Description =
|
||||
1074535; // The lore of my people mentions Mondain many times. In one tale, it is revealed that he created and enslaved a race -- a sort of man bull, known as a 'minotaur'. The tales speak of mighty warriors who charged with blood-soaked horns into the heat of battle. But, alas, the fate of the bull-men is unknown after the rupture. Will you seek information about their civilization?
|
||||
RefusalMessage = 1074538; // I am disappointed, but I respect your decision.
|
||||
InProgressMessage =
|
||||
1074539; // A traveler has told me that worshippers of Mondain still exist and wander the land. Perhaps their lore speaks of whether the bull-men survived. I do not think they share their secrets gladly. You may need to be 'persuasive'.
|
||||
CompletionMessage = 1074542; // What have you found?
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(FragmentOfAMap), "fragment of a map"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(TheGoldenHorn);
|
||||
}
|
||||
|
||||
public class TheGoldenHorn : MLQuest
|
||||
{
|
||||
public TheGoldenHorn()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074543; // The Golden Horn
|
||||
Description =
|
||||
1074545; // Ah ha! You see here ... and over here ... The map fragment places the city of the bull-men, Labyrinth, on that piece of Sosaria that was thrown into the sky. Hmmm, I would have you go there and find any artifacts that remain that help tell the story. But, legend speaks of a mighty barrier to prevent invasion of the city. Take this map to Braen and explain the problem. Perhaps he can devise a solution.
|
||||
RefusalMessage = 1074538; // I am disappointed, but I respect your decision.
|
||||
InProgressMessage = 1074547; // Braen is nearby, run and speak with him.
|
||||
CompletionMessage = 1074549; // Yes? What do you want? I'm very busy.
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(FragmentOfAMapDelivery), 1, "fragment of a map", typeof(Braen)));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(Bullish);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class Bullish : MLQuest
|
||||
{
|
||||
public Bullish()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074550; // Bullish
|
||||
Description =
|
||||
1074552; // Oh, I see. I will need some materials to infuse you with the essence of a bull-man, so you can fool their defenses. The most similar beast to the original Baratarian bull that the minotaur were bred from is undoubtedly the mighty Gaman, native to the Lands of the Feudal Lords. I need horns, in great quantity to undertake this magic.
|
||||
RefusalMessage = 1074554; // Oh come now, don't be afraid. The magic won't harm you.
|
||||
InProgressMessage =
|
||||
1074555; // I cannot grant you the ability to pass through the bull-men's defenses without the gaman horns.
|
||||
CompletionMessage =
|
||||
1074556; // You've returned at last! Give me just a moment to examine what you've brought and I can perform the magic that will allow you enter the Labyrinth.
|
||||
|
||||
Objectives.Add(new CollectObjective(20, typeof(GamanHorns), "gaman horns"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(LostCivilization);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class LostCivilization : MLQuest
|
||||
{
|
||||
public LostCivilization()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074823; // Lost Civilization
|
||||
Description =
|
||||
1074825; // *whew* It is done! The fierce essence of the bull has been infused into your aura. You are able now to breach the ancient defenses of the city. Go forth and seek the minotaur -- and then return with wonderous tales and evidence of your visit to the Labyrinth.
|
||||
RefusalMessage =
|
||||
1074827; // As you wish. I can't understand why you'd pass up such a remarkable opportunity. Think of the adventures you would have.
|
||||
InProgressMessage =
|
||||
1074828; // You won't reach the minotaur city by loitering around here! What are you waiting for? You need to get to Malas and find the access point for the island. You'll be renowned for your discovery!
|
||||
CompletionMessage =
|
||||
1074829; // Oh! You've returned at last! I can't wait to hear the tales ... but first, let me see those artifacts. You've certainly earned this reward.
|
||||
|
||||
Objectives.Add(new CollectObjective(3, typeof(MinotaurArtifact), "minotaur artifacts"));
|
||||
|
||||
Rewards.Add(ItemReward.Strongbox);
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[QuesterName("Broolol (The Heartwood)")]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class LorekeeperBroolol : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public LorekeeperBroolol() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the keeper of tradition";
|
||||
Race = Race.Elf;
|
||||
Body = 0x25E;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetSkill(SkillName.Meditation, 60.0, 80.0);
|
||||
SetSkill(SkillName.Focus, 60.0, 80.0);
|
||||
|
||||
AddItem(new ElvenBoots(0x70D));
|
||||
AddItem(new FemaleElvenRobe(0x3A));
|
||||
AddItem(new WildStaff());
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override bool CanTeach => true;
|
||||
public override string DefaultName => "Lorekeeper Broolol";
|
||||
public override bool CanShout => true;
|
||||
|
||||
public override void Shout(PlayerMobile pm)
|
||||
{
|
||||
MLQuestSystem.Tell(this, pm, 1074200); // Thank goodness you are here, there's no time to lose.
|
||||
}
|
||||
}
|
||||
|
|
@ -1,131 +0,0 @@
|
|||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
public class TownEscort : BaseEscort
|
||||
{
|
||||
// Escort reward
|
||||
private static readonly BaseReward m_Reward = new ItemReward("Gold", typeof(Gold), 500);
|
||||
|
||||
public TownEscort(int title, int progress, int destination, string region)
|
||||
{
|
||||
Activated = true;
|
||||
Title = title;
|
||||
Description =
|
||||
1072287; // I seek a worthy escort. I can offer some small pay to any able bodied adventurer who can assist me. It is imperative that I reach my destination.
|
||||
RefusalMessage =
|
||||
1072288; // I wish you would reconsider my offer. I'll be waiting right here for someone brave enough to assist me.
|
||||
InProgressMessage = progress;
|
||||
|
||||
Objectives.Add(new EscortObjective(new QuestArea(destination, region)));
|
||||
|
||||
Rewards.Add(m_Reward);
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToYew : TownEscort
|
||||
{
|
||||
public EscortToYew()
|
||||
: base(1072275, 1072289, 1072227, "Yew")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToVesper : TownEscort
|
||||
{
|
||||
public EscortToVesper()
|
||||
: base(1072276, 1072290, 1072229, "Vesper")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToTrinsic : TownEscort
|
||||
{
|
||||
public EscortToTrinsic()
|
||||
: base(1072277, 1072291, 1072236, "Trinsic")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToSkaraBrae : TownEscort
|
||||
{
|
||||
public EscortToSkaraBrae()
|
||||
: base(1072278, 1072292, 1072235, "Skara Brae")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToSerpentsHold : TownEscort
|
||||
{
|
||||
public EscortToSerpentsHold()
|
||||
: base(1072279, 1072293, 1072238, "Serpent's Hold")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToNujelm : TownEscort
|
||||
{
|
||||
public EscortToNujelm()
|
||||
: base(1072280, 1072294, 1072237, "Nujel'm")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToMoonglow : TownEscort
|
||||
{
|
||||
public EscortToMoonglow()
|
||||
: base(1072281, 1072295, 1072232, "Moonglow")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToMinoc : TownEscort
|
||||
{
|
||||
public EscortToMinoc()
|
||||
: base(1072282, 1072296, 1072228, "Minoc")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToMagincia : TownEscort
|
||||
{
|
||||
public EscortToMagincia()
|
||||
: base(1072283, 1072297, 1072233, "Magincia")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToJhelom : TownEscort
|
||||
{
|
||||
public EscortToJhelom()
|
||||
: base(1072284, 1072298, 1072239, "Jhelom")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToCove : TownEscort
|
||||
{
|
||||
public EscortToCove()
|
||||
: base(1072285, 1072299, 1072230, "Cove")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToBritain : TownEscort
|
||||
{
|
||||
public EscortToBritain()
|
||||
: base(1072286, 1072300, 1072231, "Britain")
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class EscortToOcllo : TownEscort
|
||||
{
|
||||
public EscortToOcllo()
|
||||
: base(1072312, 1072313, 1072234, "Ocllo")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,138 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions;
|
||||
|
||||
public class UnfadingMemoriesPartOne : MLQuest
|
||||
{
|
||||
public UnfadingMemoriesPartOne()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075355; // Unfading Memories
|
||||
// Aargh! It's just not right! It doesn't capture the unique color of her hair at all! If only I had some Prismatic Amber. That would be perfect. They used to mine it in Malas, but alas, those veins ran dry some time ago. I hear it may have been found in the Prism of Light. Oh, if only there were a bold adventurer within earshot who would go to the Prism of Light and retrieve some for me!
|
||||
Description = 1075356;
|
||||
RefusalMessage = 1075358; // Is there no one who can help a humble artist pursue his Muse?
|
||||
// You can find Prismatic Amber in the Prism of Light, located just north of the city of Nujel'm.
|
||||
InProgressMessage = 1075359;
|
||||
// I knew it! See, it's just the color I needed! Look how it brings out the highlights of her wheaten tresses!
|
||||
CompletionMessage = 1075360;
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(PrismaticAmber), "Prismatic Amber"));
|
||||
|
||||
// The joy of contributing to a noble artistic effort, however paltry the end product.
|
||||
Rewards.Add(new DummyReward(1075357));
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(UnfadingMemoriesPartTwo);
|
||||
}
|
||||
|
||||
public class UnfadingMemoriesPartTwo : MLQuest
|
||||
{
|
||||
public UnfadingMemoriesPartTwo()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1075367; // Unfading Memories
|
||||
// Finished! With the pigment I was able to create from the Prismatic Amber you brought me, I was able to complete my humble work. I should explain. Once, I loved a noble lady of gentleness and refinement, who possessed such beauty that I have found myself unable to love another to this day. But it was from afar that I admired her, for it is not for one so lowly as I to pay court to the likes of her. You have heard of the fair Thalia, Lady of Nujel'm? No? Well, she was my Muse, my inspiration, and when I heard she was to be married, I lost whatever pitiful talent I possessed. I felt I must compose a portrait of her, my masterpiece, or I would never be able to paint again. You, my friend, have helped me complete my work. Now I ask another favor of you. Will you take it to her as a wedding gift? She will probably reject it, but I must make the offer.
|
||||
Description = 1075368;
|
||||
// Alright then, you have already helped me more than I deserved. I shall find someone else to undertake this task.
|
||||
RefusalMessage = 1075370;
|
||||
// The wedding is taking place in the palace in Nujel'm. You will likely find her there.
|
||||
InProgressMessage = 1075371;
|
||||
// I'm sorry, I'm getting ready to be married. I don't have time to . . . what's that you say?
|
||||
CompletionMessage = 1075372;
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(PortraitOfTheBride), 1, "Portrait of the Bride", typeof(Thalia)));
|
||||
|
||||
Rewards.Add(new DummyReward(1075369)); // The Artist's gratitude.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(UnfadingMemoriesPartThree);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class UnfadingMemoriesPartThree : MLQuest
|
||||
{
|
||||
public UnfadingMemoriesPartThree()
|
||||
{
|
||||
Activated = true;
|
||||
OneTimeOnly = true;
|
||||
Title = 1075373; // Unfading Memories
|
||||
// Emilio painted this? It is absolutely wonderful! I used to love looking at his paintings, but I don't remember him creating anything like this before. Would you be so kind as to carry a letter to him? Fate may have it that I am to marry another, yet I am compelled to reveal to him that his love was not entirely unrequited.
|
||||
Description = 1075374;
|
||||
RefusalMessage = 1075376; // Very well, then. If you will excuse me, I need to get ready.
|
||||
// Take the letter back to the Artist's Guild in Britain, if you would do me this kindness.
|
||||
InProgressMessage = 1075377;
|
||||
// She said what? She thinks what of me? I . . . I can't believe it! All this time, I never knew how she truly felt. Thank you, my friend. I believe now I will be able to paint once again. Here, take this bleach. I was going to use it to destroy all of my works. Perhaps you can find a better use for it now.
|
||||
CompletionMessage = 1075378;
|
||||
CompletionNotice = CompletionNoticeShort;
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(BridesLetter), 1, "Bride's Letter", typeof(Emilio)));
|
||||
|
||||
Rewards.Add(new ItemReward(1075375, typeof(Bleach))); // Bleach
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
[QuesterName("Emilio (Britain)")] // OSI's description is "Artist", not very helpful
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Emilio : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Emilio() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Tortured Artist";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(0x72B));
|
||||
AddItem(new LongPants(0x525));
|
||||
AddItem(new FancyShirt(0x53F));
|
||||
AddItem(new FloppyHat(0x58C));
|
||||
AddItem(new BodySash(0x1C));
|
||||
}
|
||||
|
||||
public override string DefaultName => "Emilio";
|
||||
public override bool IsInvulnerable => true;
|
||||
}
|
||||
|
||||
[QuesterName("Thalia (Nujel'm)")] // OSI's description is "Bride", not very helpful
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Thalia : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Thalia() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Bride";
|
||||
Race = Race.Human;
|
||||
Body = 0x191;
|
||||
Female = true;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new Sandals(0x8FD));
|
||||
AddItem(new FancyDress(0x8FD));
|
||||
}
|
||||
|
||||
public override string DefaultName => "Thalia";
|
||||
public override bool IsInvulnerable => true;
|
||||
}
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
using System;
|
||||
using Server.Engines.MLQuests.Objectives;
|
||||
using Server.Engines.MLQuests.Rewards;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.MLQuests.Definitions
|
||||
{
|
||||
public class WarriorsOfTheGemkeeper : MLQuest
|
||||
{
|
||||
public WarriorsOfTheGemkeeper()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074536; // Warriors of the Gemkeeper
|
||||
Description =
|
||||
1074537; // Here we honor the Gemkeeper's Apprentice and seek to aid her efforts against the humans responsible for the death of her teacher - and the destruction of the elven way of life. Our tales speak of a fierce race of servants of the Gemkeeper, the men-bulls whose battle-skill was renowned. It is desireable to discover the fate of these noble creatures after the Rupture. Will you seek information?
|
||||
RefusalMessage = 1074063; // Fine then, I'm shall find another to run my errands then.
|
||||
InProgressMessage =
|
||||
1074540; // I care not how you get the information. Kill as many humans as you must ... but find the fate of the minotaurs. Perhaps another of the Gemkeeper's servants has the knowledge we seek.
|
||||
CompletionMessage = 1074542; // What have you found?
|
||||
|
||||
Objectives.Add(new CollectObjective(1, typeof(FragmentOfAMap), "fragment of a map"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(CloseEnough);
|
||||
}
|
||||
|
||||
public class CloseEnough : MLQuest
|
||||
{
|
||||
public CloseEnough()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074544; // Close Enough
|
||||
Description =
|
||||
1074546; // Ah ha! You see here ... and over here ... The map fragment places the city of the bull-men, Labyrinth, on that piece of Sosaria that was thrown into the sky. Hmmm, I would have you go there and seek out these warriors to see if they might join our cause. But, legend speaks of a mighty barrier to prevent invasion of the city. Take this map to Canir and explain the problem. Perhaps she can devise a solution.
|
||||
RefusalMessage = 1074063; // Fine then, I'm shall find another to run my errands then.
|
||||
InProgressMessage = 1074548; // Canir is nearby, run and speak with her.
|
||||
CompletionMessage = 1074549; // Yes? What do you want? I'm very busy.
|
||||
|
||||
Objectives.Add(new DeliverObjective(typeof(FragmentOfAMapDelivery), 1, "fragment of a map", typeof(Canir)));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(TakingTheBullByTheHorns);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class TakingTheBullByTheHorns : MLQuest
|
||||
{
|
||||
public TakingTheBullByTheHorns()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074551; // Taking the Bull by the Horns
|
||||
Description =
|
||||
1074553; // Interesting. I believe I have a way. I will need some materials to infuse you with the essence of a bull-man, so you can fool their defenses. The most similar beast to the original Baratarian bull that the minotaur were bred from is undoubtedly the mighty Gaman, native to the Lands of the Feudal Lords. I need horns, in great quantity to undertake this magic.
|
||||
RefusalMessage = 1074554; // Oh come now, don't be afraid. The magic won't harm you.
|
||||
InProgressMessage =
|
||||
1074555; // I cannot grant you the ability to pass through the bull-men's defenses without the gaman horns.
|
||||
CompletionMessage =
|
||||
1074556; // You've returned at last! Give me just a moment to examine what you've brought and I can perform the magic that will allow you enter the Labyrinth.
|
||||
|
||||
Objectives.Add(new CollectObjective(20, typeof(GamanHorns), "gaman horns"));
|
||||
|
||||
Rewards.Add(new DummyReward(1074876)); // Knowledge of the legendary minotaur.
|
||||
}
|
||||
|
||||
public override Type NextQuest => typeof(EmissaryToTheMinotaur);
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
|
||||
public class EmissaryToTheMinotaur : MLQuest
|
||||
{
|
||||
public EmissaryToTheMinotaur()
|
||||
{
|
||||
Activated = true;
|
||||
Title = 1074824; // Emissary to the Minotaur
|
||||
Description =
|
||||
1074825; // *whew* It is done! The fierce essence of the bull has been infused into your aura. You are able now to breach the ancient defenses of the city. Go forth and seek the minotaur -- and then return with wonderous tales and evidence of your visit to the Labyrinth.
|
||||
RefusalMessage =
|
||||
1074827; // As you wish. I can't understand why you'd pass up such a remarkable opportunity. Think of the adventures you would have.
|
||||
InProgressMessage =
|
||||
1074828; // You won't reach the minotaur city by loitering around here! What are you waiting for? You need to get to Malas and find the access point for the island. You'll be renowned for your discovery!
|
||||
CompletionMessage =
|
||||
1074829; // Oh! You've returned at last! I can't wait to hear the tales ... but first, let me see those artifacts. You've certainly earned this reward.
|
||||
|
||||
Objectives.Add(new CollectObjective(3, typeof(MinotaurArtifact), "minotaur artifacts"));
|
||||
|
||||
Rewards.Add(ItemReward.Strongbox);
|
||||
}
|
||||
|
||||
public override bool IsChainTriggered => true;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ABauble : Item
|
||||
{
|
||||
[Constructible]
|
||||
public ABauble() : base(0x23B) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073137; // A bauble
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class APersonalLetterAddressedToAhie : TransientItem
|
||||
{
|
||||
[Constructible]
|
||||
public APersonalLetterAddressedToAhie() : base(0x14ED, TimeSpan.FromMinutes(30)) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073128; // A personal letter addressed to: Ahie
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AlchemistsBandage : Item
|
||||
{
|
||||
[Constructible]
|
||||
public AlchemistsBandage() : base(0xE21)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x482;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1075452; // Alchemist's Bandage
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AnOldNecklace : Necklace
|
||||
{
|
||||
[Constructible]
|
||||
public AnOldNecklace() => Hue = 0x222;
|
||||
|
||||
public override int LabelNumber => 1075525; // an old necklace
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AnOldRing : GoldRing
|
||||
{
|
||||
[Constructible]
|
||||
public AnOldRing() => Hue = 0x222;
|
||||
|
||||
public override int LabelNumber => 1075524; // an old ring
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AndricSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public AndricSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new Feather(10));
|
||||
DropItem(new FletcherTools());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AndrosGratitude : SmithHammer
|
||||
{
|
||||
[Constructible]
|
||||
public AndrosGratitude() : base(10) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075345; // Andros Gratitude
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AsandosSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public AsandosSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new SackFlour());
|
||||
DropItem(new Skillet());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BasinOfCrystalClearWater : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BasinOfCrystalClearWater() : base(0x1008) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075303; // Basin of Crystal-Clear Water
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BedlamTeleporter : Item
|
||||
{
|
||||
private static readonly Point3D PointDest = new(120, 1682, 0);
|
||||
private static readonly Map MapDest = Map.Malas;
|
||||
|
||||
public BedlamTeleporter() : base(0x124D) => Movable = false;
|
||||
|
||||
public override int LabelNumber => 1074161; // Access to Bedlam by invitation only
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (!from.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
return;
|
||||
}
|
||||
|
||||
if (from is PlayerMobile mobile && MLQuestSystem.GetContext(mobile)?.BedlamAccess == true)
|
||||
{
|
||||
BaseCreature.TeleportPets(mobile, PointDest, MapDest);
|
||||
mobile.MoveToWorld(PointDest, MapDest);
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage(1074276); // You press and push on the iron maiden, but nothing happens.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Bleach : PigmentsOfTokuno
|
||||
{
|
||||
[Constructible]
|
||||
public Bleach() => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075375; // Bleach
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BridesLetter : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BridesLetter() : base(0x14ED) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075301; // Bride's Letter
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CompletedTuitionReimbursementForm : Item
|
||||
{
|
||||
[Constructible]
|
||||
public CompletedTuitionReimbursementForm() : base(0x14F0) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074625; // Completed Tuition Reimbursement Form
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,130 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.Craft;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.MLQuests.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public abstract partial class BaseCraftmansSatchel : Backpack
|
||||
{
|
||||
protected static readonly Type[] m_TalismanType = { typeof(RandomTalisman) };
|
||||
|
||||
public BaseCraftmansSatchel() => Hue = Utility.RandomBrightHue();
|
||||
|
||||
protected void AddBaseLoot(params Type[][] lootSets)
|
||||
{
|
||||
var loot = Loot.Construct(lootSets.RandomElement());
|
||||
|
||||
if (loot == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
RewardBag.Enhance(loot);
|
||||
DropItem(loot);
|
||||
}
|
||||
|
||||
protected void AddRecipe(CraftSystem system)
|
||||
{
|
||||
// TODO: change craftable artifact recipes to a rarer drop
|
||||
var recipeID = system.RandomRecipe();
|
||||
|
||||
if (recipeID != -1)
|
||||
{
|
||||
DropItem(new RecipeScroll(recipeID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TailorSatchel : BaseCraftmansSatchel
|
||||
{
|
||||
[Constructible]
|
||||
public TailorSatchel()
|
||||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefTailoring.CraftSystem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BlacksmithSatchel : BaseCraftmansSatchel
|
||||
{
|
||||
[Constructible]
|
||||
public BlacksmithSatchel()
|
||||
{
|
||||
AddBaseLoot(Loot.MLWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefBlacksmithy.CraftSystem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TinkerSatchel : BaseCraftmansSatchel
|
||||
{
|
||||
[Constructible]
|
||||
public TinkerSatchel()
|
||||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.MLWeaponTypes, Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
case 0:
|
||||
AddRecipe(DefInscription.CraftSystem);
|
||||
break;
|
||||
case 1:
|
||||
AddRecipe(DefAlchemy.CraftSystem);
|
||||
break;
|
||||
// TODO
|
||||
// case 2: AddNonArtifactRecipe( DefTailoring.CraftSystem ); break;
|
||||
// case 3: AddNonArtifactRecipe( DefBlacksmithy.CraftSystem ); break;
|
||||
// case 4: AddNonArtifactRecipe( DefCarpentry.CraftSystem ); break;
|
||||
// case 5: AddNonArtifactRecipe( DefBowFletching.CraftSystem ); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class FletchingSatchel : BaseCraftmansSatchel
|
||||
{
|
||||
[Constructible]
|
||||
public FletchingSatchel()
|
||||
{
|
||||
AddBaseLoot(Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefBowFletching.CraftSystem);
|
||||
}
|
||||
|
||||
// TODO: runic fletching kit
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CarpentrySatchel : BaseCraftmansSatchel
|
||||
{
|
||||
[Constructible]
|
||||
public CarpentrySatchel()
|
||||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.MLWeaponTypes, Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefCarpentry.CraftSystem);
|
||||
}
|
||||
|
||||
// TODO: Add runic dovetail saw
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CrateForSledge : TransientItem
|
||||
{
|
||||
[Constructible]
|
||||
public CrateForSledge() : base(0x1FFF, TimeSpan.FromHours(1)) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074520; // Crate for Sledge
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class DreadSpiderSilk : Item
|
||||
{
|
||||
[Constructible]
|
||||
public DreadSpiderSilk() : base(0xDF8)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x481;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1075319; // Dread Spider Silk
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class FragmentOfAMap : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FragmentOfAMap() : base(0x14ED) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074533; // Fragment of a Map
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class FragmentOfAMapDelivery : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FragmentOfAMapDelivery() : base(0x14ED) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074533; // Fragment of a Map
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class FriendOfTheLibraryToken : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FriendOfTheLibraryToken() : base(0x2F58)
|
||||
{
|
||||
Layer = Layer.Talisman;
|
||||
Hue = 0x28A;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1073136; // Friend of the Library Token (allows donations to be made)
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class FriendsOfTheLibraryApplication : Item
|
||||
{
|
||||
[Constructible]
|
||||
public FriendsOfTheLibraryApplication() : base(0xEC0) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073131; // Friends of the Library Application
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GamanHorns : Item
|
||||
{
|
||||
[Constructible]
|
||||
public GamanHorns(int amount = 1) : base(0x1084)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
Hue = 0x395;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074557; // Gaman Horns
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GervisSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public GervisSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new IronIngot(10));
|
||||
DropItem(new SmithHammer());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GiftForArielle : BaseContainer
|
||||
{
|
||||
[Constructible]
|
||||
public GiftForArielle() : base(0x1882) => Hue = 0x2C4;
|
||||
|
||||
public override int LabelNumber => 1074356; // gift for arielle
|
||||
public override int DefaultGumpID => 0x41;
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class HargroveSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public HargroveSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new Gold(15));
|
||||
DropItem(new Hatchet());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class KirinBrains : Item
|
||||
{
|
||||
[Constructible]
|
||||
public KirinBrains() : base(0x1CF0)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0xD7;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074612; // Ki-Rin Brains
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class LowelSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public LowelSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new Board(10));
|
||||
DropItem(new DovetailSaw());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MiniatureMushroom : Food
|
||||
{
|
||||
[Constructible]
|
||||
public MiniatureMushroom() : base(0xD16) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073138; // Miniature mushroom
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MirrorOfPurification : Item
|
||||
{
|
||||
[Constructible]
|
||||
public MirrorOfPurification() : base(0x1008)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x530;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1075304; // Mirror of Purification
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class MuggSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public MuggSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new Pickaxe());
|
||||
DropItem(new Pickaxe());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class NibbetSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public NibbetSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new TinkerTools());
|
||||
|
||||
DropItem(
|
||||
Utility.Random(10) switch
|
||||
{
|
||||
0 => new Springs(3),
|
||||
1 => new Axle(3),
|
||||
2 => new Hinge(3),
|
||||
3 => new Key(),
|
||||
4 => new Scissors(),
|
||||
5 => new BarrelTap(),
|
||||
6 => new BarrelHoops(),
|
||||
7 => new Gears(3),
|
||||
8 => new Lockpick(3),
|
||||
_ => new ClockFrame(3) // 9
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class NotarizedApplication : Item
|
||||
{
|
||||
[Constructible]
|
||||
public NotarizedApplication() : base(0x14EF) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073135; // Notarized Application
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class OfficialSealingWax : Item
|
||||
{
|
||||
[Constructible]
|
||||
public OfficialSealingWax() : base(0x1426)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x84;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1072744; // Official Sealing Wax
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class PeppercornFishsteak : FishSteak
|
||||
{
|
||||
[Constructible]
|
||||
public PeppercornFishsteak() => Hue = 0x222;
|
||||
|
||||
public override int LabelNumber => 1075557; // peppercorn fishsteak
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class PixieLeg : ChickenLeg
|
||||
{
|
||||
[Constructible]
|
||||
public PixieLeg(int amount = 1) : base(amount)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x1C2;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074613; // Pixie Leg
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class PortraitOfTheBride : Item
|
||||
{
|
||||
[Constructible]
|
||||
public PortraitOfTheBride() : base(0xE9F) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075300; // Portrait of the Bride
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class PrismaticAmber : Amber
|
||||
{
|
||||
[Constructible]
|
||||
public PrismaticAmber()
|
||||
{
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1075299; // Prismatic Amber
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
|
||||
list.Add(1075269); // Destroyed when dropped
|
||||
}
|
||||
|
||||
public override bool DropToWorld(Mobile from, Point3D p)
|
||||
{
|
||||
var ret = base.DropToWorld(from, p);
|
||||
|
||||
if (ret)
|
||||
{
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool DropToMobile(Mobile from, Mobile target, Point3D p)
|
||||
{
|
||||
var ret = base.DropToMobile(from, target, p);
|
||||
|
||||
if (ret)
|
||||
{
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public override bool DropToItem(Mobile from, Item target, Point3D p)
|
||||
{
|
||||
var ret = base.DropToItem(from, target, p);
|
||||
|
||||
if (ret && Parent != from.Backpack)
|
||||
{
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual void DestroyItem(Mobile from)
|
||||
{
|
||||
from.SendLocalizedMessage(500424); // You destroyed the item.
|
||||
Delete();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests;
|
||||
using Server.Engines.MLQuests.Definitions;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class PrismaticCrystal : Item
|
||||
{
|
||||
[Constructible]
|
||||
public PrismaticCrystal() : base(0x2DA)
|
||||
{
|
||||
Movable = false;
|
||||
Hue = 0x32;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074269; // prismatic crystal
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (from is not PlayerMobile pm || pm.Backpack == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!pm.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
pm.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
return;
|
||||
}
|
||||
|
||||
if (MLQuestSystem.GetContext(pm)?.IsDoingQuest(typeof(UnfadingMemoriesPartOne)) != true ||
|
||||
pm.Backpack.FindItemByType<PrismaticAmber>(false) != null)
|
||||
{
|
||||
pm.SendLocalizedMessage(1075464); // You already have as many of those as you need.
|
||||
return;
|
||||
}
|
||||
|
||||
var amber = new PrismaticAmber();
|
||||
|
||||
if (pm.PlaceInBackpack(amber))
|
||||
{
|
||||
MLQuestSystem.MarkQuestItem(pm, amber);
|
||||
Delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
pm.SendLocalizedMessage(502385); // Your pack cannot hold this item.
|
||||
amber.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class RedLeatherBook : BlueBook
|
||||
{
|
||||
[Constructible]
|
||||
public RedLeatherBook() => Hue = 0x485;
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ReginasLetter : Item
|
||||
{
|
||||
[Constructible]
|
||||
public ReginasLetter() : base(0x14ED) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075306; // Regina's Letter
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ReginasRing : SilverRing
|
||||
{
|
||||
[Constructible]
|
||||
public ReginasRing() => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075305; // Regina's Ring
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.MLQuests.Items;
|
||||
|
||||
public static class RewardBag
|
||||
{
|
||||
public static void Fill(Container c, int itemCount, double talismanChance)
|
||||
{
|
||||
c.Hue = Utility.RandomNondyedHue();
|
||||
|
||||
var done = 0;
|
||||
|
||||
if (Utility.RandomDouble() < talismanChance)
|
||||
{
|
||||
c.DropItem(new RandomTalisman());
|
||||
++done;
|
||||
}
|
||||
|
||||
for (; done < itemCount; ++done)
|
||||
{
|
||||
var loot = Utility.Random(5) switch
|
||||
{
|
||||
0 => (Item)Loot.RandomWeapon(false, true),
|
||||
1 => Loot.RandomArmor(false, true),
|
||||
2 => Loot.RandomRangedWeapon(false, true),
|
||||
3 => Loot.RandomJewelry(),
|
||||
_ => Loot.RandomHat() // 4
|
||||
};
|
||||
|
||||
if (loot == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Enhance(loot);
|
||||
c.DropItem(loot);
|
||||
}
|
||||
}
|
||||
|
||||
public static void Enhance(Item loot)
|
||||
{
|
||||
if (loot is BaseWeapon weapon)
|
||||
{
|
||||
BaseRunicTool.ApplyAttributesTo(weapon, Utility.RandomMinMax(1, 5), 10, 80);
|
||||
return;
|
||||
}
|
||||
|
||||
if (loot is BaseArmor armor)
|
||||
{
|
||||
BaseRunicTool.ApplyAttributesTo(armor, Utility.RandomMinMax(1, 5), 10, 80);
|
||||
}
|
||||
|
||||
if (loot is BaseJewel jewel)
|
||||
{
|
||||
BaseRunicTool.ApplyAttributesTo(jewel, Utility.RandomMinMax(1, 5), 10, 80);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SmallBagOfTrinkets : Bag
|
||||
{
|
||||
[Constructible]
|
||||
public SmallBagOfTrinkets()
|
||||
{
|
||||
RewardBag.Fill(this, 1, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BagOfTrinkets : Bag
|
||||
{
|
||||
[Constructible]
|
||||
public BagOfTrinkets()
|
||||
{
|
||||
RewardBag.Fill(this, 2, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BagOfTreasure : Bag
|
||||
{
|
||||
[Constructible]
|
||||
public BagOfTreasure()
|
||||
{
|
||||
RewardBag.Fill(this, 3, 0.20);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class LargeBagOfTreasure : Bag
|
||||
{
|
||||
[Constructible]
|
||||
public LargeBagOfTreasure()
|
||||
{
|
||||
RewardBag.Fill(this, 4, 0.50);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class RewardStrongbox : WoodenBox
|
||||
{
|
||||
[Constructible]
|
||||
public RewardStrongbox()
|
||||
{
|
||||
RewardBag.Fill(this, 5, 1.0);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SadrahSatchel : Backpack
|
||||
{
|
||||
[Constructible]
|
||||
public SadrahSatchel()
|
||||
{
|
||||
Hue = Utility.RandomBrightHue();
|
||||
DropItem(new Bloodmoss(10));
|
||||
DropItem(new MortarPestle());
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SapOfSosaria : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SapOfSosaria(int amount = 1) : base(0x1848)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074178; // Sap of Sosaria
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SealedNotesForJamal : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SealedNotesForJamal() : base(0xEF9) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074998; // Sealed Notes For Jamal
|
||||
public override double DefaultWeight => 1.0;
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SealingWaxOrderAddressedToPetrus : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SealingWaxOrderAddressedToPetrus() : base(0xEBF) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073132; // Sealing Wax Order addressed to Petrus
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[Flippable(0x312D, 0x312E)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SeveredElfEars : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SeveredElfEars(int amount = 1) : base(Utility.RandomList(0x312D, 0x312E))
|
||||
{
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[Flippable(0x312F, 0x3130)]
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SeveredHumanEars : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SeveredHumanEars(int amount = 1) : base(Utility.RandomList(0x312F, 0x3130))
|
||||
{
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SignedTuitionReimbursementForm : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SignedTuitionReimbursementForm() : base(0x14F0) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074614; // Signed Tuition Reimbursement Form
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SpecialTreatForDrithen : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SpecialTreatForDrithen() : base(0x21B)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x489;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074517; // Special Treat for Drithen
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SpeckledPoisonSac : TransientItem
|
||||
{
|
||||
[Constructible]
|
||||
public SpeckledPoisonSac() : base(0x23A, TimeSpan.FromHours(1)) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1073133; // Speckled Poison Sac
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class SpiritBottle : Item
|
||||
{
|
||||
[Constructible]
|
||||
public SpiritBottle() : base(0xEFB) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1075283; // Spirit bottle
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class StoutWhip : Item
|
||||
{
|
||||
[Constructible]
|
||||
public StoutWhip() : base(0x166F) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074812; // Stout Whip
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TaintedTreeSample : Item // On OSI the base class is Kindling, and it's ignitable...
|
||||
{
|
||||
[Constructible]
|
||||
public TaintedTreeSample() : base(0xDE2)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x9D;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074997; // Tainted Tree Sample
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TransparentHeart : GoldEarrings
|
||||
{
|
||||
[Constructible]
|
||||
public TransparentHeart()
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x4AB;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1075400; // Transparent Heart
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class TuitionReimbursementForm : Item
|
||||
{
|
||||
[Constructible]
|
||||
public TuitionReimbursementForm() : base(0xE3A) => LootType = LootType.Blessed;
|
||||
|
||||
public override int LabelNumber => 1074610; // Tuition Reimbursement Form (in triplicate)
|
||||
|
||||
public override bool Nontransferable => true;
|
||||
|
||||
public override void AddNameProperties(IPropertyList list)
|
||||
{
|
||||
base.AddNameProperties(list);
|
||||
AddQuestItemProperty(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class UnicornRibs : Item
|
||||
{
|
||||
[Constructible]
|
||||
public UnicornRibs(int amount = 1) : base(0x9F1)
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
Hue = 0x14B;
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1074611; // Unicorn Ribs
|
||||
}
|
||||
|
|
@ -1,387 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Definitions;
|
||||
using Server.Engines.MLQuests.Gumps;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.MLQuests.Mobiles;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public abstract partial class DoneQuestCollector : BaseCreature, IRaceChanger
|
||||
{
|
||||
private InternalTimer m_Timer;
|
||||
|
||||
public DoneQuestCollector() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
SetSpeed(0.5, 2.0);
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
|
||||
public abstract TextDefinition[] Offer { get; }
|
||||
public abstract TextDefinition[] Incomplete { get; }
|
||||
public abstract TextDefinition[] Complete { get; }
|
||||
public abstract Type[] Needed { get; }
|
||||
|
||||
public bool CheckComplete(PlayerMobile pm)
|
||||
{
|
||||
if (CompletedCount(pm) == Needed.Length)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
pm.SendLocalizedMessage(1073644); // You must complete all the tasks before proceeding...
|
||||
return false;
|
||||
}
|
||||
|
||||
public void ConsumeNeeded(PlayerMobile pm)
|
||||
{
|
||||
var context = MLQuestSystem.GetContext(pm);
|
||||
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var type in Needed)
|
||||
{
|
||||
var quest = MLQuestSystem.FindQuest(type);
|
||||
|
||||
if (quest != null)
|
||||
{
|
||||
context.RemoveDoneQuest(quest);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnCancel(PlayerMobile pm)
|
||||
{
|
||||
pm.SendLocalizedMessage(1073645); // You may try this again later...
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
TryTalkTo(from, true);
|
||||
}
|
||||
|
||||
public override void OnDoubleClickDead(Mobile from)
|
||||
{
|
||||
TryTalkTo(from, true);
|
||||
}
|
||||
|
||||
public override void OnMovement(Mobile m, Point3D oldLocation)
|
||||
{
|
||||
if (m.Player && InRange(m, 6) && !InRange(oldLocation, 6))
|
||||
{
|
||||
TryTalkTo(m, false);
|
||||
}
|
||||
|
||||
base.OnMovement(m, oldLocation);
|
||||
}
|
||||
|
||||
public void TryTalkTo(Mobile from, bool fromClick)
|
||||
{
|
||||
if (!from.Hidden && !from.HasGump<RaceChangeConfirmGump>() &&
|
||||
!RaceChangeConfirmGump.IsPending(from.NetState) && CanTalkTo(from))
|
||||
{
|
||||
TalkTo(from as PlayerMobile);
|
||||
}
|
||||
else if (fromClick)
|
||||
{
|
||||
DenyTalk(from);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool CanTalkTo(Mobile from) => true;
|
||||
|
||||
public virtual void DenyTalk(Mobile from)
|
||||
{
|
||||
}
|
||||
|
||||
public void TalkTo(PlayerMobile pm)
|
||||
{
|
||||
if (pm == null || m_Timer?.Running == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var completed = CompletedCount(pm);
|
||||
|
||||
if (completed == Needed.Length)
|
||||
{
|
||||
m_Timer = new InternalTimer(this, pm, Complete, true);
|
||||
}
|
||||
else if (completed == 0)
|
||||
{
|
||||
m_Timer = new InternalTimer(this, pm, Offer, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
List<TextDefinition> conversation = [..Incomplete];
|
||||
|
||||
var context = MLQuestSystem.GetContext(pm);
|
||||
|
||||
if (context != null)
|
||||
{
|
||||
foreach (var type in Needed)
|
||||
{
|
||||
var quest = MLQuestSystem.FindQuest(type);
|
||||
|
||||
if (quest == null || context.HasDoneQuest(quest))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
conversation.Add(quest.Title);
|
||||
}
|
||||
}
|
||||
|
||||
m_Timer = new InternalTimer(this, pm, conversation, false);
|
||||
}
|
||||
|
||||
m_Timer.Start();
|
||||
}
|
||||
|
||||
private int CompletedCount(PlayerMobile pm)
|
||||
{
|
||||
var context = MLQuestSystem.GetContext(pm);
|
||||
|
||||
if (context == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
var result = 0;
|
||||
|
||||
foreach (var type in Needed)
|
||||
{
|
||||
var quest = MLQuestSystem.FindQuest(type);
|
||||
|
||||
if (quest == null || context.HasDoneQuest(quest))
|
||||
{
|
||||
++result;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual void OnComplete(PlayerMobile pm)
|
||||
{
|
||||
}
|
||||
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private readonly IList<TextDefinition> m_Conversation;
|
||||
private readonly bool m_IsComplete;
|
||||
private readonly DoneQuestCollector m_Owner;
|
||||
private readonly PlayerMobile m_Target;
|
||||
private int m_Index;
|
||||
|
||||
public InternalTimer(
|
||||
DoneQuestCollector owner, PlayerMobile target, IList<TextDefinition> conversation,
|
||||
bool isComplete
|
||||
)
|
||||
: base(TimeSpan.Zero, GetDelay())
|
||||
{
|
||||
m_Owner = owner;
|
||||
m_Target = target;
|
||||
m_Conversation = conversation;
|
||||
m_IsComplete = isComplete;
|
||||
m_Index = 0;
|
||||
}
|
||||
|
||||
private static TimeSpan GetDelay() => TimeSpan.FromSeconds(Utility.RandomBool() ? 3 : 4);
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
if (m_Owner.Deleted)
|
||||
{
|
||||
Stop();
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Index >= m_Conversation.Count)
|
||||
{
|
||||
if (m_IsComplete)
|
||||
{
|
||||
m_Owner.OnComplete(m_Target);
|
||||
}
|
||||
|
||||
Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_Index == 0)
|
||||
{
|
||||
if (m_Target.ShowFameTitle && m_Target.Fame >= 10000)
|
||||
{
|
||||
m_Owner.Say(true, $"{(m_Target.Female ? "Lady" : "Lord")} {m_Target.Name}");
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Owner.Say(true, m_Target.Name);
|
||||
}
|
||||
}
|
||||
|
||||
m_Conversation[m_Index++].PublicOverheadMessage(m_Owner, MessageType.Regular, 0x3B2);
|
||||
Interval = GetDelay();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Darius : DoneQuestCollector
|
||||
{
|
||||
private static readonly TextDefinition[] m_Offer =
|
||||
{
|
||||
1073998, // Blessings of Sosaria to you and merry met, friend.
|
||||
1073999, // I am glad for your company and wonder if you seek the heritage of your people? I sense within you an elven bloodline -- the purity of which was lost when our brothers and sisters were exiled here in the Rupture.
|
||||
1074000, // If it is your desire to reclaim your place amongst the people, you must demonstrate that you understand and embrace the responsibilities expected of you as an elf.
|
||||
1074001, // The most basic lessons of our Sosaria are taught by her humblest children. Seek Maul, the great bear, who understands instinctively the seasons.
|
||||
1074398, // Seek Strongroot, the great treefellow, whose very roots reach to the heart of the world. Seek Enigma, whose wisdom can only be conveyed in riddles and rhymes. Seek Bravehorn, the great hart, who exemplifies the fierce dedication of a protector of his people.
|
||||
1074399, // Seek the Huntsman, the centaur tasked with maintaining the balance. And lastly seek Arielle, the pixie, who has perhaps the most important lesson -- not to take yourself too seriously.
|
||||
1074400 // Or do none of these things. You must choose your own path in the world, and what use you'll make of your existence.
|
||||
};
|
||||
|
||||
private static readonly TextDefinition[] m_Incomplete =
|
||||
{
|
||||
1074002, // You have begun to walk the path of reclaiming your heritage, but you have not learned all the lessons before you.
|
||||
1074003 // You yet must perform these services:
|
||||
};
|
||||
|
||||
private static readonly TextDefinition[] m_Complete =
|
||||
{
|
||||
1074004, // You have carved a path in history, sought to understand the way from our sage companions.
|
||||
1074005, // And now you have returned full circle to the place of your origin within the arms of Mother Sosaria. There is but one thing left to do if you truly wish to embrace your elven heritage.
|
||||
1074006, // To be born once more an elf, you must strip of all worldly possessions. Nothing of man or beast much touch your skin.
|
||||
1074007 // Then you may step forth into history.
|
||||
};
|
||||
|
||||
private static readonly Type[] m_Needed =
|
||||
{
|
||||
typeof(Seasons),
|
||||
typeof(CaretakerOfTheLand),
|
||||
typeof(WisdomOfTheSphynx),
|
||||
typeof(DefendingTheHerd),
|
||||
typeof(TheBalanceOfNature),
|
||||
typeof(TheJoysOfLife)
|
||||
};
|
||||
|
||||
[Constructible]
|
||||
public Darius()
|
||||
{
|
||||
Title = "the wise";
|
||||
Race = Race.Elf;
|
||||
Hue = Race.RandomSkinHue();
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
|
||||
AddItem(new WildStaff());
|
||||
AddItem(new Sandals(0x1BB));
|
||||
AddItem(new GemmedCirclet());
|
||||
AddItem(new Tunic(Utility.RandomBrightHue()));
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
SetStr(40, 50);
|
||||
SetDex(60, 70);
|
||||
SetInt(90, 100); // Verified int
|
||||
}
|
||||
|
||||
public override TextDefinition[] Offer => m_Offer;
|
||||
public override TextDefinition[] Incomplete => m_Incomplete;
|
||||
public override TextDefinition[] Complete => m_Complete;
|
||||
public override Type[] Needed => m_Needed;
|
||||
|
||||
public override string DefaultName => "Darius";
|
||||
|
||||
public override bool CanTalkTo(Mobile from) => from.Race == Race.Human;
|
||||
|
||||
public override void DenyTalk(Mobile from)
|
||||
{
|
||||
from.SendLocalizedMessage(1074017); // He's too busy right now, so he ignores you.
|
||||
}
|
||||
|
||||
public override void OnComplete(PlayerMobile from)
|
||||
{
|
||||
RaceChangeConfirmGump.DisplayTo(from, this, Race.Elf);
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class Nedrick : DoneQuestCollector
|
||||
{
|
||||
private static readonly TextDefinition[] m_Offer =
|
||||
{
|
||||
1074403, // Greetings, traveler and welcome.
|
||||
1074404, // Perhaps you have heard of the service I offer? Perhaps you wish to avail yourself of the opportunity I lay before you.
|
||||
1074405, // Elves and humans; we lived together once in peace. Mighty relics that attest to our friendship remain, of course. Yet, memories faded when the Gem was shattered and the world torn asunder. Alone in The Heartwood, our elven brothers and sisters wondered what terrible evil had befallen Sosaria.
|
||||
1074406, // Violent change marked the sundering of our ties. We are different -- elves and humans. And yet we are much alike. I can give an elf the chance to walk as a human upon Sosaria. I can undertake the transformation.
|
||||
1074407, // But you must prove yourself to me. Humans possess a strength of character and back. Humans are quick-witted and able to pick up a smattering of nearly any talent. Humans are tough both mentally and physically. And of course, humans defend their own -- sometimes with their own lives.
|
||||
1074408, // Seek Sledge the Versatile and learn about human ingenuity and creativity. Seek Patricus and demonstrate your integrity and strength.
|
||||
1074409, // Seek out a human in need and prove your worth as a defender of humanity. Seek Belulah in Nu'Jelm and heartily challenge the elements in a display of toughness to rival any human.
|
||||
1074411 // Or turn away and embrace your heritage. It matters not to me.
|
||||
};
|
||||
|
||||
private static readonly TextDefinition[] m_Incomplete =
|
||||
{
|
||||
1074412, // You have made a good start but have more yet to do.
|
||||
1074413 // You must yet perform these deeds:
|
||||
};
|
||||
|
||||
private static readonly TextDefinition[] m_Complete =
|
||||
{
|
||||
1074410, // You have proven yourself capable and commited and so I will grant you the transformation you seek.
|
||||
1074531, // The first time you were born, you entered the world bare of all possessions and concerns. So too as you transform to your new life as a human, you must remove all worldly goods from the touch of your flesh.
|
||||
1074532 // I call upon all nearby to witness your rebirth!
|
||||
};
|
||||
|
||||
private static readonly Type[] m_Needed =
|
||||
{
|
||||
typeof(Ingenuity),
|
||||
typeof(HeaveHo),
|
||||
typeof(HumanInNeed),
|
||||
typeof(AllSeasonAdventurer)
|
||||
};
|
||||
|
||||
[Constructible]
|
||||
public Nedrick()
|
||||
{
|
||||
Title = "the iron worker";
|
||||
Race = Race.Human;
|
||||
Hue = Race.RandomSkinHue();
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
|
||||
AddItem(new Boots());
|
||||
AddItem(new LongPants(Utility.RandomNondyedHue()));
|
||||
AddItem(new FancyShirt(Utility.RandomNondyedHue()));
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
Utility.AssignRandomFacialHair(this, HairHue);
|
||||
|
||||
SetStr(70, 80);
|
||||
SetDex(50, 60);
|
||||
SetInt(60, 70); // Verified int
|
||||
}
|
||||
|
||||
public override TextDefinition[] Offer => m_Offer;
|
||||
public override TextDefinition[] Incomplete => m_Incomplete;
|
||||
public override TextDefinition[] Complete => m_Complete;
|
||||
public override Type[] Needed => m_Needed;
|
||||
|
||||
public override string DefaultName => "Nedrick";
|
||||
|
||||
public override bool CanTalkTo(Mobile from) => from.Race == Race.Elf;
|
||||
|
||||
public override void DenyTalk(Mobile from)
|
||||
{
|
||||
from.SendLocalizedMessage(1074017); // He's too busy right now, so he ignores you.
|
||||
}
|
||||
|
||||
public override void OnComplete(PlayerMobile from)
|
||||
{
|
||||
RaceChangeConfirmGump.DisplayTo(from, this, Race.Human);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
using System;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Engines.MLQuests.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Engines.MLQuests.Mobiles;
|
||||
|
||||
[SerializationGenerator(0)]
|
||||
public partial class SirHelper : Mage
|
||||
{
|
||||
private static readonly TimeSpan m_ShoutDelay = TimeSpan.FromSeconds(20);
|
||||
|
||||
private static readonly TimeSpan
|
||||
m_ShoutCooldown = TimeSpan.FromDays(1); // TODO: Verify, could be a lot longer... or until a restart even
|
||||
|
||||
private DateTime m_NextShout;
|
||||
|
||||
[Constructible]
|
||||
public SirHelper()
|
||||
{
|
||||
Title = "the Profession Guide"; // TODO: Don't display in paperdoll
|
||||
|
||||
Hue = 0x83EA;
|
||||
|
||||
Direction = Direction.South;
|
||||
Frozen = true;
|
||||
}
|
||||
|
||||
public override string DefaultName => "Sir Helper";
|
||||
public override bool IsActiveVendor => false;
|
||||
|
||||
public override void InitSBInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool GetGender() => false;
|
||||
|
||||
public override void CheckMorph()
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
HairItemID = 0x203C;
|
||||
FacialHairItemID = 0x204D;
|
||||
HairHue = FacialHairHue = 0x8A7;
|
||||
|
||||
AddItem(new Sandals());
|
||||
|
||||
AddItem(new Cloak
|
||||
{
|
||||
ItemID = 0x26AD,
|
||||
Hue = 0x455
|
||||
});
|
||||
|
||||
AddItem(new Robe
|
||||
{
|
||||
ItemID = 0x26AE,
|
||||
Hue = 0x4AB
|
||||
});
|
||||
|
||||
AddItem(new Backpack
|
||||
{
|
||||
Movable = false
|
||||
});
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (from.BeginAction(this))
|
||||
{
|
||||
Timer.StartTimer(m_ShoutCooldown, () => EndLock(from));
|
||||
}
|
||||
|
||||
MLQuestSystem.TurnToFace(this, from);
|
||||
InfoNPCGump.DisplayTo(from, 1078029, 1078028);
|
||||
|
||||
// Paperdoll doesn't open
|
||||
// base.OnDoubleClick( from );
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
base.OnThink();
|
||||
|
||||
if (m_NextShout > Core.Now)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLocalizedLength("")].InitializePacket();
|
||||
|
||||
foreach (var state in GetClientsInRange(12))
|
||||
{
|
||||
var m = state.Mobile;
|
||||
|
||||
if (m.CanSee(this) && m.InLOS(this) && m.CanBeginAction(this))
|
||||
{
|
||||
// Double Click On Me For Help!
|
||||
var length = OutgoingMessagePackets.CreateMessageLocalized(
|
||||
buffer, Serial, Body, MessageType.Regular, 946, 3, 1078099, Name
|
||||
);
|
||||
|
||||
if (length != buffer.Length)
|
||||
{
|
||||
buffer = buffer[..length];
|
||||
}
|
||||
|
||||
state.Send(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
m_NextShout = Core.Now + m_ShoutDelay;
|
||||
}
|
||||
|
||||
private void EndLock(Mobile m)
|
||||
{
|
||||
m.EndAction(this);
|
||||
}
|
||||
|
||||
[AfterDeserialization]
|
||||
private void AfterDeserialization()
|
||||
{
|
||||
Frozen = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@ namespace Server.Engines.MLQuests.Rewards
|
|||
{
|
||||
public class ItemReward : BaseReward
|
||||
{
|
||||
/*
|
||||
public static readonly ItemReward
|
||||
SmallBagOfTrinkets = new(1072268, typeof(SmallBagOfTrinkets)); // A small bag of trinkets.
|
||||
|
||||
|
|
@ -35,6 +36,7 @@ namespace Server.Engines.MLQuests.Rewards
|
|||
|
||||
public static readonly ItemReward
|
||||
TinkerSatchel = new(1074282, typeof(TinkerSatchel)); // Craftsman's Satchel
|
||||
*/
|
||||
|
||||
private readonly int m_Amount;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BountyToken : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BountyToken() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public BountyToken(int amount) : base(0x0EED) // Gold coin artwork
|
||||
{
|
||||
Name = "Bounty Token";
|
||||
Hue = 0x482; // Unique vibrant cyan/blue hue
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
LootType = LootType.Blessed; // Keeps tokens safe in dungeons upon death
|
||||
}
|
||||
}
|
||||
|
|
@ -60,7 +60,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
c.DropItem(new GamanHorns(Utility.RandomBool() ? 1 : 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,11 +105,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.35)
|
||||
{
|
||||
c.DropItem(new KirinBrains());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,11 +115,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.35)
|
||||
{
|
||||
c.DropItem(new UnicornRibs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,141 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ModernUO.Serialization;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BountyVendor : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public BountyVendor() : base(AIType.AI_Vendor, FightMode.None, 2)
|
||||
{
|
||||
Title = "the Bounty Quartermaster";
|
||||
Race = Race.Human;
|
||||
Body = 0x190;
|
||||
Female = false;
|
||||
Hue = Race.RandomSkinHue();
|
||||
|
||||
SetSpeed(0.5, 2.0);
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
AddItem(new Backpack());
|
||||
AddItem(new FancyShirt(0x482));
|
||||
AddItem(new LongPants(0x1F0D));
|
||||
AddItem(new Boots());
|
||||
AddItem(new Cloak(0x482));
|
||||
}
|
||||
|
||||
public override bool IsInvulnerable => true;
|
||||
public override string DefaultName => "Capt. Vance";
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (from is PlayerMobile pm)
|
||||
{
|
||||
if (from.InRange(Location, 3))
|
||||
{
|
||||
pm.SendGump(new BountyRewardGump(pm, this));
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage(500446); // That is too far away.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// BOUNTY REWARD SHOP GUMP
|
||||
// ==========================================
|
||||
public class BountyRewardGump : Gump
|
||||
{
|
||||
private readonly PlayerMobile _player;
|
||||
private readonly BountyVendor _vendor;
|
||||
|
||||
// Define Reward Store Items using factory functions: (Name, TokenCost, CreateItem)
|
||||
private static readonly (string Name, int Cost, Func<Item> CreateItem)[] Rewards = new (string, int, Func<Item>)[]
|
||||
{
|
||||
("Dungeon Hunter Ring", 25, () => new GoldRing()),
|
||||
("Decorative Dragon Statue", 50, () => new MonsterStatuette(MonsterStatuetteType.Dragon)),
|
||||
("Monster Statue Dyetub", 75, () => new StatuetteDyeTub()),
|
||||
("Bag of Sending", 100, () => new BagOfSending())
|
||||
};
|
||||
|
||||
public BountyRewardGump(PlayerMobile player, BountyVendor vendor) : base(50, 50)
|
||||
{
|
||||
_player = player;
|
||||
_vendor = vendor;
|
||||
|
||||
int totalTokens = player.Backpack != null ? player.Backpack.GetAmount(typeof(BountyToken)) : 0;
|
||||
|
||||
AddPage(0);
|
||||
|
||||
// Matching BuildWorld.cs Frame Style
|
||||
AddBackground(0, 0, 450, 310, 9270);
|
||||
AddAlphaRegion(10, 10, 430, 290);
|
||||
|
||||
// Header Labels
|
||||
AddLabel(110, 15, 1152, "BOUNTY QUARTERMASTER STORE");
|
||||
AddLabel(20, 40, 0x3F, $"Your Bounty Tokens: {totalTokens}");
|
||||
|
||||
int y = 75;
|
||||
for (int i = 0; i < Rewards.Length; i++)
|
||||
{
|
||||
var reward = Rewards[i];
|
||||
|
||||
// Item Purchase Button & Labels
|
||||
AddButton(20, y, 4005, 4007, i + 1, GumpButtonType.Reply, 0);
|
||||
AddLabel(55, y, 1152, reward.Name);
|
||||
AddLabel(300, y, 0x3F, $"{reward.Cost} Tokens");
|
||||
|
||||
y += 35;
|
||||
}
|
||||
|
||||
// Close Button
|
||||
AddButton(20, y + 10, 4017, 4019, 0, GumpButtonType.Reply, 0);
|
||||
AddLabel(55, y + 10, 1152, "Close Shop");
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID <= 0 || info.ButtonID > Rewards.Length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int index = info.ButtonID - 1;
|
||||
var reward = Rewards[index];
|
||||
|
||||
if (_player.Backpack == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int tokenCount = _player.Backpack.GetAmount(typeof(BountyToken));
|
||||
|
||||
if (tokenCount >= reward.Cost)
|
||||
{
|
||||
if (_player.Backpack.ConsumeTotal(typeof(BountyToken), reward.Cost))
|
||||
{
|
||||
Item newItem = reward.CreateItem();
|
||||
_player.AddToBackpack(newItem);
|
||||
|
||||
_player.SendMessage(0x35, $"You purchased {reward.Name} for {reward.Cost} Bounty Tokens!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_player.SendMessage(0x22, $"You need {reward.Cost - tokenCount} more Bounty Tokens to buy this item.");
|
||||
}
|
||||
|
||||
// Reopen gump to refresh balance
|
||||
_player.SendGump(new BountyRewardGump(_player, _vendor));
|
||||
}
|
||||
}
|
||||
|
|
@ -48,10 +48,5 @@ public partial class EvilWanderingHealer : BaseHealer
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
c.DropItem(new FragmentOfAMap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,11 +69,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.9)
|
||||
{
|
||||
c.DropItem(new SeveredHumanEars());
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
|
|
|
|||
|
|
@ -88,11 +88,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.9)
|
||||
{
|
||||
c.DropItem(new SeveredElfEars());
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
|
|
|
|||
|
|
@ -70,12 +70,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
// TODO: Check drop rate
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
{
|
||||
c.DropItem(new StoutWhip());
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
|
|
|
|||
|
|
@ -64,11 +64,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.35)
|
||||
{
|
||||
c.DropItem(new PixieLeg());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,11 +69,6 @@ namespace Server.Mobiles
|
|||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.9)
|
||||
{
|
||||
c.DropItem(new SeveredHumanEars());
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ public partial class BaseEscortable : BaseCreature
|
|||
// Used when: MLQuestSystem.Enabled && !Region.IsPartOf( "Haven Island" )
|
||||
private static readonly Dictionary<Type, (int[], int)> _mlQuestTypes = new()
|
||||
{
|
||||
/*
|
||||
{ typeof(EscortToYew), (Array.Empty<int>(), 0) },
|
||||
{ typeof(EscortToVesper), (Array.Empty<int>(), 0) },
|
||||
{ typeof(EscortToTrinsic), (Array.Empty<int>(), 0) },
|
||||
|
|
@ -67,6 +68,7 @@ public partial class BaseEscortable : BaseCreature
|
|||
{ typeof(EscortToBritain), (Array.Empty<int>(), 0) }
|
||||
// Ocllo was removed in pub 56
|
||||
// { typeof(EscortToOcllo), (Array.Empty<int>(), 0) }
|
||||
*/
|
||||
};
|
||||
|
||||
// ML quest system New Haven list
|
||||
|
|
@ -75,6 +77,7 @@ public partial class BaseEscortable : BaseCreature
|
|||
// that teach you where things are in a city instead of the randomly spawned ones.
|
||||
private static readonly Dictionary<Type, (int[], int)> _mlQuestTypesNH = new()
|
||||
{
|
||||
/*
|
||||
// I am missing several components for my new potions, and I need to find the local alchemist.
|
||||
// My daughter is sick , and I need medicine. Do you know the way to the local alchemist?
|
||||
// I need some potions before I set out for a long journey. Can you take me to the alchemist in The Bottled Imp?
|
||||
|
|
@ -153,6 +156,7 @@ public partial class BaseEscortable : BaseCreature
|
|||
// You there. Do you know the way to the local archer?
|
||||
// I’m looking to go to the local archery range. Will you take me?
|
||||
{ typeof(EscortToNHBowyer), ([1042803, 1042804, 1042805, 1042831], 1042818) },
|
||||
*/
|
||||
};
|
||||
|
||||
[SerializableField(0, setter: "private")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue