- Enabled quests that were locked due to issues.

- Added a CompletionNotice setting to MLQuest to replace the OnComplete overrides.
- MLQuest.CanOffer now recursively checks NextQuest for OneTimeOnly/HasRestartDelay as well.
- Implemented quest restart delays and enabled them on the crafting quests.
- Questers offering multiple quests will no longer randomly offer quests for which CanOffer is false, as long as there are other quests for which CanOffer is true.
- Added a manual Register method to MLQuestSystem for registering quests without using MLQuests.cfg (to be used in Configure).
- Misc quest tweaks.
- Corrected typo in cove.cfg deco file.
This commit is contained in:
eos 2013-02-08 16:54:36 +00:00
parent 741e8a3301
commit 3b94a24a9a
24 changed files with 320 additions and 409 deletions

View file

@ -19,23 +19,18 @@ namespace Server.Engines.MLQuests.Definitions
public HonestBeggar()
{
Activated = true;
OneTimeOnly = true;
Title = 1075392; // Honest Beggar
Description = 1075393; // 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?
RefusalMessage = 1075395; // I see. Too good to help an honest beggar like me, eh?
InProgressMessage = 1075396; // 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.
CompletionMessage = 1075397; // 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.
CompletionNotice = CompletionNoticeShort;
Objectives.Add( new DeliverObjective( typeof( ReginasRing ), 1, 1075305, typeof( Regina ), "Regina" ) );
Objectives.Add( new DeliverObjective( typeof( ReginasRing ), 1, "Regina's Ring", typeof( Regina ), "Regina" ) );
Rewards.Add( new DummyReward( 1075394 ) ); // Find the ring’s owner.
}
public override void OnComplete( MLQuestInstance instance )
{
instance.Player.SendLocalizedMessage( 1046258, "", 0x23 ); // Your quest is complete.
}
public override void Generate()
{
base.Generate();
@ -52,22 +47,19 @@ namespace Server.Engines.MLQuests.Definitions
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, 1075306, typeof( Evan ), "Evan" ) );
Objectives.Add( new DeliverObjective( typeof( ReginasLetter ), 1, "Regina's Letter", typeof( Evan ), "Evan" ) );
Rewards.Add( new ItemReward( 1075400, typeof( TransparentHeart ) ) ); // Transparent Heart
}
public override void OnComplete( MLQuestInstance instance )
{
instance.Player.SendLocalizedMessage( 1046258, "", 0x23 ); // Your quest is complete.
}
public override void Generate()
{
base.Generate();