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


C# Items.AddonComponent类代码示例

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


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

示例1: MLTree18Addon

		public MLTree18Addon()
		{
			AddonComponent ac = null;
			ac = new AddonComponent( 15053 );
			AddComponent( ac, 3, -1, 0 );
			ac = new AddonComponent( 15052 );
			AddComponent( ac, 3, 0, 0 );
			ac = new AddonComponent( 15051 );
			AddComponent( ac, -3, 1, 0 );
			ac = new AddonComponent( 15050 );
			AddComponent( ac, -3, 1, 0 );
			ac = new AddonComponent( 15049 );
			AddComponent( ac, -2, 1, 0 );
			ac = new AddonComponent( 15048 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 15047 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 15046 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 15045 );
			AddComponent( ac, 2, 1, 0 );
			ac = new AddonComponent( 15044 );
			AddComponent( ac, 3, 1, 0 );

		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:25,代码来源:MLTree18Addon.cs

示例2: OnComponentUsed

		public override void OnComponentUsed( AddonComponent c, Mobile from )
		{
			if ( from.InRange( c.Location, 2 ) )
			{
				if ( m_Fruits > 0 )
				{
					Item fruit = Fruit;

					if ( fruit == null )
						return;

					if ( !from.PlaceInBackpack( fruit ) )
					{
						fruit.Delete();
						from.SendLocalizedMessage( 501015 ); // There is no room in your backpack for the fruit.
					}
					else
					{
						if ( --m_Fruits == 0 )
							Timer.DelayCall( TimeSpan.FromMinutes( 30 ), new TimerCallback( Respawn ) );

						from.SendLocalizedMessage( 501016 ); // You pick some fruit and put it in your backpack.
					}
				}
				else
					from.SendLocalizedMessage( 501017 ); // There is no more fruit on this tree
			}
			else
				from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:FruitTrees.cs

示例3: HarvestWreathEAddon

        public HarvestWreathEAddon()
        {
            AddonComponent ac = null;
            ac = new AddonComponent( 9005 );
            ac.Hue = 2117;
            AddComponent( ac, 0, 0, 0 );

            ac = new AddonComponent( 3196 );
            AddComponent( ac, 0, 0, 14 );

            ac = new AddonComponent( 3193 );
            AddComponent( ac, 0, 0, 17 );

            ac = new AddonComponent( 3192 );
            AddComponent( ac, 0, 0, 14 );

            ac = new AddonComponent( 3354 );
            AddComponent( ac, 0, 1, 15 );

            ac = new AddonComponent( 3181 );
            AddComponent( ac, 0, 0, 14 );

            ac = new AddonComponent( 3180 );
            AddComponent( ac, 0, 1, 15 );

            ac = new AddonComponent( 3187 );
            AddComponent( ac, 0, 0, 10 );

            ac = new AddonComponent( 2512 );
            AddComponent( ac, 0, 0, 16 );
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:31,代码来源:HarvestWreathEAddon.cs

示例4: OrangeBlossomTreeAddon

 public OrangeBlossomTreeAddon()
 {
     AddonComponent ac = null;
     ac = new AddonComponent( 3280 );
     AddComponent( ac, 0, 0, 0 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, -1, 1, 25 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 1, -1, 27 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 1, 1, 45 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 0, 1, 36 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 1, 0, 36 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 0, 1, 25 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 1, 0, 25 );
     ac = new AddonComponent( 3265 );
     AddComponent( ac, 1, 1, 36 );
     ac = new AddonComponent( 3264 );
     AddComponent( ac, 1, -1, 21 );
     ac = new AddonComponent( 3264 );
     AddComponent( ac, -1, 1, 13 );
     ac = new AddonComponent( 3264 );
     AddComponent( ac, 1, 0, 20 );
 }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:28,代码来源:OrangeBlossomTreeAddon.cs

示例5: OnComponentUsed

        public override void OnComponentUsed(AddonComponent c, Mobile from)
		{
			if(from.InRange(c.Location, 3) && from.Backpack != null)
			{
				foreach(WispOrb orb in WispOrb.Orbs)
				{
					if(orb.Owner == from)
					{
						LabelTo(from, 1153357); // Thou can guide but one of us.
						return;
					}
				}
				
				Alignment alignment = Alignment.Neutral;
				
				if(from.Karma > 0 && m_Alignment == Alignment.Good)
					alignment = Alignment.Good;
				else if (from.Karma < 0 && m_Alignment == Alignment.Evil)
					alignment = Alignment.Evil;
					
				if(alignment != Alignment.Neutral)
				{
                    WispOrb orb = new WispOrb(from, alignment);
					from.Backpack.DropItem(orb);

                    Timer.DelayCall(TimeSpan.FromSeconds(0.5), new TimerStateCallback(SendMessage_Callback), new object[] { orb, from } );
				}
				else
					LabelTo(from, 1153350); // Thy spirit be not compatible with our goals!
			}
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:31,代码来源:DespiseAnkh.cs

示例6: MarketStandSouthEmptyAddon

		public MarketStandSouthEmptyAddon()
		{
			AddComponent( new AddonComponent( 2938 ), 0, 0, 1 );
			AddComponent( new AddonComponent( 6787 ), 0, -1, 0 );
			AddComponent( new AddonComponent( 2938 ), 0, -1, 1 );
			AddComponent( new AddonComponent( 6786 ), 0, 2, 0 );
			AddComponent( new AddonComponent( 6787 ), 0, 1, 0 );
			AddComponent( new AddonComponent( 2938 ), 0, 1, 1 );
			AddonComponent ac;
			ac = new AddonComponent( 6787 );
			ac.Name = "marketstand";
			AddComponent( ac, 0, -1, 0 );
			ac = new AddonComponent( 6787 );
			ac.Name = "marketstand";
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 2938 );
			ac.Name = "marketstand";
			AddComponent( ac, 0, 1, 1 );
			ac = new AddonComponent( 2938 );
			ac.Name = "marketstand";
			AddComponent( ac, 0, 0, 1 );
			ac = new AddonComponent( 2938 );
			ac.Name = "marketstand";
			AddComponent( ac, 0, -1, 1 );
			ac = new AddonComponent( 6786 );
			AddComponent( ac, 0, 2, 0 );

		}
开发者ID:greeduomacro,项目名称:annox,代码行数:28,代码来源:MarketStandSouthEmptyAddon.cs

示例7: CrystalCluster01Addon

		public CrystalCluster01Addon()
		{
			AddonComponent ac = null;
			ac = new AddonComponent( 8743 );
			AddComponent( ac, -1, 0, 0 );
			ac = new AddonComponent( 12253 );
			AddComponent( ac, -1, -1, 0 );
			ac = new AddonComponent( 8738 );
			AddComponent( ac, 0, -1, 0 );
			ac = new AddonComponent( 8770 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 8769 );
			AddComponent( ac, -1, -2, 0 );
			ac = new AddonComponent( 8768 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 8767 );
			AddComponent( ac, 0, 2, 0 );
			ac = new AddonComponent( 8766 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 8765 );
			AddComponent( ac, 1, 0, 0 );
			ac = new AddonComponent( 8764 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 8736 );
			AddComponent( ac, 0, -2, 0 );

		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:27,代码来源:CrystalCluster01Addon.cs

示例8: MaginciaSmallEastAddon

		public MaginciaSmallEastAddon()
		{
			AddonComponent ac = null;
			ac = new AddonComponent( 2769 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 2769 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 2770 );
			AddComponent( ac, 1, 2, 0 );
			ac = new AddonComponent( 2771 );
			AddComponent( ac, -1, -1, 0 );
			ac = new AddonComponent( 2772 );
			AddComponent( ac, -1, 2, 0 );
			ac = new AddonComponent( 2773 );
			AddComponent( ac, 1, -1, 0 );
			ac = new AddonComponent( 2774 );
			AddComponent( ac, -1, 0, 0 );
			ac = new AddonComponent( 2774 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 2775 );
			AddComponent( ac, 0, -1, 0 );
			ac = new AddonComponent( 2776 );
			AddComponent( ac, 1, 0, 0 );
			ac = new AddonComponent( 2776 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 2777 );
			AddComponent( ac, 0, 2, 0 );

		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:29,代码来源:MaginciaSmallEastAddon.cs

示例9: StoneCoffinAddon

		public StoneCoffinAddon( bool east )
		{
			if ( east )
			{
                        AddonComponent comp = new AddonComponent( 0x3048 );
                        comp.Name = "stone coffin";
                        AddComponent( comp, 0, 0, 0 );

                        comp = new AddonComponent( 0x3049 );
                        comp.Name = "stone coffin";
          		AddComponent( comp, 0, -1, 0 );

			}
			else
			{
                        AddonComponent comp = new AddonComponent( 0x304A );
                        comp.Name = "stone coffin";
                        AddComponent( comp, 0, 0, 0 );

                        comp = new AddonComponent( 0x304B );
                        comp.Name = "stone coffin";
          		AddComponent( comp, -1, 0, 0 );

			}
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:25,代码来源:StoneCoffinAddon.cs

示例10: OccloSmallEastAddon

		public OccloSmallEastAddon()
		{
			AddonComponent ac = null;
			ac = new AddonComponent( 2797 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 2797 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 2799 );
			AddComponent( ac, -1, -1, 0 );
			ac = new AddonComponent( 2800 );
			AddComponent( ac, -1, 2, 0 );
			ac = new AddonComponent( 2802 );
			AddComponent( ac, -1, 0, 0 );
			ac = new AddonComponent( 2802 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 2803 );
			AddComponent( ac, 0, -1, 0 );
			ac = new AddonComponent( 2805 );
			AddComponent( ac, 0, 2, 0 );
			ac = new AddonComponent( 2798 );
			AddComponent( ac, 1, 2, 0 );
			ac = new AddonComponent( 2801 );
			AddComponent( ac, 1, -1, 0 );
			ac = new AddonComponent( 2804 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 2804 );
			AddComponent( ac, 1, 0, 0 );

		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:29,代码来源:OccloSmallEastAddon.cs

示例11: LighthouseAddon

		public LighthouseAddon()
		{
			AddComponent( new AddonComponent( 6845 ), -3, -1, 0 );
			AddComponent( new AddonComponent( 6849 ), -2, 1, 0 );
			AddComponent( new AddonComponent( 6843 ), -3, -3, 0 );
			AddComponent( new AddonComponent( 6844 ), -3, -2, 0 );
			AddComponent( new AddonComponent( 6832 ), 1, -1, 0 );
			AddComponent( new AddonComponent( 6860 ), 0, -1, 0 );
			AddComponent( new AddonComponent( 6820 ), -1, 3, 0 );
			AddComponent( new AddonComponent( 6829 ), 2, -1, 0 );
			AddComponent( new AddonComponent( 6822 ), 1, 3, 0 );
			AddComponent( new AddonComponent( 6821 ), 0, 3, 0 );
			AddComponent( new AddonComponent( 6828 ), 3, -1, 0 );
			AddComponent( new AddonComponent( 6823 ), 2, 3, 0 );
			AddComponent( new AddonComponent( 6825 ), 3, 2, 0 );
			AddComponent( new AddonComponent( 6824 ), 3, 3, 0 );
			AddComponent( new AddonComponent( 6827 ), 3, 0, 0 );
			AddComponent( new AddonComponent( 6826 ), 3, 1, 0 );
			AddComponent( new AddonComponent( 6855 ), -1, 1, 0 );
			AddComponent( new AddonComponent( 6852 ), -1, 2, 0 );
			AddComponent( new AddonComponent( 6838 ), 0, -2, 0 );
			AddComponent( new AddonComponent( 6835 ), 1, -2, 0 );
			AddComponent( new AddonComponent( 6841 ), -1, -3, 0 );
			AddComponent( new AddonComponent( 6863 ), -1, -2, 0 );
			AddComponent( new AddonComponent( 6859 ), -1, -1, 0 );
			AddComponent( new AddonComponent( 6858 ), -1, 0, 0 );
			AddComponent( new AddonComponent( 6862 ), -2, -2, 0 );
			AddComponent( new AddonComponent( 6842 ), -2, -3, 0 );
			AddComponent( new AddonComponent( 6846 ), -2, 0, 0 );
			AddComponent( new AddonComponent( 6861 ), -2, -1, 0 );

			AddonComponent ac = new AddonComponent( 6864 );
			ac.Light = LightType.Circle300;
			AddComponent( ac, 2, 2, 0 );
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:35,代码来源:LighthouseAddon.cs

示例12: TeleporterAndSignAddon

		public TeleporterAndSignAddon()
		{
			AddonComponent ac = null;
			ac = new AddonComponent( 1876 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 1872 );
			AddComponent( ac, 1, 0, 0 );
			ac = new AddonComponent( 7977 );
			AddComponent( ac, -2, -1, 15 );
			ac = new AddonComponent( 9 );
			AddComponent( ac, -2, -1, 0 );
			ac = new AddonComponent( 14170 );
			AddComponent( ac, 2, 0, 6 );
			ac = new AddonComponent( 1878 );
			AddComponent( ac, 3, 1, 0 );
			ac = new AddonComponent( 1880 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 1873 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 1873 );
			AddComponent( ac, 2, 1, 0 );
			ac = new AddonComponent( 1877 );
			AddComponent( ac, 0, -1, 0 );
			ac = new AddonComponent( 1879 );
			AddComponent( ac, 3, -1, 0 );
			ac = new AddonComponent( 1875 );
			AddComponent( ac, 2, -1, 0 );
			ac = new AddonComponent( 1875 );
			AddComponent( ac, 1, -1, 0 );
			ac = new AddonComponent( 1872 );
			AddComponent( ac, 2, 0, 0 );
			ac = new AddonComponent( 1874 );
			AddComponent( ac, 3, 0, 0 );

		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:35,代码来源:TeleporterAndSignAddon.cs

示例13: AG_WayGateNorthAddon

		public AG_WayGateNorthAddon()
		{
			AddonComponent ac;
			ac = new AddonComponent( 476 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 466 );
			AddComponent( ac, -1, 0, 0 );
			ac = new AddonComponent( 474 );
			AddComponent( ac, -1, 0, 15 );
			ac = new AddonComponent( 3255 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 6958 );
			AddComponent( ac, 0, 1, 0 );
			ac = new AddonComponent( 6961 );
			AddComponent( ac, -1, 1, 0 );
			ac = new AddonComponent( 6967 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 14201 );
			AddComponent( ac, 0, 0, 0 );
			ac = new AddonComponent( 477 );
			AddComponent( ac, 1, 0, 0 );
			ac = new AddonComponent( 481 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 480 );
			AddComponent( ac, 2, 0, 0 );
			ac = new AddonComponent( 9036 );
			AddComponent( ac, 2, 1, 0 );
			ac = new AddonComponent( 6955 );
			AddComponent( ac, 1, 1, 0 );
			ac = new AddonComponent( 6968 );
			AddComponent( ac, 1, 0, 0 );
			ac = new AddonComponent( 3025 );
			AddComponent( ac, 1, 1, 10 );

		}
开发者ID:greeduomacro,项目名称:annox,代码行数:35,代码来源:WayGateNorthAddon.cs

示例14: harvesttableAddon

 public harvesttableAddon()
 {
     AddonComponent ac;
     ac = new AddonComponent( 4569 );
     ac.Hue = 550;
     AddComponent( ac, 0, 0, 0 );
     ac = new AddonComponent( 4570 );
     ac.Hue = 550;
     AddComponent( ac, -1, 0, 0 );
     ac = new AddonComponent( 10318 );
     ac.Hue = 1140;
     ac.Name = "cornucopia";
     AddComponent( ac, -1, 0, 6 );
     ac = new AddonComponent( 3191 );
     AddComponent( ac, 0, 0, 6 );
     ac = new AddonComponent( 15641 );
     AddComponent( ac, -1, 0, 3 );
     ac = new AddonComponent( 3174 );
     AddComponent( ac, 0, 0, 5 );
     ac = new AddonComponent( 3354 );
     AddComponent( ac, 0, 0, 6 );
     ac = new AddonComponent( 3181 );
     AddComponent( ac, -1, 0, 6 );
     ac = new AddonComponent( 3186 );
     AddComponent( ac, 0, 0, 6 );
     ac = new AddonComponent( 2512 );
     AddComponent( ac, -1, 0, 3 );
     ac = new AddonComponent( 5642 );
     ac.Name = "Turkey Leg";
     AddComponent( ac, 0, 1, 12 );
     ac = new AddonComponent( 5927 );
     AddComponent( ac, 1, 1, 13 );
 }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:33,代码来源:harvesttableAddon.cs

示例15: AG_SovereignBannerAddon

 public AG_SovereignBannerAddon()
 {
     AddonComponent ac;
     ac = new AddonComponent( 6571 );
     ac.Light = LightType.Circle225;
     AddComponent( ac, 0, 0, 0 );
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:SovereignBannerAddon.cs


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