Exemplo n.º 1
0
        public override void SendSuccessTo(Mobile from, Item item, HarvestResource resource)
        {
            if (item != null)
            {
                if (item.GetType().IsSubclassOf(typeof(BaseWoodBoard)))
                {
                    from.SendLocalizedMessage(1158776); // The axe magically creates boards from your logs.
                    return;
                }

                for (var index = 0; index < m_Definition.Resources.Length; index++)
                {
                    HarvestResource res = m_Definition.Resources[index];

                    if (res.Types != null)
                    {
                        for (var i = 0; i < res.Types.Length; i++)
                        {
                            Type type = res.Types[i];

                            if (item.GetType() == type)
                            {
                                res.SendSuccessTo(from);
                                return;
                            }
                        }
                    }
                }
            }

            base.SendSuccessTo(from, item, resource);
        }
Exemplo n.º 2
0
        public override void SendSuccessTo(Mobile from, Item item, HarvestResource resource)
        {
            if (item is BaseGranite)
            {
                from.SendLocalizedMessage(1044606); // You carefully extract some workable stone from the ore vein!
            }
            else if (item is IGem)
            {
                from.SendLocalizedMessage(1112233); // You carefully extract a glistening gem from the vein!
            }
            else if (item != null)
            {
                for (var index = 0; index < OreAndStone.Resources.Length; index++)
                {
                    HarvestResource res = OreAndStone.Resources[index];

                    if (res.Types != null)
                    {
                        for (var i = 0; i < res.Types.Length; i++)
                        {
                            Type type = res.Types[i];

                            if (item.GetType() == type)
                            {
                                res.SendSuccessTo(from);
                                return;
                            }
                        }
                    }
                }

                base.SendSuccessTo(from, item, resource);
            }
        }
Exemplo n.º 3
0
		public virtual void SendSuccessTo( Mobile from, Item item, HarvestResource resource )
		{
			resource.SendSuccessTo( from );
		}
Exemplo n.º 4
0
 public virtual void SendSuccessTo(Mobile from, Item item, HarvestResource resource)
 {
     resource.SendSuccessTo(from);
 }