Пример #1
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = 0;
                switch (rnd.Next(3))
                {
                case 0: enchant = 1506; break;                         // Swan Summoner's (Prefix)

                case 1: enchant = 1706; break;                         // Good (Prefix)

                case 2: enchant = 305; break;                          // Fine (Prefix)
                }
                treasureChest.Add(Item.CreateEnchant(enchant));
            }

            treasureChest.AddGold(rnd.Next(153, 768));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #2
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Dagger
                var prefix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20501; break;                         // Simple

                case 1: prefix = 20502; break;                         // Scrupulous

                case 2: prefix = 20201; break;                         // Hard
                }
                treasureChest.Add(Item.CreateEnchanted(40006, prefix, 0));
            }

            treasureChest.AddGold(rnd.Next(1072, 3680));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Cooking Knife
				int prefix = 0, suffix = 0;
				switch (rnd.Next(2))
				{
					case 0: prefix = 20206; break; // Nervous
					case 1: prefix = 20711; break; // Famous
				}
				treasureChest.Add(Item.CreateEnchanted(40042, prefix, suffix));
			}

			treasureChest.AddGold(rnd.Next(2880, 4380)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				switch (rnd.Next(2))
				{
					case 0: treasureChest.Add(Item.CreateEnchanted(16015, 20403, 0)); break; // Victorious Bracelet
					case 1: treasureChest.Add(Item.CreateEnchanted(40027, 0, 30311)); break; // Twilight Weeding Hoe
				}
			}

			treasureChest.AddGold(rnd.Next(5200, 7120)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchanted item
				Item item = null;
				switch (rnd.Next(2))
				{
					case 0: item = Item.CreateEnchanted(40026, prefix: 20404); break; // Sacrificial Sickle
					case 1: item = Item.CreateEnchanted(18024, suffix: 30411); break; // Magnolia Hairband
					case 2: item = Item.CreateEnchanted(40003, suffix: 30514); break; // Hope Short Bow
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(4488, 8160)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #6
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Dagger
				var item = new Item(40006);
				switch (rnd.Next(3))
				{
					case 0: item.OptionInfo.Prefix = 20501; break; // Simple
					case 1: item.OptionInfo.Prefix = 20502; break; // Scrupulous
					case 2: item.OptionInfo.Prefix = 20201; break; // Hard
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(1072, 3680)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #7
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			// Fluted Short Sword
			int prefix = 0, suffix = 0;
			switch (rnd.Next(4))
			{
				case 0: suffix = 30702; break; // Raven
				case 1: suffix = 30602; break; // Healer
				case 2: suffix = 30504; break; // Gold Goblin
				case 3: suffix = 30501; break; // Giant
			}
			treasureChest.Add(Item.CreateEnchanted(40015, prefix, suffix));

			treasureChest.AddGold(rnd.Next(2384, 2992)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #8
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                var prefix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20711; break;                         // Famous

                case 1: prefix = 20712; break;                         // Ornamented

                case 2: prefix = 20402; break;                         // Strong
                }

                treasureChest.Add(Item.CreateEnchant(prefix));
            }

            treasureChest.AddGold(rnd.Next(1980, 3630));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #9
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchanted item
				Item item = null;
				switch (rnd.Next(2))
				{
					case 0: item = Item.CreateEnchanted(40004, prefix: 20105); break; // Artless Lute
					case 1: item = Item.CreateEnchanted(15022, prefix: 20612); break; // Splendit Popo's Skirt
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(2080, 4160)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Cooking Knife
                int prefix = 0, suffix = 0;
                switch (rnd.Next(2))
                {
                case 0: prefix = 20206; break;                         // Nervous

                case 1: prefix = 20711; break;                         // Famous
                }
                treasureChest.Add(Item.CreateEnchanted(40042, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(2880, 4380));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #11
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Tail Cap
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20701; break;                         // Stiff

                case 1: prefix = 20406; break;                         // Convenient

                case 2: prefix = 20104; break;                         // Green
                }
                treasureChest.Add(Item.CreateEnchanted(18017, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(1386, 2772));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                int suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: suffix = 30808; break;                         // Captain's

                case 1: suffix = 30307; break;                         // Red Bear

                case 2: suffix = 30515; break;                         // Pirate
                }
                treasureChest.Add(Item.CreateEnchant(suffix));
            }

            treasureChest.AddGold(rnd.Next(6480, 10800));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));            // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #13
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchanted item
                Item item = null;
                switch (rnd.Next(2))
                {
                case 0: item = Item.CreateEnchanted(40004, prefix: 20105); break;                         // Artless Lute

                case 1: item = Item.CreateEnchanted(15022, prefix: 20612); break;                         // Splendit Popo's Skirt
                }
                treasureChest.Add(item);
            }

            treasureChest.AddGold(rnd.Next(2080, 4160));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                switch (rnd.Next(3))
                {
                case 0: treasureChest.Add(Item.CreateEnchanted(40023, 20611, 0)); break;                         // Strict Gathering Knife

                case 1: treasureChest.Add(Item.CreateEnchanted(18006, 0, 30807)); break;                         // Prophet Wizard Hat

                case 2: treasureChest.Add(Item.CreateEnchanted(18012, 0, 30521)); break;                         // Fancy Tork Merchant Cap
                }
            }

            treasureChest.AddGold(rnd.Next(6630, 8670));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #15
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchanted item
				Item item = null;
				switch (rnd.Next(2))
				{
					case 0: item = Item.CreateEnchanted(40043, prefix: 20105); break; // Maltreat Rolling Pin
					case 1: item = Item.CreateEnchanted(40001, prefix: 20612); break; // Careful Wooden Stick
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(3360, 6272)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #16
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = new Item(62005);
                switch (rnd.Next(3))
                {
                case 0: enchant.OptionInfo.Prefix = 1506; break;                         // Swan Summoner's

                case 1: enchant.OptionInfo.Prefix = 1706; break;                         // Good

                case 2: enchant.OptionInfo.Prefix = 305; break;                          // Fine
                }
                treasureChest.Add(enchant);
            }

            treasureChest.AddGold(rnd.Next(153, 768));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #17
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            // Warhammer
            int prefix = 0, suffix = 0;
            switch (rnd.Next(4))
            {
            case 0: prefix = 1704; break;                     // Imitation

            case 1: prefix = 1705; break;                     // Cheap

            case 2: prefix = 1706; break;                     // Good

            case 3: prefix = 305; break;                      // Fine
            }
            treasureChest.Add(Item.CreateEnchanted(40016, prefix, suffix));

            treasureChest.AddGold(rnd.Next(2140, 2859));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchanted item
                Item item = null;
                switch (rnd.Next(2))
                {
                case 0: item = Item.CreateEnchanted(40026, prefix: 20404); break;                         // Sacrificial Sickle

                case 1: item = Item.CreateEnchanted(18024, prefix: 30411); break;                         // Magnolia Hairband

                case 2: item = Item.CreateEnchanted(40003, prefix: 30514); break;                         // Hope Short Bow
                }
                treasureChest.Add(item);
            }

            treasureChest.AddGold(rnd.Next(4488, 8160));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #19
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member = creators[i];
            var treasureChest = new TreasureChest();

            // Warhammer
            int prefix = 0, suffix = 0;
            switch (rnd.Next(4))
            {
                case 0: prefix = 1704; break; // Imitation
                case 1: prefix = 1705; break; // Cheap
                case 2: prefix = 1706; break; // Good
                case 3: prefix = 305; break;  // Fine
            }
            treasureChest.Add(Item.CreateEnchanted(40016, prefix, suffix));

            treasureChest.AddGold(rnd.Next(688, 1728)); // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #20
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            // Fluted Short Sword
            int prefix = 0, suffix = 0;
            switch (rnd.Next(4))
            {
            case 0: suffix = 30702; break;                     // Raven

            case 1: suffix = 30602; break;                     // Healer

            case 2: suffix = 30504; break;                     // Gold Goblin

            case 3: suffix = 30501; break;                     // Giant
            }
            treasureChest.Add(Item.CreateEnchanted(40015, prefix, suffix));

            treasureChest.AddGold(rnd.Next(2384, 2992));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Mace
				int prefix = 0, suffix = 0;
				switch (rnd.Next(2))
				{
					case 0: prefix = 20701; break; // Stiff
					case 1: prefix = 21003; break; // Fatal
				}
				switch (rnd.Next(2))
				{
					case 0: suffix = 30506; break; // Belligerent
					case 1: suffix = 10807; break; // Considerate
				}
				treasureChest.Add(Item.CreateEnchanted(40079, prefix, suffix));
			}

			treasureChest.AddGold(rnd.Next(2112, 5200)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #22
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchanted item
                Item item = null;
                switch (rnd.Next(2))
                {
                case 0: item = Item.CreateEnchanted(40043, prefix: 20105); break;                         // Maltreat Rolling Pin

                case 1: item = Item.CreateEnchanted(40001, prefix: 20612); break;                         // Careful Wooden Stick
                }
                treasureChest.Add(item);
            }

            treasureChest.AddGold(rnd.Next(3360, 6272));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		foreach (var member in dungeon.Party)
			member.TalkToNpc("_dungeonlostresident", "Lost Resident");

		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			// Enchant
			var enchant = new Item(62005);
			switch (rnd.Next(3))
			{
				case 0: enchant.OptionInfo.Prefix = 1506; break; // Swan Summoner's
				case 1: enchant.OptionInfo.Prefix = 1706; break; // Good
				case 2: enchant.OptionInfo.Prefix = 305; break;  // Fine
			}
			treasureChest.Add(enchant);

			treasureChest.AddGold(rnd.Next(153, 768)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #24
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();
        var count    = Math.Min(7, creators.Count);

        for (int i = 0; i < count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            treasureChest.AddGold(rnd.Next(320, 1280));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));          // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }

        var orb = new Prop(25032, 0, 0, 0, 0);

        orb.SetState("off");
        orb.Behavior = OnOrbHit;
        dungeon.AddChest(orb);
    }
Пример #25
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Dagger
				var prefix = 0;
				switch (rnd.Next(3))
				{
					case 0: prefix = 20501; break; // Simple
					case 1: prefix = 20502; break; // Scrupulous
					case 2: prefix = 20201; break; // Hard
				}
				treasureChest.Add(Item.CreateEnchanted(40006, prefix, 0));
			}

			treasureChest.AddGold(rnd.Next(1072, 3680)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #26
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = 0;
                switch (rnd.Next(6))
                {
                    case 0: enchant = 11105; break; // Health (Suffix)
                    case 1: enchant = 11106; break; // Blood (Suffix)
                    case 2: enchant = 11205; break; // Water (Suffix)
                    case 3: enchant = 11206; break; // Fountain (Suffix)
                    case 4: enchant = 11304; break; // Patience (Suffix)
                    case 5: enchant = 11305; break; // Sustainer (Suffix)
                }
                treasureChest.Add(Item.CreateEnchant(enchant));
            }

            treasureChest.AddGold(rnd.Next(640, 960)); // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #27
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				switch (rnd.Next(3))
				{
					case 0: treasureChest.Add(Item.CreateEnchanted(40023, 20611, 0)); break; // Strict Gathering Knife
					case 1: treasureChest.Add(Item.CreateEnchanted(18006, 0, 30807)); break; // Prophet Wizard Hat
					case 2: treasureChest.Add(Item.CreateEnchanted(18012, 0, 30521)); break; // Fancy Tork Merchant Cap
				}
			}

			treasureChest.AddGold(rnd.Next(6630, 8670)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #28
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Cores' Angel wing
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20601; break;                         // Blessed

                case 1: prefix = 20406; break;                         // Convenient

                case 2: suffix = 30307; break;                         // Red Bear
                }
                treasureChest.Add(Item.CreateEnchanted(18052, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(3906, 6390));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchant
				var item = new Item(62005);
				switch (rnd.Next(6))
				{
					case 0: item.OptionInfo.Suffix = 11105; break; // Health
					case 1: item.OptionInfo.Suffix = 11106; break; // Blood
					case 2: item.OptionInfo.Suffix = 11205; break; // Water
					case 3: item.OptionInfo.Suffix = 11206; break; // Fountain
					case 4: item.OptionInfo.Suffix = 11304; break; // Patience
					case 5: item.OptionInfo.Suffix = 11305; break; // Sustainer
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(640, 960)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                switch (rnd.Next(2))
                {
                case 0: treasureChest.Add(Item.CreateEnchanted(16015, 20403, 0)); break;                         // Victorious Bracelet

                case 1: treasureChest.Add(Item.CreateEnchanted(40027, 0, 30311)); break;                         // Twilight Weeding Hoe
                }
            }

            treasureChest.AddGold(rnd.Next(5200, 7120));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			member.TalkToNpc("_dungeonlostresident", "Lost Resident");

			var treasureChest = new TreasureChest();

			// Enchant
			var enchant = 0;
			switch (rnd.Next(3))
			{
				case 0: enchant = 1506; break; // Swan Summoner's (Prefix)
				case 1: enchant = 1706; break; // Good (Prefix)
				case 2: enchant = 305; break;  // Fine (Prefix)
			}
			treasureChest.Add(Item.CreateEnchant(enchant));

			treasureChest.AddGold(rnd.Next(153, 768)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #32
0
    public override void OnCleared(Dungeon dungeon)
    {
        foreach (var member in dungeon.Party)
        {
            member.TalkToNpc("_dungeonlostresident", "Lost Resident");
        }

        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            // Enchant
            var enchant = 0;
            switch (rnd.Next(3))
            {
            case 0: enchant = 1506; break;                     // Swan Summoner's (Prefix)

            case 1: enchant = 1706; break;                     // Good (Prefix)

            case 2: enchant = 305; break;                      // Fine (Prefix)
            }
            treasureChest.Add(Item.CreateEnchant(enchant));

            treasureChest.AddGold(rnd.Next(153, 768));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #33
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Mongo's Fashion Cap
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20401; break;                         // Smart

                case 1: prefix = 20601; break;                         // Blessing

                case 2: prefix = 20202; break;                         // Wild Dog
                }
                switch (rnd.Next(3))
                {
                case 0: suffix = 30307; break;                         // Red Bear

                case 1: suffix = 30601; break;                         // Thief

                case 2: suffix = 30503; break;                         // White Spider
                }
                treasureChest.Add(Item.CreateEnchanted(18004, prefix, suffix));

                // Magic Powder of Preservation (G1)
                if (member.Keywords.Has("g1_28"))
                {
                    treasureChest.Add(Item.Create(73061));
                }
            }

            treasureChest.AddGold(rnd.Next(1500, 3600));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #34
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Broad Stick
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 207; break;                         // Fox

                case 1: prefix = 306; break;                         // Sharp

                case 2: prefix = 303; break;                         // Rusty
                }
                switch (rnd.Next(3))
                {
                case 0: suffix = 11106; break;                         // Blood

                case 1: suffix = 10806; break;                         // Understanding

                case 2: suffix = 10704; break;                         // Slug
                }
                treasureChest.Add(Item.CreateEnchanted(40019, prefix, suffix));

                // Goro's Ring (G1)
                if (member.Keywords.Has("g1_13"))
                {
                    treasureChest.Add(Item.Create(73060));
                }
            }

            treasureChest.AddGold(rnd.Next(1232, 4064));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #35
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            treasureChest.AddGold(rnd.Next(58, 86));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));       // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest", member.EntityId));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			treasureChest.AddGold(rnd.Next(153, 768)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #37
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            // Lute
            int prefix = 0, suffix = 0;
            switch (rnd.Next(3))
            {
            case 0: prefix = 4; break;                     // Donkey Hunter's

            case 1: prefix = 1506; break;                  // Swan Summoner's

            case 2: prefix = 1707; break;                  // Sturdy
            }
            switch (rnd.Next(3))
            {
            case 0: suffix = 10806; break;                     // Understanding

            case 1: suffix = 10504; break;                     // Topaz

            case 2: suffix = 10706; break;                     // Wind
            }
            switch (rnd.Next(3))
            {
            case 0: treasureChest.Add(Item.CreateEnchanted(40042, prefix, suffix)); break;

            case 1: treasureChest.Add(Item.CreateEnchanted(40042, prefix, 0)); break;

            case 2: treasureChest.Add(Item.CreateEnchanted(40042, 0, suffix)); break;
            }

            treasureChest.AddGold(rnd.Next(576, 2880));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));          // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			treasureChest.AddGold(rnd.Next(58, 86)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest", member.EntityId));
		}
	}
Пример #39
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            treasureChest.AddGold(rnd.Next(1440, 2560));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #40
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Broad Stick
                int prefix = 0, suffix = 0;
                switch (rnd.Next(4))
                {
                case 0: prefix = 207; break;                       // Fox

                case 1: prefix = 306; break;                       // Sharp

                case 2: prefix = 303; break;                       // Rusty

                case 3: prefix = 7; break;                         // Fox Hunter's
                }
                switch (rnd.Next(3))
                {
                case 0: suffix = 11106; break;                         // Blood

                case 1: suffix = 10806; break;                         // Understanding

                case 2: suffix = 10704; break;                         // Slug
                }
                treasureChest.Add(Item.CreateEnchanted(40019, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(979, 2400));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));          // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #41
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Wizard Hat
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                case 0: prefix = 20802; break;                         // Chaotic

                case 1: prefix = 20601; break;                         // Blessed

                case 2: prefix = 20202; break;                         // Wild Dog
                }
                switch (rnd.Next(3))
                {
                case 0: suffix = 30805; break;                         // Falcon

                case 1: suffix = 30307; break;                         // Red Bear

                case 2: suffix = 30503; break;                         // White Spider
                }
                treasureChest.Add(Item.CreateEnchanted(18006, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(5250, 10500));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));            // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #42
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Broad Stick
				int prefix = 0, suffix = 0;
				switch (rnd.Next(3))
				{
					case 0: prefix = 207; break; // Fox
					case 1: prefix = 306; break; // Sharp
					case 2: prefix = 303; break; // Rusty
				}
				switch (rnd.Next(3))
				{
					case 0: suffix = 11106; break; // Blood
					case 1: suffix = 10806; break; // Understanding
					case 2: suffix = 10704; break; // Slug
				}
				treasureChest.Add(Item.CreateEnchanted(40019, prefix, suffix));

				// Goro's Ring (G1)
				if (member.Keywords.Has("g1_13"))
					treasureChest.Add(Item.Create(73060));
			}

			treasureChest.AddGold(rnd.Next(1232, 4064)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #43
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = 0;
                switch (rnd.Next(3))
                {
                case 0: enchant = 30613; break;                         // Imp (Suffix)

                case 1: enchant = 30402; break;                         // Stone (Suffix)

                case 2: enchant = 30701; break;                         // Homunculus (Suffix)
                }
                treasureChest.Add(Item.CreateEnchant(enchant));
            }

            treasureChest.AddGold(rnd.Next(6144, 10032));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));            // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }

        foreach (var member in dungeon.GetCreators())
        {
            if (!member.HasKeyword("mini_aer_killsiren"))
            {
                member.Keywords.Give("mini_aer_killsiren");
            }
        }
    }
Пример #44
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (member.Keywords.Has("g1_25"))
				treasureChest.Add(Item.Create(73054)); // Book of Revenge Vol 2

			treasureChest.AddGold(rnd.Next(326, 800)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = 0;
                switch (rnd.Next(6))
                {
                case 0: enchant = 11105; break;                         // Health (Suffix)

                case 1: enchant = 11106; break;                         // Blood (Suffix)

                case 2: enchant = 11205; break;                         // Water (Suffix)

                case 3: enchant = 11206; break;                         // Fountain (Suffix)

                case 4: enchant = 11304; break;                         // Patience (Suffix)

                case 5: enchant = 11305; break;                         // Sustainer (Suffix)
                }
                treasureChest.Add(Item.CreateEnchant(enchant));
            }

            treasureChest.AddGold(rnd.Next(640, 960));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #46
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (member.HasKeyword("g1_25"))
            {
                treasureChest.Add(Item.Create(73054));             // Book of Revenge Vol 2
            }
            treasureChest.AddGold(rnd.Next(326, 800));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			// Fomor Medal
			if (member.Keywords.Has("g1_medal_of_fomor"))
				treasureChest.Add(Item.Create(73021));

			treasureChest.AddGold(rnd.Next(576, 1440)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #48
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member = creators[i];
            var treasureChest = new TreasureChest();

            // Lute
            int prefix = 0, suffix = 0;
            switch (rnd.Next(3))
            {
                case 0: prefix = 4; break; // Donkey Hunter's
                case 1: prefix = 1506; break; // Swan Summoner's
                case 2: prefix = 1707; break; // Sturdy
            }
            switch (rnd.Next(3))
            {
                case 0: suffix = 10806; break; // Understanding
                case 1: suffix = 10504; break; // Topaz
                case 2: suffix = 10706; break; // Wind
            }
            switch (rnd.Next(3))
            {
                case 0: treasureChest.Add(Item.CreateEnchanted(40042, prefix, suffix)); break;
                case 1: treasureChest.Add(Item.CreateEnchanted(40042, prefix, 0)); break;
                case 2: treasureChest.Add(Item.CreateEnchanted(40042, 0, suffix)); break;
            }

            treasureChest.AddGold(rnd.Next(576, 2880)); // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #49
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var enchant = 0;
                switch (rnd.Next(6))
                {
                case 0: enchant = 20501; break;                         // Simple (Prefix)

                case 1: enchant = 20502; break;                         // Scrupulous (Prefix)

                case 2: enchant = 30809; break;                         // Dark Cross (Suffix)

                case 3: enchant = 31201; break;                         // Prudent (Suffix)

                case 4: enchant = 31202; break;                         // Jackal (Suffix)

                case 5: enchant = 31102; break;                         // Viper (Suffix)
                }
                treasureChest.Add(Item.CreateEnchant(enchant));
            }

            treasureChest.AddGold(rnd.Next(14440, 24000));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));             // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();

        for (int i = 0; i < dungeon.Party.Count; ++i)
        {
            var member        = dungeon.Party[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Enchant
                var item = new Item(62005);
                switch (rnd.Next(6))
                {
                case 0: item.OptionInfo.Suffix = 11105; break;                         // Health

                case 1: item.OptionInfo.Suffix = 11106; break;                         // Blood

                case 2: item.OptionInfo.Suffix = 11205; break;                         // Water

                case 3: item.OptionInfo.Suffix = 11206; break;                         // Fountain

                case 4: item.OptionInfo.Suffix = 11304; break;                         // Patience

                case 5: item.OptionInfo.Suffix = 11305; break;                         // Sustainer
                }
                treasureChest.Add(item);
            }

            treasureChest.AddGold(rnd.Next(640, 960));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));         // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #51
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd      = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member        = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Mace
                int prefix = 0, suffix = 0;
                switch (rnd.Next(2))
                {
                case 0: prefix = 20701; break;                         // Stiff

                case 1: prefix = 21003; break;                         // Fatal
                }
                switch (rnd.Next(2))
                {
                case 0: suffix = 30506; break;                         // Belligerent

                case 1: suffix = 10807; break;                         // Considerate
                }
                treasureChest.Add(Item.CreateEnchanted(40079, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(2608, 6400));             // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd));           // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
Пример #52
0
    public override void OnCleared(Dungeon dungeon)
    {
        var rnd = RandomProvider.Get();
        var creators = dungeon.GetCreators();

        for (int i = 0; i < creators.Count; ++i)
        {
            var member = creators[i];
            var treasureChest = new TreasureChest();

            if (i == 0)
            {
                // Mongo's Fashion Cap
                int prefix = 0, suffix = 0;
                switch (rnd.Next(3))
                {
                    case 0: prefix = 20401; break; // Smart
                    case 1: prefix = 20601; break; // Blessing
                    case 2: prefix = 20202; break; // Wild Dog
                }
                switch (rnd.Next(3))
                {
                    case 0: suffix = 30307; break; // Red Bear
                    case 1: suffix = 30601; break; // Thief
                    case 2: suffix = 30503; break; // White Spider
                }
                treasureChest.Add(Item.CreateEnchanted(18004, prefix, suffix));
            }

            treasureChest.AddGold(rnd.Next(1500, 3600)); // Gold
            treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

            dungeon.AddChest(treasureChest);

            member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
        }
    }
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();
		var count = Math.Min(7, creators.Count);

		for (int i = 0; i < count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			treasureChest.AddGold(rnd.Next(320, 1280)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}

		var orb = new Prop(25032, 0, 0, 0, 0);
		orb.SetState("off");
		orb.Behavior = OnOrbHit;
		dungeon.AddChest(orb);
	}
Пример #54
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchant
				var enchant = 0;
				switch (rnd.Next(3))
				{
					case 0: enchant = 1506; break; // Swan Summoner's (Prefix)
					case 1: enchant = 1706; break; // Good (Prefix)
					case 2: enchant = 305; break;  // Fine (Prefix)
				}
				treasureChest.Add(Item.CreateEnchant(enchant));
			}

			treasureChest.AddGold(rnd.Next(153, 768)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
Пример #55
0
	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Broad Stick
				int prefix = 0, suffix = 0;
				switch (rnd.Next(4))
				{
					case 0: prefix = 207; break; // Fox
					case 1: prefix = 306; break; // Sharp
					case 2: prefix = 303; break; // Rusty
					case 3: prefix = 7; break; // Fox Hunter's
				}
				switch (rnd.Next(3))
				{
					case 0: suffix = 11106; break; // Blood
					case 1: suffix = 10806; break; // Understanding
					case 2: suffix = 10704; break; // Slug
				}
				treasureChest.Add(Item.CreateEnchanted(40019, prefix, suffix));
			}

			treasureChest.AddGold(rnd.Next(979, 2400)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}