本文整理汇总了C#中Item.PublicOverheadMessage方法的典型用法代码示例。如果您正苦于以下问题:C# Item.PublicOverheadMessage方法的具体用法?C# Item.PublicOverheadMessage怎么用?C# Item.PublicOverheadMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Item
的用法示例。
在下文中一共展示了Item.PublicOverheadMessage方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReleaseSecure
public void ReleaseSecure(Mobile m, Item item)
{
if (this.m_Secures == null || !this.IsOwner(m) || item is StrongBox || !this.IsActive)
return;
for (int i = 0; i < this.m_Secures.Count; ++i)
{
SecureInfo info = (SecureInfo)this.m_Secures[i];
if (info.Item == item && this.HasSecureAccess(m, info.Level))
{
item.IsLockedDown = false;
item.IsSecure = false;
#region Mondain's Legacy
if (item is BaseAddonContainer)
item.Movable = false;
else
#endregion
item.Movable = true;
item.SetLastMoved();
item.PublicOverheadMessage(Server.Network.MessageType.Label, 0x3B2, 501656);//[no longer secure]
this.m_Secures.RemoveAt(i);
return;
}
}
m.SendLocalizedMessage(501717);//This isn't secure...
}
示例2: Release
public void Release(Mobile m, Item item)
{
if (!IsCoOwner(m) || !IsActive)
{
return;
}
if (IsLockedDown(item))
{
item.PublicOverheadMessage(MessageType.Label, 0x3B2, 501657); //[no longer locked down]
SetLockdown(item, false);
//TidyItemList( m_LockDowns );
if (item is RewardBrazier)
{
((RewardBrazier) item).TurnOff();
}
if (item is ISecurable)
{
((ISecurable) item).Level = SecureLevel.Owner;
}
}
else if (IsSecure(item))
{
ReleaseSecure(m, item);
}
else
{
m.LocalOverheadMessage(MessageType.Regular, 0x3E9, 1010416); // This is not locked down or secured.
}
}
示例3: Release
public void Release(Mobile m, Item item)
{
if (!this.IsCoOwner(m) || !this.IsActive)
return;
if (this.IsLockedDown(item))
{
item.PublicOverheadMessage(Server.Network.MessageType.Label, 0x3B2, 501657);//[no longer locked down]
this.SetLockdown(item, false);
//TidyItemList( m_LockDowns );
if (item is RewardBrazier)
((RewardBrazier)item).TurnOff();
}
else if (this.IsSecure(item))
{
this.ReleaseSecure(m, item);
}
else
{
m.LocalOverheadMessage(MessageType.Regular, 0x3E9, 1010416); // This is not locked down or secured.
}
}
示例4: Release
public void Release( Mobile m, Item item )
{
if ( !IsCoOwner( m ) )
return;
if ( IsLockedDown( item ) )
{
item.PublicOverheadMessage( Server.Network.MessageType.Label, 0x3B2, 501657 );//[no longer locked down]
SetLockdown( item, false );
}
else if ( IsSecure( item ) )
{
item.PublicOverheadMessage(Server.Network.MessageType.Label, 0x3B2, 501657);//[no longer locked down]
SetSecure( item, false );
}
else
{
m.LocalOverheadMessage( MessageType.Regular, 0x3E9, 1010416 ); // This is not locked down or secured.
}
}
示例5: Release
public void Release( Mobile m, Item item )
{
if( !IsCoOwner(m) || !IsActive )
return;
if( IsLockedDown(item) || (item is HitchingPost && !item.Movable) )
{
item.PublicOverheadMessage(Server.Network.MessageType.Label, 0x3B2, 501657);//[no longer locked down]
SetLockdown(item, false);
//TidyItemList( m_LockDowns );
}
else if( IsSecure(item) )
{
ReleaseSecure(m, item);
}
else
{
m.LocalOverheadMessage(MessageType.Regular, 0x3E9, 1010416); // This is not locked down or secured.
}
}
示例6: Carve
public override void Carve(Mobile from, Item with)
{
if (this.IsAccessibleTo(from))
with.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071896); // This is too crude an implement for such a procedure.
}
示例7: ReleaseSecure
public void ReleaseSecure( Mobile m, Item item )
{
if ( m_Secures == null || !IsOwner( m ) || item is StrongBox || !IsActive )
{
return;
}
for ( int i = 0; i < m_Secures.Count; ++i )
{
SecureInfo info = (SecureInfo) m_Secures[i];
if ( info.Item == item && HasSecureAccess( m, info.Level ) )
{
item.IsLockedDown = false;
item.IsSecure = false;
item.Movable = true;
item.SetLastMoved();
item.PublicOverheadMessage( Server.Network.MessageType.Label, 0x3B2, 501656 ); //[no longer secure]
m_Secures.RemoveAt( i );
return;
}
}
m.SendLocalizedMessage( 501717 ); //This isn't secure...
}
示例8: Release
public void Release( Mobile m, Item item )
{
if ( !IsCoOwner( m ) || !IsActive )
{
return;
}
if ( IsLockedDown( item ) )
{
item.PublicOverheadMessage( Server.Network.MessageType.Label, 0x3B2, 501657 ); //[no longer locked down]
SetLockdown( item, false );
//TidyItemList( m_LockDowns );
}
else if ( IsSecure( item ) )
{
ReleaseSecure( m, item );
}
else
{
m.SendLocalizedMessage( 501722 ); //That isn't locked down...
}
}