コード例 #1
0
ファイル: Shaft.cs プロジェクト: phpjunkie420/RunUO
        protected override void OnTarget(Mobile from, object target)
        {
            if (m_Shaft.Deleted || m_Shaft.RootParent != from)
            {
                return;
            }

            if (target is Feather)
            {
                Item     item  = (Item)target;
                BaseTool tools = new FletcherTools();

                if (item.RootParent != from)
                {
                    from.SendAsciiMessage("Can't use shafts on that.");
                    //from.SendLocalizedMessage(500509); // You cannot bless that object
                }
                else
                {
                    from.SendMenu(new BowFletchingMenu(from, BowFletchingMenu.Arrows(from), "Main", tools));
                }
            }
            else
            {
                from.SendAsciiMessage("Can't use shafts on that.");
            }
        }