コード例 #1
0
ファイル: TradeMinister.cs プロジェクト: ygtkms/ServUO
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int v = reader.ReadInt();

            City = (City)reader.ReadInt();

            if (CitySystem != null)
            {
                CitySystem.Minister = this;
            }

            Ministers.Add(this);
        }
コード例 #2
0
        public TradeMinister(City city) : base(AIType.AI_Vendor, FightMode.None, 10, 1, .4, .2)
        {
            City      = city;
            SpeechHue = 0x3B2;
            Female    = Utility.RandomDouble() > 0.75;
            Blessed   = true;

            Name  = Female ? NameList.RandomName("female") : NameList.RandomName("male");
            Title = "the minister of trade";

            Body             = Female ? 0x191 : 0x190;
            HairItemID       = Race.RandomHair(Female);
            FacialHairItemID = Race.RandomFacialHair(Female);
            HairHue          = Race.RandomHairHue();
            Hue = Race.RandomSkinHue();

            SetStr(150);
            SetInt(50);
            SetDex(150);

            EquipItem(new Cloak(1157));
            EquipItem(new BodySash(1326));

            ChainChest chest = new ChainChest
            {
                Hue = 1908
            };

            EquipItem(chest);

            ThighBoots boots = new ThighBoots
            {
                Hue = 1908
            };

            EquipItem(boots);

            EquipItem(new GoldRing());

            Ministers.Add(this);

            Frozen = true;
        }