public SilverDonationBoxAoS()
        {
            Weight = 1.0;
            Hue = 2401;
            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 = 2401;
            item.Name = "Silver Shroud of Shadows";
                        item.LootType = LootType.Blessed;

                        BaseContainer cont;
                        CharacterCreation.PlaceItemIn(this, 58, 57, (cont = new Backpack()));
            cont.Hue = 2401;
            cont.Name = "a silver bag";

            CharacterCreation.PlaceItemIn(cont, 29, 39, new SulfurousAsh(5000));
            CharacterCreation.PlaceItemIn(cont, 29, 64, new Nightshade(5000));
            CharacterCreation.PlaceItemIn(cont, 29, 89, new SpidersSilk(5000));

            CharacterCreation.PlaceItemIn(cont, 60, 64, new Garlic(5000));
            CharacterCreation.PlaceItemIn(cont, 60, 89, new Ginseng(5000));

            CharacterCreation.PlaceItemIn(cont, 88, 39, new Bloodmoss(5000));
            CharacterCreation.PlaceItemIn(cont, 88, 64, new BlackPearl(5000));
            CharacterCreation.PlaceItemIn(cont, 88, 89, new MandrakeRoot(5000));

            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, 156, 55, (item = new EtherealHorse()));
            item.Hue = 2401;
            item.Name = "No Aged Ethereal";
            ((EtherealMount)item).IsDonationItem = true;

            CharacterCreation.PlaceItemIn(this, 43, 83, (item = new ClothingBlessDeed()));
            item.Hue = 2401;
            CharacterCreation.PlaceItemIn(this, 63, 83, (item = new KillResetDeedAOS())); //by Blady
            item.Hue = 2213;
            CharacterCreation.PlaceItemIn(this, 83, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 2401;
            CharacterCreation.PlaceItemIn(this, 103, 83, (item = new NameChangeDeed()));
            item.Hue = 2401;
            CharacterCreation.PlaceItemIn(this, 123, 83, (item = new AntiBlessDeed()));
            item.Hue = 2401;
            CharacterCreation.PlaceItemIn(this, 143, 83, (item = new MembershipTicket()));
            item.Hue = 2213;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.MaxValue;
        }
		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);
		}
Exemple #3
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 static void CreateReward(EventRewardInfo info, Mobile m)
        {
            if (m == null)
                return;

            Item item = null;
            switch (info.IncrID)
            {
                case 0: item = new MagicSewingKit(1); break;
                case 1:
                    string str = "PottedCactus";
                    int randint = Utility.Random(6);
                    if (randint > 0)
                        str = str + randint.ToString();

                    Type type = ScriptCompiler.FindTypeByName(str);
                    item = (Item)Activator.CreateInstance(type);
                    item.Weight = 100;
                    break;
                case 2:
                    if (Utility.RandomBool())
                        item = new PottedTree();
                    else
                        item = new PottedTree1();
                    break;
                case 3:
                    switch (Utility.Random(3))
                    {
                        case 0: item = new PottedPlant(); break;
                        case 1: item = new PottedPlant1(); break;
                        case 2: item = new PottedPlant2(); break;
                    }
                    break;
                case 4: item = new SpecialHairDye(); break;
                case 5: item = new SpecialBeardDye(); break;
                case 6: item = new TempHorseEthereal(50);
                        item.Hue = Utility.Random(795, 7);
                        break;
                case 7: item = new FireworksWand(99); break;
                case 8: item = new LayeredSashDeed(); break;
                case 9: item = new SkillBall(1); break;
                case 10: item = new SkillBall(5); break;
                case 11: item = new SkillBall(10); break;
                case 12: item = new SkillBall(25); break;
                case 13: item = new SkillBall(50); break;
                case 14: item = new PersonalisationDeed(); break;
                case 15: item = new CrystalPedestalAddonDeed(); break;
                case 16: item = new FountainStoneAddonDeed(); break;
                case 17: item = new FountainSandstoneAddonDeed(); break;
                case 18: item = new SquirrelStatueEastDeed(); break;
                case 19: item = new SquirrelStatueSouthDeed(); break;
                case 20: item = new ArcanistStatueEastDeed(); break;
                case 21: item = new ArcanistStatueSouthDeed(); break;
                case 22: item = new WarriorStatueEastDeed(); break;
                case 23: item = new WarriorStatueSouthDeed(); break;
                case 24: item = new TempRobe(31);
                        ((BaseClothing)item).Attributes.RegenHits = 3;
                        break;
                case 25: item = new TempCloak(31);
                        ((BaseClothing)item).Attributes.RegenHits = 3;
                        break;
                case 26: item = new CampfireDeed(); break;
                case 27: item = new FireDeed(); break;
                case 28: item = new SoulstoneFragment();
                        ((SoulstoneFragment)item).Account = m.Account.Username;
                        break;
                case 29: item = new NameChangeDeed(); break;
                case 30: item = new SexChangeDeed(); break;
                case 31: item = new KillResetDeedAOS(); break;
                case 32: item = new PetBondingDeed(); break;
                case 33: item = new WarHorseBondingDeed(); break;
                case 34: item = new AntiBlessDeed(); break;
                case 35: item = new WhisperingRose(m.Name); break;
                case 36: item = new WeddingDeed(); break;
                case 37: item = new KillBook();
                        ((KillBook)item).BookOwner = m;
                        break;
            }

            if (item != null)
            {
                m.AddToBackpack(item);
                m.SendMessage("The reward item has been placed into your backpack, have fun!");
            }
            else
            {
                m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser.");
                m.LaunchBrowser( "http://bug.casiopia.net/" );
                m.AddToBackpack( new CopperBar(info.Price) );
            }
        }
Exemple #5
0
 public RenamePrompt(Mobile from, NameChangeDeed ncdeed)
 {
     m_from   = from;
     m_ncdeed = ncdeed;
 }
        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 override void OnDeath( Container c )
		{
			base.OnDeath( c );

			if ( 0.75 > Utility.RandomDouble() )
			{
				int r = Utility.Random( 100 );
				Item drop = null;

				if ( r < 1 ) drop = new LayerSashDeed();			
				else if	( r < 4 ) drop = new SpecialQuestSandals();
				else if	( r < 6 ) drop = new RareCreamCarpet( PieceType.Centre );
				else if	( r < 8 ) drop = new RareBlueCarpet( PieceType.Centre );
				else if	( r < 10 ) drop = new RareBloodCarpet( PieceType.Centre );
				else if	( r < 12 ) drop = new BasicBlueCarpet( PieceType.Centre );
				else if	( r < 14 ) drop = new BasicPinkCarpet( PieceType.Centre );
				else if	( r < 29 ) drop = new BloodPentagramPart( Utility.Random( 5 ) );
				else if	( r < 30 ) drop = new ClothingBlessDeed();
				else if	( r < 35 ) drop = new MysteriousCloth();
				else if	( r < 40 ) drop = new SpecialHairDye();
				else if	( r < 45 ) drop = new SpecialBeardDye();
				else if	( r < 50 ) drop = new NameChangeDeed();
				else if	( r < 65 ) drop = new SkillTunic();
				else if	( r < 80 ) drop = new TamersCrook();
				else if	( r < 85 ) drop = new HeroShield();
				else if	( r < 88 ) drop = new EvilShield();
				else if	( r < 91 ) drop = new MondainHat();
				else if	( r < 94 ) drop = new PlatinGloves();
				else if	( r < 96 ) drop = new AncientSamuraiHelm();
				else if	( r < 98 ) drop = Utility.RandomBool() ? (Item)(new MirrorEast()) : (Item)(new MirrorNorth());
				else
					drop = Utility.RandomBool() ? (Item)(new BoneBenchEastPart()) : (Item)(new BoneBenchWestPart());

				c.DropItem( drop );
			}
		}
        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 RenamePrompt( Mobile from, NameChangeDeed ncdeed )
			{
				m_from   = from;
				m_ncdeed = ncdeed;
			}
        public void CreateLoot()
        {
            int chance = Utility.Random( 100 );
            Item m_Reward = null;
            if ( chance < 3 )
                m_Reward = new NameChangeDeed();
            else if ( chance < 33 )
                m_Reward = new PowerScroll( PowerScroll.Skills[Utility.Random(PowerScroll.Skills.Count)], (100+(Utility.Random(3)+2)*5) );
            else if ( chance < 50 )
                m_Reward = new StatCapScroll( (225+(Utility.Random(2)+1)*5) );
            else if ( chance < 55 )
                m_Reward = new MagicSewingKit();
            else if ( chance < 60 )
                m_Reward = new ClothingBlessDeed();
            else if ( chance < 70 )
                m_Reward = new RunicSewingKit(CraftResource.BarbedLeather, ( Utility.Random( 2 ) + 3 ) );
            else {
                int amount = Utility.RandomMinMax( 5, 10 )*10000;
                m_Reward = new BankCheck(amount);
            }

            PackItem( new CopperBar(Utility.Random( 2 ) + 2) );
            if (m_Reward != null)
            {
                PackItem( m_Reward );
                Timer m_TimerCursed = new CursedArtifactSystem.CursedTimer( m_Reward, 6 );
                m_TimerCursed.Start();
            }
        }