public static void TeleportFrom(Mobile m, DreamSerpentCharm charm, bool completeQuest) { BaseCreature.TeleportPets(m, new Point3D(662, 3819, -43), Map.TerMur); m.MoveToWorld(new Point3D(662, 3819, -43), Map.TerMur); m.FixedParticles(0x373A, 10, 15, 5018, EffectLayer.Waist); if (charm._Timer != null) { charm._Timer.Stop(); charm._Timer = null; } charm._NextUse = DateTime.UtcNow + Cooldown; if (!completeQuest && m is PlayerMobile) { var quest = QuestHelper.GetQuest <CatchMeIfYouCanQuest>((PlayerMobile)m); quest.Objectives[0].CurProgress = 0; } }
public static void CompleteQuest(Mobile m) { DreamSerpentCharm charm = m.Backpack.FindItemByType <DreamSerpentCharm>(); TeleportFrom(m, charm, true); }