コード例 #1
0
ファイル: DustyBackpack.cs プロジェクト: uotools/xrunuo
        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());
        }
コード例 #2
0
ファイル: RewardBox.cs プロジェクト: uotools/xrunuo
        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());
            }
        }
コード例 #3
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));
                }
            }
        }
コード例 #4
0
ファイル: FarmerNash.cs プロジェクト: uotools/xrunuo
        public override void GiveRewards()
        {
            base.GiveRewards();

            Bag bag = new Bag();

            bag.Hue = BaseReward.RewardBagHue();

            for (int i = 0; i < 2; i++)
            {
                Item gem = Loot.RandomGem();
                gem.Amount = 5;
                bag.DropItem(gem);
            }

            for (int i = 0; i < 3; i++)
            {
                bag.DropItem(BaseReward.RandomItem(Utility.RandomMinMax(1, 3), 10, 70));
            }

            Owner.SendLocalizedMessage(1074360, "#1023702");               // You receive a reward: bag
            Owner.AddToBackpack(bag);
        }