Beispiel #1
0
        public DarkRedDonationBox()
        {
            Weight = 1.0;
            Hue    = 1645;
            Item item = null;

            Name = "Defiance Dark Red Member Box";

            PlaceItemIn(16, 60, (item = new SkillBall(25)));
            item.Hue = 5;
            PlaceItemIn(28, 60, (item = new SkillBall(25)));
            item.Hue = 5;
            PlaceItemIn(41, 58, (item = new SevenGMSkillBall()));
            item.Hue = 1161;
            PlaceItemIn(53, 58, (item = new StatsBall()));
            item.Hue = 1161;

            PlaceItemIn(16, 81, (item = new HoodedShroudOfShadows()));
            item.Hue      = 1645;
            item.Name     = "Dark Red Shroud of Shadows";
            item.LootType = LootType.Blessed;

            BaseContainer cont;

            PlaceItemIn(58, 57, (cont = new Backpack()));
            cont.Hue  = 1645;
            cont.Name = "a dark red backpack";

            cont.PlaceItemIn(44, 65, new SulfurousAsh(10000));
            cont.PlaceItemIn(77, 65, new Nightshade(10000));
            cont.PlaceItemIn(110, 65, new SpidersSilk(10000));
            cont.PlaceItemIn(143, 65, new Garlic(10000));

            cont.PlaceItemIn(44, 128, new Ginseng(10000));
            cont.PlaceItemIn(77, 128, new Bloodmoss(10000));
            cont.PlaceItemIn(110, 128, new BlackPearl(10000));
            cont.PlaceItemIn(143, 128, new MandrakeRoot(10000));

            PlaceItemIn(90, 58, (item = new AncientCoat()));
            item.Hue      = 1645;
            item.Name     = "Dark Red Ancient Coat";
            item.LootType = LootType.Blessed;

            PlaceItemIn(74, 64, (item = new WizardGlasses()));
            item.Hue = Utility.RandomList(1645);
            PlaceItemIn(103, 58, (item = new Sandals()));
            item.Hue      = Utility.RandomList(1645);
            item.Name     = "Polar Sandals";
            item.LootType = LootType.Blessed;

            PlaceItemIn(122, 53, new SpecialDonateHairDye());
            PlaceItemIn(133, 53, new SpecialDonateBeardDye());

            PlaceItemIn(156, 55, (item = new EtherealLongManeHorse()));
            item.Hue = 1645;

            PlaceItemIn(34, 83, (item = new HolyDeedofBlessing()));
            item.Hue = 1645;
            PlaceItemIn(43, 83, (item = new CursedClothingBlessDeed()));
            item.Hue = 1645;
            PlaceItemIn(58, 83, (item = new SpecialHairRestylingDeed()));
            item.Hue = 1645;
            PlaceItemIn(73, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 1645;
            PlaceItemIn(88, 83, (item = new NameChangeDeed()));
            item.Hue = 1645;
            PlaceItemIn(103, 83, (item = new AntiBlessDeed()));
            item.Hue = 1645;
            PlaceItemIn(118, 83, (item = new BankCheck(100000)));
            item.Hue = 1645;
            PlaceItemIn(130, 83, (item = new MembershipTicket()));
            item.Hue = 1645;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730);
        }
		public IceBlueDonationBox()
		{
			Weight = 1.0;
			Hue = 1154;
			Item item = null;
			Name = "Defiance Iceblue Member Box";

			PlaceItemIn( 16, 60, (item = new SkillBall( 25 )) );
			item.Hue = 5;
			PlaceItemIn( 28, 60, (item = new SkillBall( 25 )) );
			item.Hue = 5;
			PlaceItemIn( 41, 58, (item = new SevenGMSkillBall()) );
                        item.Hue = 1161;
                        PlaceItemIn( 53, 58, (item = new StatsBall()) );
                        item.Hue = 1161;

			PlaceItemIn( 16, 81, (item = new HoodedShroudOfShadows()) );
			item.Hue = 1154;
			item.Name = "Iceblue Shroud of Shadows";
                        item.LootType = LootType.Blessed;

			BaseContainer cont;
			PlaceItemIn( 58, 57, (cont = new Backpack()) );
			cont.Hue = 1154;
			cont.Name = "an iceblue backpack";

			cont.PlaceItemIn( 44, 65, new SulfurousAsh(10000) );
			cont.PlaceItemIn( 77, 65, new Nightshade(10000) );
			cont.PlaceItemIn( 110, 65, new SpidersSilk(10000) );
			cont.PlaceItemIn( 143, 65, new Garlic(10000) );

			cont.PlaceItemIn( 44, 128, new Ginseng(10000) );
			cont.PlaceItemIn( 77, 128, new Bloodmoss(10000) );
			cont.PlaceItemIn( 110, 128, new BlackPearl(10000) );
			cont.PlaceItemIn( 143, 128, new MandrakeRoot(10000) );

			PlaceItemIn( 90, 58, (item = new AncientCoat()) );
			item.Hue = 1154;
			item.Name = "Iceblue Ancient Coat";
                        item.LootType = LootType.Blessed;

		        PlaceItemIn( 74, 64, (item = new WizardGlasses()) );
                        item.Hue = Utility.RandomList(1154);
			PlaceItemIn( 103, 58, (item = new Sandals()) );
			item.Hue = Utility.RandomList(1154);
                        item.Name = "Polar Sandals";
			item.LootType = LootType.Blessed;

			PlaceItemIn( 122, 53, new SpecialDonateDye() );
			PlaceItemIn( 133, 53, new SpecialDonateDyeBeard() );

			PlaceItemIn( 156, 55, (item = new EtherealLongManeHorse()) );
			item.Hue = 1154;

			PlaceItemIn( 34, 83, (item = new HolyDeedofBlessing()) );
			item.Hue = 1154;
	                PlaceItemIn( 43, 83, (item = new CursedClothingBlessDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 58, 83, (item = new SpecialHairRestylingDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 73, 83, (item = new SmallBrickHouseDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 88, 83, (item = new NameChangeDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 103, 83, (item = new AntiBlessDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 118, 83, (item = new BankCheck(100000)) );
			item.Hue = 1154;
			PlaceItemIn(130, 83, (item = new MembershipTicket()));
			item.Hue = 1154;
			((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730);
		}
        public NoxGreenDonationBoxAos()
        {
            Weight = 1.0;
            Hue = 1420;
            Item item = null;
            Name = "Defiance Nox Green Member Box of Holding";

            CharacterCreation.PlaceItemIn(this, 16, 60, (item = new DonationSkillBall( 25, false )));
            CharacterCreation.PlaceItemIn(this, 28, 60, (item = new DonationSkillBall( 25, false )));
            CharacterCreation.PlaceItemIn(this, 40, 60, (item = new DonationSkillBall( 25, false )));

            CharacterCreation.PlaceItemIn(this, 16, 81, (item = new HoodedShroudOfShadows()));
            item.Hue = 1420;
            item.Name = "Nox Shroud of Shadows";
                        item.LootType = LootType.Blessed;

            BaseContainer cont;
            CharacterCreation.PlaceItemIn(this, 58, 57, (cont = new Backpack()));
            cont.Hue = 1420;
            cont.Name = "a donation backpack";

            CharacterCreation.PlaceItemIn(cont, 44, 65, new SulfurousAsh(10000));
            CharacterCreation.PlaceItemIn(cont, 77, 65, new Nightshade(10000));
            CharacterCreation.PlaceItemIn(cont, 110, 65, new SpidersSilk(10000));
            CharacterCreation.PlaceItemIn(cont, 143, 65, new Garlic(10000));

            CharacterCreation.PlaceItemIn(cont, 44, 128, new Ginseng(10000));
            CharacterCreation.PlaceItemIn(cont, 77, 128, new Bloodmoss(10000));
            CharacterCreation.PlaceItemIn(cont, 110, 128, new BlackPearl(10000));
            CharacterCreation.PlaceItemIn(cont, 143, 128, new MandrakeRoot(10000));

            //CharacterCreation.PlaceItemIn(this, 74, 64, new DonationBandana());
            //Replaced the bandana with a deed - Edit by Blady
            CharacterCreation.PlaceItemIn(this, 74, 64, (item = new DonationDeed()));
            item.Hue = 1420;

            CharacterCreation.PlaceItemIn(this, 103, 58, (item = new Sandals()));
            item.Hue = 1420; //Utility.RandomList(1420, 1281, 1161, 1420, 1420, 1420, 1266, 1420, 1420, 1645);
            item.LootType = LootType.Blessed;

            CharacterCreation.PlaceItemIn( this, 122, 53, new SpecialDonateDye() );
            CharacterCreation.PlaceItemIn(this, 11420, 53, (item = new PigmentsOfTokuno( 5 )));
            ((PigmentsOfTokuno)item).Type = PigmentType.NoxGreen;
            CharacterCreation.PlaceItemIn(this, 156, 55, (item = new EtherealHorse()));
            item.Hue = 1420;
            item.Name = "No Age Ethereal";
            ((EtherealMount)item).IsDonationItem = true;

            CharacterCreation.PlaceItemIn(this, 34, 83, (item = new HolyDeedofBlessing()));
            item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 43, 83, (item = new ClothingBlessDeed()));
            item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 58, 83, (item = new TreasureMap(6, Map.Felucca)));
            item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 73, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 88, 83, (item = new NameChangeDeed()));
            item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 103, 83, (item = new MiniHouseDeed()));
            item.Hue = 1420;
            //CharacterCreation.PlaceItemIn(this, 118, 83, (item = new BankCheck(100000)));
            //item.Hue = 1420;
            CharacterCreation.PlaceItemIn(this, 130, 83, (item = new MembershipTicket()));
            item.Hue = 1420;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.MaxValue;
        }
 public HolyDeedofBlessingTarget( HolyDeedofBlessing deed )
     : base(1, false, TargetFlags.None)
 {
     m_Deed = deed;
 }
        public GoldenDonationBoxAoS()
        {
            Weight = 1.0;
            Hue = 2213;
            Item item = null;
            Name = "Defiance Gold Member Box of Holding";

            CharacterCreation.PlaceItemIn(this, 16, 60, (item = new DonationSkillBall( 25, false )));
            CharacterCreation.PlaceItemIn(this, 28, 60, (item = new DonationSkillBall( 25, false )));
            CharacterCreation.PlaceItemIn(this, 40, 60, (item = new DonationSkillBall( 25, false )));

            CharacterCreation.PlaceItemIn(this, 16, 81, (item = new HoodedShroudOfShadows()));
            item.Hue = 2213;
            item.Name = "Golden Shroud of Shadows";
                        item.LootType = LootType.Blessed;

            BaseContainer cont;
            CharacterCreation.PlaceItemIn(this, 58, 57, (cont = new Backpack()));
            cont.Hue = 2213;
            cont.Name = "a golden backpack";

            CharacterCreation.PlaceItemIn(cont, 44, 65, new SulfurousAsh(10000));
            CharacterCreation.PlaceItemIn(cont, 77, 65, new Nightshade(10000));
            CharacterCreation.PlaceItemIn(cont, 110, 65, new SpidersSilk(10000));
            CharacterCreation.PlaceItemIn(cont, 143, 65, new Garlic(10000));

            CharacterCreation.PlaceItemIn(cont, 44, 128, new Ginseng(10000));
            CharacterCreation.PlaceItemIn(cont, 77, 128, new Bloodmoss(10000));
            CharacterCreation.PlaceItemIn(cont, 110, 128, new BlackPearl(10000));
            CharacterCreation.PlaceItemIn(cont, 143, 128, new MandrakeRoot(10000));

            //CharacterCreation.PlaceItemIn(this, 16, 81, new DonationBandana());
            //Replaced the bandana with a deed - Edit by Blady
            CharacterCreation.PlaceItemIn(this, 74, 64, (item = new DonationDeed()));
            item.Hue = 2213;

            CharacterCreation.PlaceItemIn(this, 103, 58, (item = new Sandals()));
            item.Hue = Utility.RandomList(5, 70, 90, 110);
            item.LootType = LootType.Blessed;

            CharacterCreation.PlaceItemIn(this, 122, 53, new SpecialDonateDye());
            CharacterCreation.PlaceItemIn(this, 133, 53, (item = new KillBook()));
            item.Hue = 2213;

            CharacterCreation.PlaceItemIn(this, 156, 55, (item = new EtherealHorse()));
            item.Hue = 2213;
            item.Name = "No Aged Ethereal";
            ((EtherealMount)item).IsDonationItem = true;

            CharacterCreation.PlaceItemIn(this, 34, 83, (item = new HolyDeedofBlessing()));
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 43, 83, (item = new ClothingBlessDeed()));
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 58, 83, (item = new KillResetDeedAOS())); //by Blady
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 73, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 88, 83, (item = new NameChangeDeed()));
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 103, 83, (item = new AntiBlessDeed()));
            item.Hue = 2213;
            //CharacterCreation.PlaceItemIn(this, 118, 83, (item = new BankCheck(100000)));
            //item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 130, 83, (item = new MembershipTicket()));
            item.Hue = 2213;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.MaxValue;
        }
 public HolyDeedofBlessingTarget(HolyDeedofBlessing deed) : base(1, false, TargetFlags.None)
 {
     m_Deed = deed;
 }
		public void DistributeLoot()
		{
			if ( Map != Map.Felucca )
				return;

			ArrayList PlayersToGiveTo = new ArrayList();

			ArrayList list = Aggressors;
			for ( int i = 0; i < list.Count; ++i )
			{
				AggressorInfo info = (AggressorInfo)list[i];

				if ( info.Attacker.Player && info.Attacker.Alive && (DateTime.Now - info.LastCombatTime) < TimeSpan.FromSeconds( 60.0 ) && !PlayersToGiveTo.Contains( info.Attacker ) )
					PlayersToGiveTo.Add( info.Attacker );
			}

			list = Aggressed;
			for ( int i = 0; i < list.Count; ++i )
			{
				AggressorInfo info = (AggressorInfo)list[i];

				if ( info.Defender.Player && info.Defender.Alive && (DateTime.Now - info.LastCombatTime) < TimeSpan.FromSeconds( 60.0 ) && !PlayersToGiveTo.Contains( info.Defender ) )
					PlayersToGiveTo.Add( info.Defender );
			}

			if ( PlayersToGiveTo.Count <= 0 )
				return;

			if ( Backpack == null )
				return;

			//ArrayList ItemsToGive = new ArrayList();

			Item item = null;
			int rand = Utility.Random( 200 );
			if ( rand == 0 )
				item = new LayerSashDeed();
			else if ( rand <= 8 )
				item = new HolyDeedofBlessing();
			else if ( rand <= 30 )
				item = new CursedClothingBlessDeed();
			else if ( rand <= 80 )
				item = new ClothingBlessDeed();

			if ( item != null )
			{
				if ( item.Movable == false || item.LootType == LootType.Blessed || item.LootType == LootType.Newbied )
					return;
				PlayerMobile player = PlayersToGiveTo[Utility.Random( PlayersToGiveTo.Count )] as PlayerMobile;
				if ( player != null && player.Backpack != null )
				{
					player.SendMessage( "You have been given a special item." );
					player.Backpack.DropItem( item );
				}
			}
		}