Example #1
0
        public override void OnDoubleClick(Mobile from)
        {
            RobeofRite             robe   = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;
            ExodusSacrificalDagger dagger = from.FindItemOnLayer(Layer.OneHanded) as ExodusSacrificalDagger;

            bool alter = false;

            foreach (Item item in GetItemsInRange(5))
            {
                if (item is ExodusTomeAltar)
                {
                    alter = true;
                    break;
                }
            }

            if (robe != null && dagger != null && alter)
            {
                from.SendLocalizedMessage(1153604); // Target the summoning tome or yourself to declare your intentions for performing this ritual...
                ExodusTomeAltar.RitualTarget(this, from, null);
            }
            else
            {
                base.OnDoubleClick(from);
            }
        }
        public override void OnDoubleClick(Mobile from)
        {
            if (IsChildOf(from.Backpack))
            {
                RobeofRite             robe   = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;
                ExodusSacrificalDagger dagger = from.FindItemOnLayer(Layer.OneHanded) as ExodusSacrificalDagger;

                if (robe != null && dagger != null)
                {
                    if (robe.CoolDown != TimeSpan.Zero)
                    {
                        from.SendLocalizedMessage(1153599); // You've already used this item in another ritual.
                        return;
                    }

                    if (PeerlessExodusAltar.m_Rituals != null)
                    {
                        if (PeerlessExodusAltar.m_Rituals.Count != 0)
                        {
                            from.SendLocalizedMessage(1153600); // Which Summoning Tome do you wish to use this on?
                            ExodusTomeAltar.RitualTarget(this, from, robe);
                        }
                    }
                }
            }
            else
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
            }
        }
Example #3
0
        public override void OnDoubleClick(Mobile from)
        {
            RobeofRite             robe   = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;
            ExodusSacrificalDagger dagger = from.FindItemOnLayer(Layer.OneHanded) as ExodusSacrificalDagger;

            if (robe != null && dagger != null)
            {
                if (PeerlessExodusAltar.m_Rituals != null)
                {
                    if (PeerlessExodusAltar.m_Rituals.Count != 0)
                    {
                        from.SendLocalizedMessage(1153604); // Target the summoning tome or yourself to declare your intentions for performing this ritual...
                        ExodusTomeAltar.RitualTarget(this, from, null);
                    }
                }
            }
            else
            {
                base.OnDoubleClick(from);
            }
        }
Example #4
0
        public override void OnDoubleClick(Mobile from)
        {
            RobeofRite             robe   = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;
            ExodusSacrificalDagger dagger = from.FindItemOnLayer(Layer.OneHanded) as ExodusSacrificalDagger;

            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1054107); // This item must be in your backpack.
            }
            else if (Party.Get(from) == null)
            {
                from.SendLocalizedMessage(1153596); // You must join a party with the players you wish to perform the ritual with.
            }
            else if (robe == null || dagger == null)
            {
                from.SendLocalizedMessage(1153591); // Thou art not properly attired to perform such a ritual.
            }
            else
            {
                from.SendLocalizedMessage(1153600); // Which Summoning Tome do you wish to use this on?
                from.Target = new RiteTarget(this);
            }
        }
Example #5
0
        public override void OnDoubleClick(Mobile from)
        {
            RobeofRite             robe   = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;
            ExodusSacrificalDagger dagger = from.FindItemOnLayer(Layer.OneHanded) as ExodusSacrificalDagger;

            if (Party.Get(from) == null)
            {
                from.SendLocalizedMessage(1153596); // You must join a party with the players you wish to perform the ritual with.
            }
            else if (robe == null || dagger == null)
            {
                from.SendLocalizedMessage(1153591); // Thou art not properly attired to perform such a ritual.
            }
            else if (!((PlayerMobile)from).UseSummoningRite)
            {
                from.SendLocalizedMessage(1153603); // You must first use the Summoning Rite on a Summoning Tome.
            }
            else
            {
                from.SendLocalizedMessage(1153604); // Target the summoning tome or yourself to declare your intentions for performing this ritual...
                from.Target = new SacrificalTarget(this);
            }
        }