Inheritance: BaseCreature
Ejemplo n.º 1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!this.CheckUse(from))
                return;
            Map map = this.Map;
            Point3D loc = this.Location;

            if (from.InRange(loc, 1) || from.InLOS(this))
            {
                (this).Delete();

                Snake snake = new Snake();
                Mongbat mongbat = new Mongbat();
                SilverSerpent silverserpent = new SilverSerpent();
                Raptor raptor = new Raptor();
                Ballem ballem = new Ballem();
                FNPitchfork fnpitchfork = new FNPitchfork();

                switch (Utility.Random(6))
                {
                    case 0:
                        snake.MoveToWorld(loc, map);
                        break;
                    case 1:
                        mongbat.MoveToWorld(loc, map);
                        break;
                    case 2:
                        silverserpent.MoveToWorld(loc, map);
                        break;
                    case 3:
                        raptor.MoveToWorld(loc, map);
                        break;
                    case 4:
                        ballem.MoveToWorld(loc, map);
                        break;
                    case 5:
                        if (Utility.RandomDouble() < 0.20)
                        {
                            fnpitchfork.MoveToWorld(loc, map);
                            from.SendMessage("You find Farmer Nash's pitchfork under one of the brambles of weeds. You pick up the pitchfork and put it in your backpack.");
                            break;
                        }
                        else
                        {
                            silverserpent.MoveToWorld(loc, map);
                            break;
                        }
                }
            }
        }
Ejemplo n.º 2
0
        ////25JUL2008 Lord_Greywolf fix for bad X *** END   ***

        protected virtual void SpawnGenerate(Point2D p, Map map)
        {
            BaseCreature spawn;

            switch (Utility.Random(4))
            {
                default:
                case 0: spawn = new Lich(); break;
                case 1: spawn = new Skeleton(); break;
                case 2: spawn = new Mongbat(); break;
                case 3: spawn = new Troll(); break;
            }

            Spawn(p, map, spawn);

            Delete();
        }