示例#1
0
            protected override void OnTarget(Mobile from, object o)
            {
                if (o is Item)
                {
                    Item item = (Item)o;

                    if (!item.IsChildOf(from.Backpack))
                    {
                        from.SendLocalizedMessage(1054107); // This item must be in your backpack.
                        return;
                    }

                    if (item.GetType().Name == m_Plate.Type.ToString())
                    {
                        from.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1154256); // *You place the reagent on the plate and hear an ominous click in the background...*
                        item.MoveToWorld(m_Plate.GetWorldTop(), m_Plate.Map);
                        item.Movable = false;
                        m_Plate.Reg  = item;
                    }
                    else
                    {
                        from.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1154255); // *You place the item on the plate but it simply melts away. You had better search for a more pure reagent*
                    }
                }
            }
示例#2
0
            protected override void OnTarget(Mobile from, object o)
            {
                if (o is Item)
                {
                    Item item = (Item)o;

                    if (!item.IsChildOf(from.Backpack))
                    {
                        from.SendLocalizedMessage(1054107); // This item must be in your backpack.
                        return;
                    }

                    if (!CheckRegs(item))
                    {
                        from.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1154255); // *You place the item on the plate but it simply melts away. You had better search for a more pure reagent*
                        return;
                    }

                    PlayerMobile pm = (PlayerMobile)from;

                    if (pm.ExploringTheDeepQuest != ExploringTheDeepQuestChain.Sorcerers)
                    {
                        from.SendLocalizedMessage(1154325); // You feel as though by doing this you are missing out on an important part of your journey...
                        return;
                    }

                    if (item.GetType().Name == m_Plate.Type.ToString())
                    {
                        from.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1154256); // *You place the reagent on the plate and hear an ominous click in the background...*
                        item.MoveToWorld(m_Plate.GetWorldTop(), m_Plate.Map);
                        item.Movable = false;
                        m_Plate.Reg  = item;
                    }
                    else
                    {
                        from.SendLocalizedMessage(500309); // Nothing Happens.
                    }
                }
            }