Пример #1
0
        private void GateTravel()
        {
            RunebookEntry e = Atlas.Entries[Selected];

            if (RunebookGump.HasSpell(User, 51))
            {
                string coords = ToCoordinates(e.Location, e.Map);

                if (coords != "Nowhere")
                {
                    User.SendMessage(ToCoordinates(e.Location, e.Map));
                }

                Atlas.OnTravel();

                if (new GateTravelSpell(User, null, e).Cast())
                {
                    Atlas.NextUse = DateTime.UtcNow;
                }
            }
            else
            {
                User.SendLocalizedMessage(500015); // You do not have that spell!
            }

            Atlas.Openers.Remove(User);
        }
Пример #2
0
        private void RecallSpell()
        {
            RunebookEntry e = Atlas.Entries[Selected];

            if (RunebookGump.HasSpell(User, 31))
            {
                SendLocationMessage(e, User);

                Atlas.OnTravel();
                new RecallSpell(User, null, e, null).Cast();
            }
            else
            {
                User.SendLocalizedMessage(500015); // You do not have that spell!
            }

            Atlas.Openers.Remove(User);
        }
Пример #3
0
        private void RecallSpell()
        {
            RunebookEntry e = Atlas.Entries[Selected];

            if (RunebookGump.HasSpell(User, 31))
            {
                string coords = ToCoordinates(e.Location, e.Map);

                if (coords != "unknown")
                {
                    User.SendMessage(ToCoordinates(e.Location, e.Map));
                }

                Atlas.OnTravel();
                new RecallSpell(User, null, e, null).Cast();
            }

            Atlas.Openers.Remove(User);
        }
Пример #4
0
        private void SacredJourney()
        {
            RunebookEntry e = Atlas.Entries[Selected];

            if (RunebookGump.HasSpell(User, 209))
            {
                SendLocationMessage(e, User);

                Atlas.OnTravel();
                new SacredJourneySpell(User, null, e, null).Cast();
                Atlas.NextUse = DateTime.UtcNow;
            }
            else
            {
                User.SendLocalizedMessage(500015); // You do not have that spell!
            }

            Atlas.Openers.Remove(User);
        }
Пример #5
0
        private void GateTravel()
        {
            RunebookEntry e = Atlas.Entries[Selected];

            if (RunebookGump.HasSpell(User, 51))
            {
                SendLocationMessage(e, User);

                Atlas.OnTravel();

                if (new GateTravelSpell(User, null, e).Cast())
                {
                    Atlas.NextUse = DateTime.UtcNow;
                }
            }
            else
            {
                User.SendLocalizedMessage(500015); // You do not have that spell!
            }

            Atlas.Openers.Remove(User);
        }