コード例 #1
0
ファイル: GauntletSpawner.cs プロジェクト: uotools/xrunuo
        public static void CreateVarietyDealer(int x, int y)
        {
            VarietyDealer dealer = new VarietyDealer();

            /* Begin outfit */
            dealer.Name  = "Nix";
            dealer.Title = "the Variety Dealer";

            dealer.Body   = 400;
            dealer.Female = false;
            dealer.Hue    = 0x8835;

            foreach (var item in dealer.GetEquippedItems())
            {
                if (item.Layer != Layer.ShopBuy && item.Layer != Layer.ShopResale && item.Layer != Layer.ShopSell)
                {
                    item.Delete();
                }
            }

            dealer.HairItemID = 0x2049;             // Pig Tails
            dealer.HairHue    = 0x482;

            dealer.FacialHairItemID = 0x203E;
            dealer.FacialHairHue    = 0x482;

            dealer.AddItem(new FloppyHat(1));
            dealer.AddItem(new Robe(1));

            dealer.AddItem(new LanternOfSouls());

            dealer.AddItem(new Sandals(0x482));
            /* End outfit */

            dealer.MoveToWorld(new Point3D(x, y, -1), Map.Malas);

            dealer.Home      = dealer.Location;
            dealer.RangeHome = 2;
        }