예제 #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.
            }
        }
예제 #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);
            }
        }