• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Items.Corpse类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: AnimateCorpse

		public void AnimateCorpse( Corpse corp, Mobile caster )
		{
			if ( corp != null )
			{
				Corpse c = corp;
				
				Point3D p = c.GetWorldLocation();
				Map map = c.Map;

				if ( map != null )
				{
					Effects.PlaySound( p, map, 0x1FB );
					Effects.SendLocationParticles( EffectItem.Create( p, map, EffectItem.DefaultDuration ), 0x3789, 1, 40, 0x3F, 3, 9907, 0 );

					Timer.DelayCall( TimeSpan.FromSeconds( 2.0 ), new TimerStateCallback( SummonDelay_Callback ), new object[]{ caster, c, p, map } );
				}
			}
		}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:18,代码来源:BookOfTheDead.cs


示例17: OnCarve

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

            TransformContext context = TransformationSpellHelper.GetContext(from);
            if (context != null && context.Spell is NecromancerSpell && Utility.RandomDouble() < 0.3) 
			{
                corpse.DropItem(new GlowingOre(Utility.Random(2,3)));
                from.SendMessage("Le Wisp se fige à votre toucher");
            }
            else if (Utility.RandomDouble() < .1)
            {
                corpse.DropItem(new GlowingOre());
                from.SendMessage("Seulement une partie du wisp se fige. Vous ne deviez pas être assez effrayant...");
            }
            base.OnCarve(from, corpse, with);
        }
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:18,代码来源:Wisp.cs


示例18: CorpseEquip

		public CorpseEquip(Mobile beholder, Corpse beheld)
			: base(0x89)
		{
			var list = beheld.EquipItems;

			int count = list.Count;
			if (beheld.Hair != null && beheld.Hair.ItemID > 0)
			{
				count++;
			}
			if (beheld.FacialHair != null && beheld.FacialHair.ItemID > 0)
			{
				count++;
			}

			EnsureCapacity(8 + (count * 5));

			m_Stream.Write(beheld.Serial);

			for (int i = 0; i < list.Count; ++i)
			{
				Item item = list[i];

				if (!item.Deleted && beholder.CanSee(item) && item.Parent == beheld)
				{
					m_Stream.Write((byte)(item.Layer + 1));
					m_Stream.Write(item.Serial);
				}
			}

			if (beheld.Hair != null && beheld.Hair.ItemID > 0)
			{
				m_Stream.Write((byte)(Layer.Hair + 1));
				m_Stream.Write(HairInfo.FakeSerial(beheld.Owner) - 2);
			}

			if (beheld.FacialHair != null && beheld.FacialHair.ItemID > 0)
			{
				m_Stream.Write((byte)(Layer.FacialHair + 1));
				m_Stream.Write(FacialHairInfo.FakeSerial(beheld.Owner) - 2);
			}

			m_Stream.Write((byte)Layer.Invalid);
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:44,代码来源:Packets.cs


示例19: FinalEffect

        public static void FinalEffect( Mobile caster, Corpse corpse, BaseCreature creature, XmlSpiritSummoning att )
        {
            int power = 1;

            if( creature.Fame > 5000 )
                power = creature.Fame / 5000;

            GenericWarrior summoned = new GenericWarrior();

            summoned.RawHits = 75 * power;
            summoned.Hits = summoned.RawHits;
            summoned.DamageMin = 15 + ( 2 * power );
            summoned.DamageMax = 20 + ( 2 * power );
            summoned.BodyValue = creature.BodyValue;
            summoned.BaseSoundID = 442;
            summoned.Hue = 12345678;
            summoned.Name = "A Summoned Spirit";

            if( summoned.BodyValue == 400 || summoned.BodyValue == 401 )
            {
                Club club = new Club();
                club.Hue = 12345678;
                summoned.EquipItem( club );
                summoned.EquipItem( new RaggedPants( 12345678 ) );
                summoned.EquipItem( new Shirt( 12345678 ) );
                summoned.HairItemID = creature.HairItemID;
                summoned.HairHue = 12345678;
                summoned.FacialHairItemID = creature.FacialHairItemID;
                summoned.FacialHairHue = 12345678;
                summoned.HasNoCorpse = true;
            }

            corpse.Channeled = true;
            Summon( caster, summoned, 30, 534, false );
            summoned.Location = corpse.Location;
            summoned.Emote( "*is summoned from the spirit realm to serve " + caster.Name + "*" );

            if( att != null )
            {
                att.NextUseAllowed = DateTime.Now + att.CoolDown;
                att.Summoned = summoned;
            }
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:43,代码来源:SpiritSummoning.cs


示例20: CorpseEquip

		public CorpseEquip( Mobile beholder, Corpse beheld ) : base( 0x89 )
		{
			ArrayList list = beheld.EquipItems;

			EnsureCapacity( 8 + (list.Count * 5) );

			m_Stream.Write( (int) beheld.Serial );

			for ( int i = 0; i < list.Count; ++i )
			{
				Item item = (Item)list[i];

				if ( !item.Deleted && beholder.CanSee( item ) && item.Parent == beheld )
				{
					m_Stream.Write( (byte) (item.Layer + 1) );
					m_Stream.Write( (int) item.Serial );
				}
			}

			m_Stream.Write( (byte) Layer.Invalid );
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:21,代码来源:Packets.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Items.DyeTub类代码示例发布时间:2022-05-26
下一篇:
C# Items.Container类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap