Exemplo n.º 1
0
        public Dracula() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "Dracula";
            Title       = "the master vampire";
            Body        = 311;
            BaseSoundID = 0x47D;

            SetStr(1096, 1185);
            SetDex(86, 175);
            SetInt(686, 775);

            SetHits(350, 400);

            SetDamage(29, 35);

            SetDamageType(ResistanceType.Physical, 75);
            SetDamageType(ResistanceType.Fire, 25);

            SetResistance(ResistanceType.Physical, 65, 75);
            SetResistance(ResistanceType.Fire, 80, 90);
            SetResistance(ResistanceType.Cold, 70, 80);
            SetResistance(ResistanceType.Poison, 60, 70);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetSkill(SkillName.EvalInt, 80.1, 100.0);
            SetSkill(SkillName.Magery, 80.1, 100.0);
            SetSkill(SkillName.Meditation, 52.5, 75.0);
            SetSkill(SkillName.MagicResist, 100.5, 150.0);
            SetSkill(SkillName.Tactics, 97.6, 100.0);
            SetSkill(SkillName.Wrestling, 97.6, 100.0);

            Fame  = 22500;
            Karma = -22500;

            VirtualArmor = 70;

            if (1 == Utility.RandomMinMax(0, 2))
            {
                LootChest MyChest = new LootChest(Server.Misc.IntelligentAction.FameBasedLevel(this));
                MyChest.Name = "Dracula's Chest";
                MyChest.Hue  = 0x485;
                PackItem(MyChest);
            }

            if (1 == Utility.RandomMinMax(0, 3))
            {
                PackItem(new DraculaSword());
            }
            else
            {
                RoyalSword sword = new RoyalSword();
                sword.Hue = 0x497;
                PackItem(sword);
            }
        }
Exemplo n.º 2
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            Mobile killer = this.LastKiller;

            if (killer != null)
            {
                if (killer is BaseCreature)
                {
                    killer = ((BaseCreature)killer).GetMaster();
                }

                if (killer is PlayerMobile)
                {
                    if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1)
                    {
                        switch (Utility.RandomMinMax(0, 8))
                        {
                        case 0: Item loot1 = new PlateChest(); loot1.Name = "tunic"; MorphingItem.MorphMyItem(loot1, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot1); break;

                        case 1: Item loot2 = new PlateArms(); loot2.Name = "arms"; MorphingItem.MorphMyItem(loot2, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot2); break;

                        case 2: Item loot3 = new PlateLegs(); loot3.Name = "leggings"; MorphingItem.MorphMyItem(loot3, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot3); break;

                        case 3: Item loot4 = new PlateGorget(); loot4.Name = "gorget"; MorphingItem.MorphMyItem(loot4, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot4); break;

                        case 4: Item loot5 = new PlateGloves(); loot5.Name = "guantlets"; MorphingItem.MorphMyItem(loot5, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot5); break;

                        case 5: Item loot6 = new OrcHelm(); loot6.Name = "helm"; MorphingItem.MorphMyItem(loot6, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot6); break;

                        case 6: Item loot7 = new RoyalSword(); loot7.Name = "sword"; MorphingItem.MorphMyItem(loot7, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("weapons")); c.DropItem(loot7); break;

                        case 7: Item loot8 = new ChaosShield(); loot8.Name = "shield"; MorphingItem.MorphMyItem(loot8, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot8); break;

                        case 8: Item loot9 = Loot.RandomJewelry(); MorphingItem.MorphMyItem(loot9, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("misc")); c.DropItem(loot9); break;
                        }
                    }
                }
            }
        }
Exemplo n.º 3
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public static Item CreateMetalWeapon()
        {
            Item item = null;

            int nType = Utility.RandomMinMax(0, 41);

            switch (nType)
            {
            case 1:         item = new Cutlass();                   item.Name = "cutlass";                  break;

            case 2:         item = new Katana();                    item.Name = "katana";                   break;

            case 3:         item = new Kryss();                             item.Name = "kryss";                    break;

            case 4:         item = new Broadsword();                item.Name = "broadsword";               break;

            case 5:         item = new Longsword();                 item.Name = "longsword";                break;

            case 6:         item = new ThinLongsword();             item.Name = "longsword";                break;

            case 7:         item = new VikingSword();               item.Name = "barbarian sword";  break;

            case 8:         item = new Scimitar();                  item.Name = "scimitar";                 break;

            case 9:         item = new BoneHarvester();             item.Name = "sickle";                   break;

            case 10:        item = new CrescentBlade();             item.Name = "crescent blade";   break;

            case 11:        item = new DoubleBladedStaff(); item.Name = "bladed staff";             break;

            case 12:        item = new Lance();                             item.Name = "lance";                    break;

            case 13:        item = new Pike();                              item.Name = "pike";                             break;

            case 14:        item = new Scythe();                    item.Name = "scythe";                   break;

            case 15:        item = new Dagger();                    item.Name = "dagger";                   break;

            case 16:        item = new HammerPick();                item.Name = "hammer pick";              break;

            case 17:        item = new Mace();                              item.Name = "mace";                             break;

            case 18:        item = new Maul();                              item.Name = "maul";                             break;

            case 19:        item = new WarHammer();                 item.Name = "war hammer";               break;

            case 20:        item = new WarMace();                   item.Name = "war mace";                 break;

            case 21:        item = new ExecutionersAxe();   item.Name = "great axe";                break;

            case 22:        item = new BattleAxe();                 item.Name = "battle axe";               break;

            case 23:        item = new TwoHandedAxe();              item.Name = "two-handed axe";   break;

            case 24:        item = new Axe();                               item.Name = "axe";                              break;

            case 25:        item = new DoubleAxe();                 item.Name = "double axe";               break;

            case 26:        item = new RoyalSword();                item.Name = "royal sword";              break;

            case 27:        item = new LargeBattleAxe();    item.Name = "large battle axe"; break;

            case 28:        item = new WarAxe();                    item.Name = "war axe";                  break;

            case 29:        item = new Bardiche();                  item.Name = "bardiche";                 break;

            case 30:        item = new Halberd();                   item.Name = "halberd";                  break;

            case 31:        item = new Pitchfork();                 item.Name = "trident";                  break;

            case 32:        item = new ShortSpear();                item.Name = "short spear";              break;

            case 33:        item = new Spear();                             item.Name = "spear";                    break;

            case 34:        item = new NoDachi();                   item.Name = "no dachi";                 break;

            case 35:        item = new Wakizashi();                 item.Name = "wakizashi";                break;

            case 36:        item = new Tetsubo();                   item.Name = "tetsubo";                  break;

            case 37:        item = new Lajatang();                  item.Name = "lajatang";                 break;

            case 38:        item = new Daisho();                    item.Name = "daisho";                   break;

            case 39:        item = new Tekagi();                    item.Name = "tekagi";                   break;

            case 40:        item = new Kama();                              item.Name = "kama";                             break;

            case 41:        item = new Sai();                               item.Name = "sai";                              break;
            }

            return(item);
        }