using System;
namespace Server.Engines.Quests.Ambitious
{
public class DontOfferConversation : QuestConversation
{
public DontOfferConversation()
{
}
public override object Message
{
get
{
/* The Solen queen considers you for a moment then says,
*
* Hmmm... I could perhaps benefit from your assistance, but you seem to be
* busy with another task at the moment. Return to me when you complete whatever
* it is that you're working on and maybe I can still put you to good use.
*/
return 1054059;
}
}
public override bool Logged
{
get
{
return false;
}
}
}
public class AcceptConversation : QuestConversation
{
public AcceptConversation()
{
}
public override object Message
{
get
{
/* The Solen queen smiles as you decide to help her.
*
* Excellent. We'll worry about the zoogi fungus later - start by eliminating
* 5 queens from my colony.
That part's important, by the way; they must
* be queens from my colony. Killing queens from the other solen colony does
* little to help me become Matriarch of this colony and will not count
* toward your task.
*
* Oh, and none of those nasty infiltrator queens either. They perform a necessary
* duty, I suppose, spying on the other colony. I fail to see why that couldn't be
* left totally to the warriors, though. Nevertheless, they do not count as well.
*
* Very well. Carry on. I'll be waiting for your return.
*/
return 1054061;
}
}
public override void OnRead()
{
this.System.AddObjective(new KillQueensObjective());
}
}
public class DuringKillQueensConversation : QuestConversation
{
public DuringKillQueensConversation()
{
}
public override object Message
{
get
{
/* The Solen queen looks up as you approach.
*
* You're back, but you have not yet eliminated 5 queens from my colony.
* Return when you have completed this task.
*
* Remember, by the way, that queens from the other solen colony and
* infiltrator queens do not count toward your task.
*
* Very well. Carry on. I'll be waiting for your return.
*/
return 1054066;
}
}
public override bool Logged
{
get
{
return false;
}
}
}
public class GatherFungiConversation : QuestConversation
{
public GatherFungiConversation()
{
}
public override object Message
{
get
{
/* The Solen queen looks pleased to see you.
*
* Splendid! You've done quite well in reducing my competition to become
* the next Matriarch. Now I must ask that you gather some zoogi fungus for me.
* I must practice processing it into powder of translocation.
*
* I believe the amount we agreed upon earlier was 50. Please return when
* you have that amount and then give them to me.
*
* Farewell for now.
*/
return 1054068;
}
}
public override void OnRead()
{
this.System.AddObjective(new GatherFungiObjective());
}
}
public class DuringFungiGatheringConversation : QuestConversation
{
public DuringFungiGatheringConversation()
{
}
public override object Message
{
get
{
/* The Solen queen looks up as you approach.
*
* Do you have the zoogi fungus?
*
* If so, give them to me. Otherwise, go gather some and then return to me.
*/
return 1054070;
}
}
public override bool Logged
{
get
{
return false;
}
}
}
public class EndConversation : QuestConversation
{
public EndConversation()
{
}
public override object Message
{
get
{
/* The Solen queen smiles as she takes the zoogi fungus from you.
*
* Wonderful! I greatly appreciate your help with these tasks. My plans are beginning
* to take shape ensuring that I will be the next Matriarch. But there is still
* much to be done until then.
*
* You've done what I've asked of you and for that I thank you. Please accept this
* bag of sending and some powder of translocation as a reward. Oh, and I suppose
* I should give you some gold as well. Yes, yes. Of course.
*/
return 1054073;
}
}
public override void OnRead()
{
bool bagOfSending = true;
bool powderOfTranslocation = true;
bool gold = true;
AmbitiousQueenQuest.GiveRewardTo(this.System.From, ref bagOfSending, ref powderOfTranslocation, ref gold);
if (!bagOfSending && !powderOfTranslocation && !gold)
{
this.System.Complete();
}
else
{
this.System.AddConversation(new FullBackpackConversation(true, bagOfSending, powderOfTranslocation, gold));
}
}
}
public class FullBackpackConversation : QuestConversation
{
private readonly bool m_Logged;
private bool m_BagOfSending;
private bool m_PowderOfTranslocation;
private bool m_Gold;
public FullBackpackConversation(bool logged, bool bagOfSending, bool powderOfTranslocation, bool gold)
{
this.m_Logged = logged;
this.m_BagOfSending = bagOfSending;
this.m_PowderOfTranslocation = powderOfTranslocation;
this.m_Gold = gold;
}
public FullBackpackConversation()
{
this.m_Logged = true;
}
public override object Message
{
get
{
/* The Solen queen looks at you with a smile.
*
* While I'd like to finish conducting our business, it seems that you're a
* bit overloaded with equipment at the moment.
*
* Perhaps you should free some room in your backpack before we proceed.
*/
return 1054077;
}
}
public override bool Logged
{
get
{
return this.m_Logged;
}
}
public override void OnRead()
{
if (this.m_Logged)
this.System.AddObjective(new GetRewardObjective(this.m_BagOfSending, this.m_PowderOfTranslocation, this.m_Gold));
}
public override void ChildDeserialize(GenericReader reader)
{
int version = reader.ReadEncodedInt();
this.m_BagOfSending = reader.ReadBool();
this.m_PowderOfTranslocation = reader.ReadBool();
this.m_Gold = reader.ReadBool();
}
public override void ChildSerialize(GenericWriter writer)
{
writer.WriteEncodedInt((int)0); // version
writer.Write((bool)this.m_BagOfSending);
writer.Write((bool)this.m_PowderOfTranslocation);
writer.Write((bool)this.m_Gold);
}
}
public class End2Conversation : QuestConversation
{
public End2Conversation()
{
}
public override object Message
{
get
{
/* The Solen queen looks up as you approach.
*
* Ah good, you've returned. I will conclude our business by giving you any
* remaining rewards I owe you for aiding me.
*/
return 1054078;
}
}
public override void OnRead()
{
this.System.Complete();
}
}
}