示例#1
0
        /// <summary>
        /// Returns a list of enemies to b e loaded
        /// </summary>
        /// <param name="markers"></param>
        /// <returns></returns>
        public static List <Enemy> ParseEnemies(List <MapMarker> markers)
        {
            List <Enemy> enemies = new List <Enemy>();

            // iterate through each marker of enemy type
            foreach (MapMarker enemyMarker in markers.FindAll(x => x.MarkerType == MarkerType.SpawnPoint))
            {
                // create a new enemy and set its position
                Enemy newEnemy = new Enemy();
                // get the correct enemy type
                switch (enemyMarker.Name)
                {
                case "bat_head":
                    newEnemy = new Bat();
                    break;

                case "fish_demon":
                    newEnemy = new BabyFishDemon();
                    break;

                case "mushroom":
                    newEnemy = new MushroomMinion();
                    break;

                case "gargoyle_head":
                    newEnemy = new Gargoyle();
                    break;

                case "skull":
                    newEnemy = new SkullDemon();
                    break;

                case "mushroomboss":
                    newEnemy = new MushroomBoss();
                    break;
                }
                newEnemy.Transform.Position = enemyMarker.Position;
                enemies.Add(newEnemy);
            }

            return(enemies);
        }
示例#2
0
        public static void MakeSkull(Mobile m, Container c, Mobile killer, string where)
        {
            int bone  = 0;
            int color = m.Hue;

            if (m is DemonOfTheSea)
            {
                color = 490; bone = 2;
            }
            else if (m is BloodDemon)
            {
                bone = 2;
            }
            else if (m is Devil)
            {
                bone = 2;
            }
            else if (m is TitanPyros)
            {
                color = 0x846; bone = 2;
            }
            else if (m is Balron)
            {
                color = 0x430; bone = 2;
            }
            else if (m is Satan)
            {
                color = 0x4AA; bone = 2;
            }
            else if (m is LesserDemon)
            {
                bone = 2;
            }
            else if (m is Xurtzar)
            {
                bone = 2;
            }
            else if (m is FireDemon)
            {
                bone = 2;
            }
            else if (m is Demon)
            {
                bone = 2;
            }
            else if (m is IceDevil)
            {
                color = 0x47F; bone = 2;
            }
            else if (m is DeepSeaDevil)
            {
                color = 490; bone = 2;
            }
            else if (m is ForestDemon)
            {
                bone = 2;
            }
            else if (m is RadiationDemon)
            {
                bone = 2;
            }
            else if (m is Daemon)
            {
                color = 0x846; bone = 2;
            }
            else if (m is IceFiend)
            {
                color = 0x47F; bone = 2;
            }
            else if (m is BlackGateDemon)
            {
                color = 0x497; bone = 2;
            }

            else if (m is DeepSeaGiant)
            {
                color = 1365; bone = 3;
            }
            else if (m is Titan)
            {
                bone = 3;
            }
            else if (m is ElderTitan)
            {
                bone = 3;
            }
            else if (m is Ettin)
            {
                bone = 3;
            }
            else if (m is HillGiant)
            {
                bone = 3;
            }
            else if (m is HillGiantShaman)
            {
                bone = 3;
            }
            else if (m is AncientEttin)
            {
                bone = 3;
            }
            else if (m is AncientCyclops)
            {
                bone = 3;
            }
            else if (m is IceGiant)
            {
                bone = 3;
            }
            else if (m is LavaGiant)
            {
                bone = 3;
            }
            else if (m is MountainGiant)
            {
                bone = 3;
            }
            else if (m is ArcticEttin)
            {
                color = 0x47E; bone = 3;
            }
            else if (m is EttinShaman)
            {
                bone = 3;
            }
            else if (m is StoneGiant)
            {
                bone = 3;
            }
            else if (m is FireGiant)
            {
                color = 0x54F; bone = 3;
            }
            else if (m is ForestGiant)
            {
                color = 0x7D5; bone = 3;
            }
            else if (m is FrostGiant)
            {
                color = 0x482; bone = 3;
            }
            else if (m is JungleGiant)
            {
                color = 0x7D1; bone = 3;
            }
            else if (m is OrkDemigod)
            {
                bone = 3;
            }
            else if (m is UndeadGiant)
            {
                bone = 3;
            }
            else if (m is ZombieGiant)
            {
                bone = 3;
            }
            else if (m is GiantSkeleton)
            {
                bone = 3;
            }
            else if (m is SeaGiant)
            {
                color = 490; bone = 3;
            }
            else if (m is ShamanicCyclops)
            {
                bone = 3;
            }
            else if (m is Cyclops)
            {
                bone = 3;
            }
            else if (m is StormGiant)
            {
                color = 0x9C2; bone = 3;
            }
            else if (m is CloudGiant)
            {
                color = 0xBB4; bone = 3;
            }
            else if (m is StarGiant)
            {
                color = 0xB73; bone = 3;
            }
            else if (m is ZornTheBlacksmith)
            {
                bone = 3;
            }

            else if (m is GrayDragon)
            {
                bone = 1;
            }
            else if (m is BlueDragon)
            {
                bone = 1;
            }
            else if (m is MetalDragon)
            {
                bone = 1;
            }
            else if (m is Dragon)
            {
                bone = 1;
            }
            else if (m is Dragons)
            {
                bone = 1;
            }
            else if (m is StoneDragon)
            {
                bone = 1;
            }
            else if (m is WhiteDragon)
            {
                bone = 1;
            }
            else if (m is BlackDragon)
            {
                bone = 1;
            }
            else if (m is SeaDragon)
            {
                bone = 1;
            }
            else if (m is GreenDragon)
            {
                bone = 1;
            }
            else if (m is DragonGolem)
            {
                bone = 1;
            }
            else if (m is GemDragon)
            {
                bone = 1;
            }
            else if (m is Wyvern)
            {
                bone = 1;
            }

            else if (m is CaddelliteDragon)
            {
                bone = 4;
            }
            else if (m is AncientWyrm)
            {
                bone = 4;
            }
            else if (m is AncientWyvern)
            {
                bone = 4;
            }
            else if (m is SkeletalDragon)
            {
                bone = 4;
            }
            else if (m is Dracolich)
            {
                bone = 4;
            }
            else if (m is BottleDragon)
            {
                bone = 4;
            }
            else if (m is RadiationDragon)
            {
                bone = 4;
            }
            else if (m is CrystalDragon)
            {
                bone = 4;
            }
            else if (m is VoidDragon)
            {
                bone = 4;
            }
            else if (m is ShadowWyrm)
            {
                color = 0x497; bone = 4;
            }
            else if (m is ZombieDragon)
            {
                bone = 4;
            }
            else if (m is VolcanicDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalFireDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalGreenDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalNightDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalRedDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalRoyalDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalRunicDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalSeaDragon)
            {
                bone = 4;
            }
            else if (m is ReanimatedDragon)
            {
                bone = 4;
            }
            else if (m is VampiricDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalAbysmalDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalAmberDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalBlackDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalSilverDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalVolcanicDragon)
            {
                bone = 4;
            }
            else if (m is PrimevalStygianDragon)
            {
                bone = 4;
            }
            else if (m is AshDragon)
            {
                bone = 4;
            }
            else if (m is DragonKing)
            {
                bone = 4;
            }
            else if (m is ElderDragon)
            {
                bone = 4;
            }
            else if (m is SlasherOfVoid)
            {
                bone = 4;
            }

            else if (m is MinotaurCaptain)
            {
                bone = 5;
            }
            else if (m is MinotaurScout)
            {
                bone = 5;
            }
            else if (m is Minotaur)
            {
                bone = 5;
            }

            else if (m is Dracolich)
            {
                bone = 6;
            }
            else if (m is SkeletalDragon)
            {
                bone = 6;
            }
            else if (m is NightWyrm)
            {
                bone = 6;
            }
            else if (m is OnyxWyrm)
            {
                bone = 6;
            }
            else if (m is EmeraldWyrm)
            {
                bone = 6;
            }
            else if (m is AmethystWyrm)
            {
                bone = 6;
            }
            else if (m is SapphireWyrm)
            {
                bone = 6;
            }
            else if (m is GarnetWyrm)
            {
                bone = 6;
            }
            else if (m is TopazWyrm)
            {
                bone = 6;
            }
            else if (m is RubyWyrm)
            {
                bone = 6;
            }
            else if (m is SpinelWyrm)
            {
                bone = 6;
            }
            else if (m is QuartzWyrm)
            {
                bone = 6;
            }
            else if (m is JungleWyrm)
            {
                bone = 6;
            }
            else if (m is DesertWyrm)
            {
                bone = 6;
            }
            else if (m is MountainWyrm)
            {
                bone = 6;
            }
            else if (m is DeepSeaDragon)
            {
                bone = 6;
            }
            else if (m is WhiteWyrm)
            {
                color = 1150; bone = 6;
            }
            else if (m is Wyrms)
            {
                color = 1150;
            }
            else if (m is IceDragon)
            {
                bone = 6;
            }
            else if (m is LavaDragon)
            {
                bone = 6;
            }

            if (bone == 1)
            {
                SkullDragon head = new SkullDragon();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }
            else if (bone == 2)
            {
                SkullDemon head = new SkullDemon();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }
            else if (bone == 3)
            {
                SkullGiant head = new SkullGiant();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }
            else if (bone == 4)
            {
                SkullGreatDragon head = new SkullGreatDragon();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }
            else if (bone == 5)
            {
                SkullMinotaur head = new SkullMinotaur();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }
            else if (bone == 6)
            {
                SkullWyrm head = new SkullWyrm();
                head.Name = "skull of " + m.Name;
                if (m.Title != "")
                {
                    head.Name = head.Name + " " + m.Title;
                }

                head.Hue         = color;
                head.SkullWhere  = where;
                head.SkullKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(head);
            }

            if (m is LavaGiant && Utility.RandomMinMax(1, 2) == 1)
            {
                HeartOfFire heart = new HeartOfFire();
                heart.Name = "heart of " + m.Name;
                if (m.Title != "")
                {
                    heart.Name = heart.Name + " " + m.Title;
                }

                heart.HeartWhere  = where;
                heart.HeartKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(heart);
            }
            else if (m is IceGiant && Utility.RandomMinMax(1, 2) == 1)
            {
                HeartOfIce heart = new HeartOfIce();
                heart.Name = "heart of " + m.Name;
                if (m.Title != "")
                {
                    heart.Name = heart.Name + " " + m.Title;
                }

                heart.HeartWhere  = where;
                heart.HeartKiller = killer.Name + " the " + Server.Misc.GetPlayerInfo.GetSkillTitle(killer);
                c.DropItem(heart);
            }
        }