public TinkersCraftsmanSatchel() : base()
 {
     if (Items.Count < 2 && 0.5 > Utility.RandomDouble())
     {
         AddItem(Reward.TinkerRecipe());
     }
 }
示例#2
0
        public FletchersSatchel()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new Feather(10));
            AddItem(new FletcherTools());
        }
示例#3
0
        public SmithsSatchel()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new IronIngot(10));
            AddItem(new SmithHammer());
        }
示例#4
0
        public BaseMuseumBag()
        {
            Hue = Reward.RewardBagHue();

            DropItem(new Gold(GoldAmount + Utility.Random(1000)));
            DropItem(TerMurBook.ConstructRandom());
        }
 public SmithsCraftsmanSatchel() : base()
 {
     if (Items.Count < 2 && 0.5 > Utility.RandomDouble())
     {
         DropItem(Reward.SmithRecipe());
     }
 }
示例#6
0
        public AlchemistsSatchel() : base()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new Bloodmoss(10));
            AddItem(new MortarPestle());
        }
示例#7
0
        public FletcherCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2 && 0.5 > Utility.RandomDouble())
            {
                AddItem(Reward.FletcherRecipe());
            }

            double random = Utility.RandomDouble();

            if (random < 0.0001)               // 1 in 10.000 to receive Heartwood runic
            {
                AddItem(new RunicFletchersTools(CraftResource.Heartwood, 15));
            }
            else if (random < 0.0003)               // 1 in 5.000 to receive Yew runic
            {
                AddItem(new RunicFletchersTools(CraftResource.Yew, 25));
            }
            else if (random < 0.0008)               // 1 in 2.000 to receive Ash runic
            {
                AddItem(new RunicFletchersTools(CraftResource.Ash, 35));
            }
            else if (random < 0.0028)               // 1 in 500 to receive Oak runic
            {
                AddItem(new RunicFletchersTools(CraftResource.Oak, 45));
            }
        }
示例#8
0
        public ChefsSatchel()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new SackFlour());
            AddItem(new Skillet());
        }
示例#9
0
文件: Nibbet.cs 项目: pallop/Servuo
        public TinkersSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new TinkerTools());

            switch (Utility.Random(5))
            {
            case 0:
                this.AddItem(new Springs(3));
                break;

            case 1:
                this.AddItem(new Axle(3));
                break;

            case 2:
                this.AddItem(new Hinge(3));
                break;

            case 3:
                this.AddItem(new Key());
                break;

            case 4:
                this.AddItem(new Scissors());
                break;
            }
        }
示例#10
0
        public CarpentersSatchel()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new Board(10));
            AddItem(new DovetailSaw());
        }
示例#11
0
        public LumberjacksSatchel() : base()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new Gold(15));
            AddItem(new Hatchet());
        }
示例#12
0
        public BaseRewardBag() : base()
        {
            Hue = Reward.RewardBagHue();

            while (Items.Count < ItemAmount)
            {
                if (0.05 > Utility.RandomDouble())                   // check
                {
                    DropItem(Loot.RandomTalisman());
                }
                else
                {
                    switch (Utility.Random(4))
                    {
                    case 0: DropItem(Reward.Armor()); break;

                    case 1: DropItem(Reward.RangedWeapon()); break;

                    case 2: DropItem(Reward.Weapon()); break;

                    case 3: DropItem(Reward.Jewlery()); break;
                    }
                }
            }
        }
示例#13
0
        public MinersQuestSatchel()
        {
            Hue = BaseReward.SatchelHue();

            AddItem(new Pickaxe());
            AddItem(new Pickaxe());
        }
        public BaseCraftsmanSatchel() : base()
        {
            Hue = Reward.SatchelHue();

            int count = 1;

            if (0.015 > Utility.RandomDouble())
            {
                count = 2;
            }

            bool equipment = false;
            bool jewlery   = false;
            bool talisman  = false;

            while (Items.Count < count)
            {
                if (0.25 > Utility.RandomDouble() && !talisman)
                {
                    AddItem(new RandomTalisman());
                    talisman = true;
                }
                else if (0.4 > Utility.RandomDouble() && !equipment)
                {
                    AddItem(RandomItem());
                    equipment = true;
                }
                else if (0.88 > Utility.RandomDouble() && !jewlery)
                {
                    AddItem(Reward.Jewlery());
                    jewlery = true;
                }
            }
        }
示例#15
0
        public virtual void SecRewards()
        {
            if (m_Quest == null)
            {
                return;
            }

            if (m_Offer)
            {
                AddHtmlLocalized(130, 45, 270, 16, 1049010, 0xFFFFFF, false, false); // Quest Offer
            }
            else
            {
                AddHtmlLocalized(130, 45, 270, 16, 1046026, 0xFFFFFF, false, false); // Quest Log
            }
            AddHtmlObject(160, 70, 200, 40, m_Quest.Title, DarkGreen, false, false);
            AddHtmlLocalized(98, 140, 312, 16, 1072201, 0x2710, false, false); // Reward

            int offset = 163;

            for (int i = 0; i < m_Quest.Rewards.Count; i++)
            {
                BaseReward reward = m_Quest.Rewards[i];

                if (reward != null)
                {
                    AddImage(105, offset, 0x4B9);
                    AddHtmlObject(133, offset, 280, 32, reward.Name, LightGreen, false, false);

                    offset += 16;
                }
            }

            if (m_Completed)
            {
                AddButton(95, 455, 0x2EE0, 0x2EE2, (int)Buttons.AcceptReward, GumpButtonType.Reply, 0);

                if (m_Quest.CanRefuseReward)
                {
                    AddButton(313, 430, 0x2EF2, 0x2EF4, (int)Buttons.RefuseReward, GumpButtonType.Reply, 0);
                }
                else
                {
                    AddButton(313, 455, 0x2EE6, 0x2EE8, (int)Buttons.Close, GumpButtonType.Reply, 0);
                }
            }
            else if (m_Offer)
            {
                AddButton(95, 455, 0x2EE0, 0x2EE2, (int)Buttons.AcceptQuest, GumpButtonType.Reply, 0);
                AddButton(313, 455, 0x2EF2, 0x2EF4, (int)Buttons.RefuseQuest, GumpButtonType.Reply, 0);
                AddButton(130, 430, 0x2EEF, 0x2EF1, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0);
            }
            else
            {
                AddButton(95, 455, 0x2EF5, 0x2EF7, (int)Buttons.ResignQuest, GumpButtonType.Reply, 0);
                AddButton(313, 455, 0x2EEC, 0x2EEE, (int)Buttons.CloseQuest, GumpButtonType.Reply, 0);
                AddButton(130, 430, 0x2EEF, 0x2EF1, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0);
            }
        }
示例#16
0
        public JaacarBox()
            : base()
        {
            Movable = true;
            Hue     = 1266;

            DropItem(Reward.CookRecipe());
        }
示例#17
0
文件: Andric.cs 项目: pallop/Servuo
        public FletchersSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new Feather(10));
            this.AddItem(new FletcherTools());
        }
示例#18
0
        public MinersSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new Pickaxe());
            this.AddItem(new Pickaxe());
        }
示例#19
0
        public SmithsSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new IronIngot(10));
            this.AddItem(new SmithHammer());
        }
示例#20
0
        public CarpentersSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new Board(10));
            this.AddItem(new DovetailSaw());
        }
示例#21
0
        public ChefsSatchel()
            : base()
        {
            this.Hue = BaseReward.SatchelHue();

            this.AddItem(new SackFlour());
            this.AddItem(new Skillet());
        }
示例#22
0
 public Recipebag(int amount)
 {
     DropItem(Reward.FletcherRecipe());
     DropItem(Reward.TailorRecipe());
     DropItem(Reward.SmithRecipe());
     DropItem(Reward.TinkerRecipe());
     DropItem(Reward.CarpentryRecipe());
 }
        public CarpentersCraftsmanSatchel() : base()
        {
            if (Items.Count < 2 && 0.5 > Utility.RandomDouble())
            {
                AddItem(Reward.CarpRecipe());
            }

            if (0.01 > Utility.RandomDouble())
            {
                AddItem(Reward.CarpRunic());
            }
        }
示例#24
0
        public BaseDustyBackpack()
        {
            Hue = Utility.RandomMetalHue();

            for (int i = 0; i < ItemAmount; i++)
            {
                DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity));
            }

            DropItem(new Gold(GoldAmount + Utility.Random(1000)));
            DropItem(TerMurBook.ConstructRandom());
        }
        public FletcherCraftsmanSatchel() : base()
        {
            if (Items.Count < 2 && 0.5 > Utility.RandomDouble())
            {
                AddItem(Reward.FletcherRecipe());
            }

            if (0.01 > Utility.RandomDouble())
            {
                AddItem(Reward.FletcherRunic());
            }
        }
示例#26
0
        public static bool AnyRewards(BaseQuest quest)
        {
            for (int i = 0; i < quest.Rewards.Count; i ++)
            {
                BaseReward reward = quest.Rewards[i];
				
                if (reward.Type != null)
                    return true;
            }
			
            return false;
        }
示例#27
0
        public MLQuestRewardGump(BaseQuest quest)
            : base(75, 25)
        {
            m_Quest = quest;

            AddPage(1);

            Closable = false;
            AddImageTiled(50, 20, 400, 400, 0x1404);
            AddImageTiled(50, 29, 30, 390, 0x28DC);
            AddImageTiled(34, 140, 17, 279, 0x242F);
            AddImage(48, 135, 0x28AB);
            AddImage(-16, 285, 0x28A2);
            AddImage(0, 10, 0x28B5);
            AddImage(25, 0, 0x28B4);
            AddImageTiled(83, 15, 350, 15, 0x280A);
            AddImage(34, 419, 0x2842);
            AddImage(442, 419, 0x2840);
            AddImageTiled(51, 419, 392, 17, 0x2775);
            AddImageTiled(415, 29, 44, 390, 0xA2D);
            AddImageTiled(415, 29, 30, 390, 0x28DC);
            AddLabel(100, 50, 0x481, "");
            AddImage(370, 50, 0x589);
            AddImage(379, 60, 0x15A9);
            AddImage(425, 0, 0x28C9);
            AddImage(90, 33, 0x232D);
            AddHtmlLocalized(130, 45, 270, 16, 1072201, 0xFFFFFF, false, false);          // Reward
            AddImageTiled(130, 65, 175, 1, 0x238D);
            AddButton(95, 395, 0x2EE0, 0x2EE2, 1, GumpButtonType.Reply, 0);               // Accept
            AddHtmlLocalized(130, 68, 220, 48, 1114513, String.Format("#{0}", quest.Title.ToString()), 0x2710, false, false);
            AddHtmlLocalized(98, 140, 312, 16, 1072201, 0x2710, false, false);            // Reward

            if (quest.Rewards.Count == 1)
            {
                BaseReward reward = m_Quest.Rewards[0];

                AddImage(107, 147, 0x4B9);
                AddHtmlObject(135, 146, 280, 32, reward.Name, 0x15F90, false, false);
            }
            else
            {
                AddHtmlLocalized(98, 156, 312, 16, 1072208, 0x2710, false, false);                   // All of the following

                for (int n = 0; n < quest.Rewards.Count; ++n)
                {
                    BaseReward reward = m_Quest.Rewards[n];

                    AddImage(105, 179 + (n * 16), 0x4B9);
                    AddHtmlObject(133, 178 + (n * 16), 280, 32, reward.Name, 0x15F90, false, false);
                }
            }
        }
示例#28
0
        public virtual void AddReward(BaseReward reward)
        {
            if (m_Rewards == null)
            {
                m_Rewards = new List <BaseReward>();
            }

            if (reward != null)
            {
                reward.Quest = this;
                m_Rewards.Add(reward);
            }
        }
示例#29
0
        public RewardBox()
        {
            Hue = Reward.StrongboxHue();

            for (int i = 0; i < ItemAmount; i++)
            {
                DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity));
            }

            if (0.25 > Utility.RandomDouble())               // check
            {
                DropItem(new RandomTalisman());
            }
        }
示例#30
0
        public BaseRewardBag()
        {
            Hue = Reward.RewardBagHue();

            for (int i = 0; i < ItemAmount; i++)
            {
                if (0.05 > Utility.RandomDouble())                   // check
                {
                    DropItem(new RandomTalisman());
                }
                else
                {
                    DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity));
                }
            }
        }
示例#31
0
文件: BaseQuest.cs 项目: m309/ForkUO
        public virtual void AddReward(BaseReward reward)
        {
            if (this.m_Rewards == null)
                this.m_Rewards = new List<BaseReward>();
				
            if (reward != null)
            {
                reward.Quest = this;
                this.m_Rewards.Add(reward);
            }
        }