branch sync, Constructable can now have an accesslevel defined.
This commit is contained in:
parent
fede41b710
commit
5d78b17be1
7 changed files with 52 additions and 11 deletions
|
|
@ -174,6 +174,17 @@ namespace Server.Items
|
|||
return base.CheckLift( from, item, ref reject );
|
||||
}
|
||||
|
||||
public override bool CheckItemUse( Mobile from, Item item )
|
||||
{
|
||||
if ( item != this && from.AccessLevel < AccessLevel.GameMaster && IsDecoContainer )
|
||||
{
|
||||
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
|
||||
return false;
|
||||
}
|
||||
|
||||
return base.CheckItemUse( from, item );
|
||||
}
|
||||
|
||||
public bool CheckHold( Mobile m, Item item, bool message )
|
||||
{
|
||||
return CheckHold( m, item, message, true, 0, 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue