當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。