Наследование: BasePlayerBB
Пример #1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendAsciiMessage("That must be in your pack for you to use it.");
                return;
            }

            BaseHouse house = BaseHouse.FindHouseAt(from);

            if (house != null && house.IsOwner(from))
            {
                Delete();

                PlayerBBEast bbe = new PlayerBBEast();
                bbe.MoveToWorld(from.Location, from.Map);
            }
            else
            {
                from.SendAsciiMessage("You must place this in a house you own");
            }
        }
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendAsciiMessage("That must be in your pack for you to use it.");
                return;
            }

            BaseHouse house = BaseHouse.FindHouseAt(from);
            if (house != null && house.IsOwner(from))
            {
                Delete();

                PlayerBBEast bbe = new PlayerBBEast();
                bbe.MoveToWorld(from.Location, from.Map);
            }
            else
                from.SendAsciiMessage("You must place this in a house you own");

        }