Exemple #1
0
        public bool CheckCarve(Item item)
        {
            if (Quest == null)
            {
                return(true);
            }

            FishQuestObjective obj = Quest.GetObjective();

            if (obj.CheckLift(item))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public override bool OnDragDropInto(Mobile from, Item dropped, Point3D p)
        {
            if (dropped is BaseHighseasFish && Quest != null)
            {
                FishQuestObjective obj = Quest.GetObjective();

                if (obj != null && obj.CheckLift(dropped) && base.OnDragDropInto(from, dropped, p))
                {
                    obj.Update(dropped);
                    InvalidateProperties();
                    return(true);
                }
            }

            from.SendLocalizedMessage(1116461); // This is not needed to fill the order.
            return(false);
        }
Exemple #3
0
        public override bool CheckLift(Mobile from, Item item, ref LRReason reject)
        {
            if (Quest == null)
            {
                return(base.CheckLift(from, item, ref reject));
            }

            FishQuestObjective obj = Quest.GetObjective();

            if (obj != null && obj.CheckLift(item))
            {
                reject = LRReason.CannotLift;
                return(false);
            }

            return(true);
        }
Exemple #4
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (dropped is BaseHighseasFish && m_Quest != null)
            {
                FishQuestObjective obj = m_Quest.GetObjective();

                if (obj != null && obj.CheckLift(dropped) && base.OnDragDrop(from, dropped))
                {
                    obj.Update(dropped);
                    InvalidateProperties();
                    return(true);
                }
            }

            from.SendLocalizedMessage(1072355, null, 0x23); // That item does not match any of your quest criteria
            return(false);
        }