LockDown() 공개 메소드

public LockDown ( Mobile m, Item item ) : bool
m Mobile
item Item
리턴 bool
예제 #1
0
        public bool OnHouseItemTarget(Mobile from, Item targeted, BaseHouse house)
        {
            if (targeted == null || house == null || !from.Alive || house.Deleted)
                return false;

            if (house.HouseKeyVal != KeyValue)
            {
                from.SendAsciiMessage("You must use the house key to lock down items.");
                return false;
            }
            if (house.IsLockedDown(targeted))
            {
                house.Release(from, targeted);
                from.SendAsciiMessage("The item has been unlocked from the structure.");
                return true;
            }
            if (house.LockDown(from, targeted))
            {
                from.SendAsciiMessage("The item has been locked down.");
                return true;
            }
            
            return false;
        }