Exemple #1
0
            protected override void OnTarget(Mobile from, object target)
            {
                if (target != null)
                {
                    if (target is ScavengerItem)
                    {
                        from.SendMessage("You put the item in your basket for safekeeping");
                        ((ScavengerItem)target).Delete();

                        theBasket.m_items++;
                        theBasket.InvalidateProperties();
                        theBasket.m_LastAcquiredItem = DateTime.Now;

                        from.RevealingAction();
                    }
                    else
                    {
                        from.SendMessage("That's not a scavenger hunt item!");
                    }
                }
            }