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


C# Items.Corpse类代码示例

本文整理汇总了C#中Server.Items.Corpse的典型用法代码示例。如果您正苦于以下问题:C# Corpse类的具体用法?C# Corpse怎么用?C# Corpse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Corpse类属于Server.Items命名空间,在下文中一共展示了Corpse类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddBodyParts

 public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
 {
     base.AddBodyParts( bpc, corpse );
     DragonHead head = new DragonHead();
     head.Hue = 0;
     bpc.DropItem( head );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:CopperDragon.cs

示例2: OnCarve

        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            if (corpse != null)
                corpse.DropItem(new DragonBlood(8));

            base.OnCarve(from, corpse, with);
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ColdDrake.cs

示例3: GenerateFurs

 public override int GenerateFurs(Corpse c)
 {
     Item i = new LightFur();
     i.Amount = 2;
     c.DropItem( i );
     return 2;
 }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:7,代码来源:PolarBear.cs

示例4: AddBodyParts

 public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
 {
     base.AddBodyParts( bpc, corpse );
     bpc.DropItem( new PorkHock( 1 ) );
     bpc.DropItem( new RawHam( 1 ) );
     bpc.DropItem( new RawBaconSlab( 1 ) );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:Piglet.cs

示例5: CorpseContent

		public CorpseContent( Mobile beholder, Corpse beheld ) : base( 0x3C )
		{
			ArrayList items = beheld.EquipItems;
			int count = items.Count;

			EnsureCapacity( 5 + (count * 19) );

			long pos = m_Stream.Position;

			int written = 0;

			m_Stream.Write( (ushort) 0 );

			for ( int i = 0; i < count; ++i )
			{
				Item child = (Item)items[i];

				if ( !child.Deleted && child.Parent == beheld && beholder.CanSee( child ) )
				{
					m_Stream.Write( (int) child.Serial );
					m_Stream.Write( (ushort) child.ItemID );
					m_Stream.Write( (byte) 0 ); // signed, itemID offset
					m_Stream.Write( (ushort) child.Amount );
					m_Stream.Write( (short) child.X );
					m_Stream.Write( (short) child.Y );
					m_Stream.Write( (int) beheld.Serial );
					m_Stream.Write( (ushort) child.Hue );

					++written;
				}
			}

			m_Stream.Seek( pos, SeekOrigin.Begin );
			m_Stream.Write( (ushort) written );
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:35,代码来源:Packets.cs

示例6: OnCarve

		public override void OnCarve( Mobile from, Corpse corpse, Item with )
		{
			base.OnCarve( from, corpse, with );

			corpse.DropItem( new Bloodmoss( Utility.RandomMinMax( 8, 16 ) ) );
			from.SendMessage( "You cut some bloodmoss from between the troll's toes; it remains on the corpse." );
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:7,代码来源:Troll.cs

示例7: CanUseWithDeed

 public static bool CanUseWithDeed(Mobile from, Corpse corpse)
 {
     if (corpse.IsCriminalAction(from))
     {
         from.SendMessage("You did not earn the right to use this creature in the deed.");
         return false;
     }
     else return true;
 }
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:9,代码来源:HuntBodUtility.cs

示例8: AddBodyParts

 public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
 {
     base.AddBodyParts( bpc, corpse );
     Ribs ribs = new Ribs( 3 );
     ribs.Hue = 2935;
     ribs.Name = "flesh";
     ribs.RotStage = RotStage.Rotten;
     bpc.DropItem( ribs );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:9,代码来源:LesserFleshGolem.cs

示例9: OnCarve

 public override void OnCarve(Mobile from, Corpse corpse, Item with)
 {
     if (!corpse.Carved)
     {
         corpse.DropItem(new TitanTooth());
         from.SendMessage("Vous arrachez une dent au titan");
     }
     
     base.OnCarve(from, corpse, with);
 }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:10,代码来源:Titan.cs

示例10: OnCarve

        public override void OnCarve(Mobile from, Corpse corpse)
        {
            if (corpse.Carved == false)
            {
                base.OnCarve(from, corpse);

                new Blood(Utility.RandomMinMax(4650, 4655)).MoveToWorld(corpse.Location, corpse.Map);
                new GoblinEars().MoveToWorld(corpse.Location, corpse.Map);
                corpse.Delete();
            }
        }
开发者ID:greeduomacro,项目名称:annox,代码行数:11,代码来源:GoblinElder.cs

示例11: CheckCorpseType

            public static bool CheckCorpseType(Mobile from, Corpse corpse, SmallBOD deed)
            {
                if (corpse != null && corpse.Owner != null)
                {
                    Type corpseOwnerType = corpse.Owner.GetType();

                    if (corpseOwnerType != null && deed.Type != null && corpseOwnerType == deed.Type)
                        return true;
                    else
                        from.SendMessage("The creature is not in the request.");
                }
                return false;
            }
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:13,代码来源:HuntBodUtility.cs

示例12: CheckUseWithDeedTime

            public static bool CheckUseWithDeedTime(Mobile from, Corpse corpse)
            {
                DateTime dtCannAdd = corpse.TimeOfDeath + TimeSpan.FromSeconds(30.0);
                if (dtCannAdd > DateTime.Now)
                {
                    TimeSpan ts = dtCannAdd - DateTime.Now;

                    if (ts < TimeSpan.Zero)
                        ts = TimeSpan.Zero;

                    from.SendMessage("This corpse cannot be added yet, try again in {0} seconds.", ts.Seconds);
                    return false;
                }
                else return true;
            }
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:15,代码来源:HuntBodUtility.cs

示例13: OnCarve

        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            if (corpse.Carved)
                base.OnCarve(from, corpse, with);

            if (Utility.RandomDouble() < 0.15)
            {
                if (!from.CheckSkill(SkillName.Forensics, 30, 80))
                    from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
                else
                {
                    corpse.DropItem(new ReptiledRelic());
                    from.SendMessage("Un pan de cuir se détache du ventre de la bête");
                }
            }
            base.OnCarve(from, corpse, with);
        }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:17,代码来源:GreaterDragon.cs

示例14: OnCarve

        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            if (corpse.Carved)
                base.OnCarve(from, corpse, with);

            if (Utility.RandomDouble() < 0.15)
            {
                if (!from.CheckSkill(SkillName.Forensics, 30, 80))
                    from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
                else
                {
                    corpse.DropItem(new ElementalRelic());
                    from.SendMessage("L'élémental se crystallise");
                }
            }
            base.OnCarve(from, corpse, with);
        }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:17,代码来源:ToxicElemental.cs

示例15: OnCarve

        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            if (corpse.Carved)
                base.OnCarve(from, corpse, with);

            if (Utility.RandomDouble() < 0.15)
            {
                if (!from.CheckSkill(SkillName.Forensics, 30, 80))
                    from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
                else
                {
                    corpse.DropItem(new UndeadRelic());
                    from.SendMessage("Vous arrachez un morceau de chair à la liche");
                }
            }
            base.OnCarve(from, corpse, with);
        }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:17,代码来源:AncientLich.cs


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