ModernUO/Projects/UOContent/Engines/Quests/Dark Tides/Items/DarkTidesTeleporter.cs
2023-10-09 23:58:04 -07:00

59 lines
1.6 KiB
C#

using ModernUO.Serialization;
using Server.Mobiles;
namespace Server.Engines.Quests.Necro;
[SerializationGenerator(0, false)]
public partial class DarkTidesTeleporter : DynamicTeleporter
{
[Constructible]
public DarkTidesTeleporter()
{
}
public override bool GetDestination(PlayerMobile player, ref Point3D loc, ref Map map)
{
var qs = player.Quest;
if (qs is DarkTidesQuest)
{
if (qs.IsObjectiveInProgress(typeof(FindMaabusTombObjective)))
{
loc = new Point3D(2038, 1263, -90);
map = Map.Malas;
qs.AddConversation(new RadarConversation());
return true;
}
if (qs.IsObjectiveInProgress(typeof(FindCrystalCaveObjective)))
{
loc = new Point3D(1194, 521, -90);
map = Map.Malas;
return true;
}
if (qs.IsObjectiveInProgress(typeof(FindCityOfLightObjective)))
{
loc = new Point3D(1091, 519, -90);
map = Map.Malas;
return true;
}
if (qs.IsObjectiveInProgress(typeof(ReturnToCrystalCaveObjective)))
{
loc = new Point3D(1194, 521, -90);
map = Map.Malas;
return true;
}
if (DarkTidesQuest.HasLostCallingScroll(player))
{
loc = new Point3D(1194, 521, -90);
map = Map.Malas;
return true;
}
}
return false;
}
}