当前位置: 首页>>代码示例>>C#>>正文


C# Item.PublicOverheadMessage方法代码示例

本文整理汇总了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...
        }
开发者ID:Crylian,项目名称:ServUO,代码行数:30,代码来源:BaseHouse.cs

示例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.
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:31,代码来源:BaseHouse.cs

示例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.
            }
        }
开发者ID:Crylian,项目名称:ServUO,代码行数:23,代码来源:BaseHouse.cs

示例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.
			}
		}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:20,代码来源:BaseHouse.cs

示例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.
            }
        }
开发者ID:ITLongwell,项目名称:Ulmeta,代码行数:20,代码来源:BaseHouse.cs

示例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.
 }
开发者ID:FreeReign,项目名称:forkuo,代码行数:5,代码来源:PlagueBeastOrgans.cs

示例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...
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:25,代码来源:BaseHouse.cs

示例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...
            }
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:22,代码来源:BaseHouse.cs


注:本文中的Item.PublicOverheadMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。