Example #1
0
        public Crane() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Name        = "a crane";
            Body        = 254;
            BaseSoundID = 0x4D7;

            SetStr(26, 35);
            SetDex(16, 25);
            SetInt(11, 15);

            SetHits(26, 35);
            SetMana(0);

            SetDamage(1, 1);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 5, 5);

            SetSkill(SkillName.MagicResist, 4.1, 5.0);
            SetSkill(SkillName.Tactics, 10.1, 11.0);
            SetSkill(SkillName.Wrestling, 10.1, 11.0);

            Fame  = 0;
            Karma = 200;

            VirtualArmor = 5;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 2));
                PackItem(egg);
            }
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            if (Eggs != 0)
            {
                hash ^= Eggs.GetHashCode();
            }
            hash ^= pokemonEggs_.GetHashCode();
            if (FortType != 0)
            {
                hash ^= FortType.GetHashCode();
            }
            hash ^= awardedItems_.GetHashCode();
            hash ^= bonusItems_.GetHashCode();
            hash ^= teamBonusItems_.GetHashCode();
            return(hash);
        }
        //Information shower method
        static void Main(string[] args)
        {
            //Products p = new Products("Ipad", 800, "Table",1);
            //p.ShowInformation();
            //p.ChangePrice(750);
            ////p.ShowInformation();
            //Products d = p;
            ////d.ShowInformation();
            //d.SetPrice(100);
            //p.ShowInformation();

            //Cat c = new Cat("mimi", 30);
            //Dog d = new Dog("wangwang",50);
            //d.ShowInformation();
            //c.MakeSound();

            //NumberDivider d = new NumberDivider();
            //// Console.WriteLine(d.Divide(10,3));
            //d.Divide(25, 0);

            //Temperature t = new Temperature(20);
            ////t.ShowTemp();
            //t.ChangeTemp(15);
            Eggs e = new Eggs();

            e.BuyEgg();
        }
Example #4
0
    public void addEggs(Eggs eggs)
    {
        Vector3 save = new Vector3();

        if (freeSpaces == 0)
        {
            Debug.LogError("No freespace in this hatching chamber");
            return;
        }
        foreach (Vector3 spot in possibleEggsSpot)
        {
            if (spot.z.Equals(0))
            {
                save = spot;
                break;
            }
        }
        save.z = eggs.getType();
        possibleEggsSpot.Remove(new Vector3(save.x, save.y, 0));
        possibleEggsSpot.Add(save);
        currentEggs.Add(eggs);
        if (eggs.getType() == 1)
        {
            workersProd++;
        }
        else
        {
            warriors++;
        }
    }
Example #5
0
    //if pokemon approaches egg, hatch into that pokemon
    public void HatchEgg(int eggNum, int hatcherNum)
    {
        Vector3 pos = new Vector3(((GameObject)Eggs [eggNum]).transform.position.x, .4f, ((GameObject)Eggs [eggNum]).transform.position.z);

        //remove egg prefab
        Destroy((GameObject)Eggs[eggNum]);
        Eggs.RemoveAt(eggNum);

        //place a new pokemon based on who
        if (hatcherNum == 3)
        {
            pos = new Vector3(pos.x, pos.y, pos.z);
            GameObject dud = (GameObject)Instantiate(cubonePrefab, pos, Quaternion.identity);
            dud.GetComponent <Seeker> ().seekerTarget = marowak;
            Cubones.Add(dud);
        }

        else if (hatcherNum == 1)
        {
            pos = new Vector3(pos.x, pos.y, pos.z);
            GameObject dud = (GameObject)Instantiate(charmanderPrefab, pos, Quaternion.identity);
            dud.GetComponent <Seeker> ().seekerTarget = charmeleon;
            Charmanders.Add(dud);
        }

        //spawn new egg
        if (eggs.Count < 6)
        {
            pos = new Vector3(Random.Range(-50, 50), .4f, Random.Range(-50, 50));
            eggs.Add((GameObject)Instantiate(eggPrefab, pos, Quaternion.identity));
        }
    }
Example #6
0
        public override void OnDoubleClick(Mobile from)

        {
            Eggs eg = new Eggs();

            eg.MoveToWorld(this.Location, this.Map);
        }
Example #7
0
        public Bird() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Hue         = Utility.RandomBirdHue();
            Name        = NameList.RandomName("bird");
            Body        = 6;
            BaseSoundID = 0x1B;

            VirtualArmor = Utility.RandomMinMax(0, 6);

            SetStr(10);
            SetDex(25, 35);
            SetInt(10);

            SetDamage(0);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 4.2, 6.4);
            SetSkill(SkillName.Tactics, 4.0, 6.0);
            SetSkill(SkillName.MagicResist, 4.0, 5.0);

            Fame  = 150;
            Karma = 0;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = -6.9;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(1);
                PackItem(egg);
            }
        }
Example #8
0
 public void Create(Eggs eggs)
 {
     using (var context = new NurseryContext())
     {
         context.Eggs.Add(eggs);
         context.SaveChanges();
     }
 }
Example #9
0
 private void HatchAllEggs()
 {
     foreach (KeyValuePair <Vector2Int, int> Pair in Eggs)
     {
         AddEnemySnake(Pair.Key, Pair.Value);
     }
     Eggs.Clear();
 }
Example #10
0
 public override int GetHashCode() {
   int hash = 1;
   if (Result != 0) hash ^= Result.GetHashCode();
   if (FortId.Length != 0) hash ^= FortId.GetHashCode();
   hash ^= items_.GetHashCode();
   if (Eggs != 0) hash ^= Eggs.GetHashCode();
   hash ^= pokemonEggs_.GetHashCode();
   return hash;
 }
Example #11
0
    public void hatching(Eggs egg)
    {
        if (egg.hatchingTime == 0)
        {
            //Position fehlt

            /*switch (egg.type) //Commented Because transform.position not working because no Monobehaviour
             * {
             *  case 1:
             *      Instantiate(egg.worker, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 2:
             *      Instantiate(egg.warrior, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 3:
             *      Instantiate(egg.warriorC, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 4:
             *      Instantiate(egg.warriorP, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 5:
             *      Instantiate(egg.warriorS, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 6:
             *      Instantiate(egg.warriorPC, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 7:
             *      Instantiate(egg.warriorCS, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 8:
             *      Instantiate(egg.warriorSP, egg.transform.position, Quaternion.identity);
             *      break;
             *  case 9:
             *      Instantiate(egg.warriorCSP, egg.transform.position, Quaternion.identity);
             *      break;
             *
             * }*/
            if (egg.type == 1)
            {
                HatchingChamber.totalAnt++;
                HatchingChamber.workers++;
                HatchingChamber.workersProd--;
            }
            else
            {
                HatchingChamber.totalAnt++;
                HatchingChamber.warriors++;
                HatchingChamber.warriorsProd--;
            }
            return;
        }
        egg.hatchingTime--;
    }
Example #12
0
    private void HatchRandomEgg()
    {
        if (Eggs.Count == 0)
        {
            return;
        }
        int RandomIndex = Random.Range(0, Eggs.Count);
        KeyValuePair <Vector2Int, int> Pair = Eggs.ElementAt(RandomIndex);

        AddEnemySnake(Pair.Key, Pair.Value);
        Eggs.Remove(Pair.Key);
    }
Example #13
0
        static void Main(string[] args)
        {
            var omeletteEggs = new Eggs(new OmeletteStrategy());

            omeletteEggs.Cook();

            var friedEggs = new Eggs(new FriedStrategy());

            friedEggs.Cook();

            var boiledEggs = new Eggs(new BoiledStrategy());

            boiledEggs.Cook();
        }
Example #14
0
    public Eggs takeEggs()
    {
        if (eggsWaiting == null)
        {
            Debug.LogError("Want to take non existing Eggs");
            return(null);
        }
        eggsWaiting.Add(new Eggs(antQueue[0]));
        antQueue.RemoveAt(0);
        Eggs egg = eggsWaiting[0];

        eggsWaiting.RemoveAt(0);
        return(eggsWaiting[0]);
    }
Example #15
0
        private async Task <MethodResult> IncubateEggs()
        {
            MethodResult <EggIncubator> incubatorResponse = GetIncubator();

            if (!incubatorResponse.Success)
            {
                return(new MethodResult());
            }

            PokemonData egg = Eggs.FirstOrDefault(x => String.IsNullOrEmpty(x.EggIncubatorId));

            if (egg == null)
            {
                return(new MethodResult
                {
                    Message = "No egg to incubate",
                    Success = true
                });
            }

            try
            {
                UseItemEggIncubatorResponse response = await _client.Inventory.UseItemEggIncubator(incubatorResponse.Data.Id, egg.Id);

                if (response.Result != UseItemEggIncubatorResponse.Types.Result.Success)
                {
                    LogCaller(new LoggerEventArgs(String.Format("Failed to incubate egg. Response: {0}", response.Result), LoggerTypes.Warning));

                    return(new MethodResult());
                }

                LogCaller(new LoggerEventArgs(String.Format("Incubating egg in {0}. Pokmeon Id: {1}", response.EggIncubator.ItemId.ToString().Replace("ItemIncubator", ""), response.EggIncubator.PokemonId), LoggerTypes.Incubate));

                return(new MethodResult
                {
                    Message = "Success",
                    Success = true
                });
            }
            catch (Exception ex)
            {
                LogCaller(new LoggerEventArgs("Incubate egg request failed", LoggerTypes.Exception, ex));

                return(new MethodResult
                {
                    Message = "Incubate egg request failed"
                });
            }
        }
Example #16
0
 protected override void OnTick()
 {
     if (Mare.Map != Map.Internal)
     {
         Eggs eggs = new Eggs();
         eggs.MoveToWorld(Mare.Location, Mare.Map);
         Effects.PlaySound(Mare.Location, Mare.Map, 110);                    //Can change number of sound played 110 = chicken cluck
         Mare.PublicOverheadMessage(MessageType.Regular, 62, true, "Cluck"); //FYI: Mare.PublicOverheadMessage( MessageType.Regular, 62 this is for the hue colot, true is for cursive, "Cluck" );
     }
     else
     {
         Effects.PlaySound(Mare.Location, Mare.Map, 130);             //Can change number of sound played, 130 = Moose sound
         Mare.PublicOverheadMessage(MessageType.Regular, 38, true, "Eggs spawning on internal Map. Tell a GM.");
     }
 }
Example #17
0
        public MethodResult <AccountExportModel> GetAccountExport()
        {
            if (Stats == null)
            {
                LogCaller(new LoggerEventArgs(String.Format("No stats found for {0}. Please update details", UserSettings.Username), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            IEnumerable <InventoryItem> AllItems = new List <InventoryItem>();

            if (_client.LoggedIn)
            {
                AllItems = _client.ClientSession.Player.Inventory.InventoryItems;
            }

            if (!AllItems.Any())
            {
                LogCaller(new LoggerEventArgs(String.Format("No items found for {0}. Please update details", UserSettings.Username), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            if (!Pokedex.Any())
            {
                LogCaller(new LoggerEventArgs(String.Format("No pokedex found for {0}. Please update details", UserSettings.Username), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            var exportModel = new AccountExportModel
            {
                Level    = Stats.Level,
                Type     = UserSettings.AuthType,
                Username = UserSettings.Username,
                Password = UserSettings.Password,
                Pokedex  = Pokedex.Select(x => new PokedexEntryExportModel(x)).ToList(),
                Pokemon  = Pokemon.Select(x => new PokemonDataExportModel(x, CalculateIVPerfection(x))).ToList(),
                Items    = Items.Select(x => new ItemDataExportModel(x)).ToList(),
                Eggs     = Eggs.Select(x => new EggDataExportModel(x)).ToList()
            };

            return(new MethodResult <AccountExportModel>
            {
                Data = exportModel,
                Success = true
            });
        }
Example #18
0
            protected override void OnTick()
            {
                if (m_Owner.Deleted)
                {
                    Stop();
                    return;
                }
                Map map = m_Owner.Map;

                if (map != null && map != Map.Internal && m_Owner.Controlled && (!m_Owner.IsDeadPet))
                {
                    Eggs eggs = new Eggs();
                    eggs.MoveToWorld(m_Owner.Location, map);
                    Effects.PlaySound(m_Owner.Location, map, 1064);
                }
            }
Example #19
0
        public TropicalBird() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Hue = Utility.RandomBirdHue();

            switch (Utility.Random(4))
            {
            case 0: Name = "a lorikeet";    break;

            case 1: Name = "a parrot";              break;

            case 2: Name = "a macaw";               break;

            case 3: Name = "a hornbill";    break;
            }

            Body        = 6;
            BaseSoundID = 0xBF;

            VirtualArmor = Utility.RandomMinMax(0, 6);

            SetStr(10);
            SetDex(25, 35);
            SetInt(10);

            SetDamage(0);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 4.2, 6.4);
            SetSkill(SkillName.Tactics, 4.0, 6.0);
            SetSkill(SkillName.MagicResist, 4.0, 5.0);

            Fame  = 150;
            Karma = 0;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = -6.9;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(1);
                PackItem(egg);
            }
        }
Example #20
0
        internal void OnEggIncubatorStatus(EggIncubatorStatusEvent e)
        {
            var egg  = Eggs.FirstOrDefault(t => t.Id == e.PokemonId);
            var incu = Incubators.FirstOrDefault(t => t.Id == e.IncubatorId);

            if (egg == null)
            {
                return;
            }

            egg.Hatchable = false;
            incu.InUse    = true;
            egg.KM        = e.KmWalked;

            egg.RaisePropertyChanged("KM");
            egg.RaisePropertyChanged("Hatchable");
            incu.RaisePropertyChanged("InUse");
        }
Example #21
0
        public void AddOrUpdate(PokemonData egg, IncubatorViewModel incu = null)
        {
            var eggModel = new EggViewModel(egg);

            eggModel.Hatchable = incu == null;

            var existing = Eggs.FirstOrDefault(x => x.Id == eggModel.Id);

            if (existing != null)
            {
                // Do not update, it overwrites OnEggIncubatorStatus Status updates
                // existing.UpdateWith(eggModel);
            }
            else
            {
                Eggs.Add(eggModel);
            }
        }
Example #22
0
        public DesertBird() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Body        = 6;
            BaseSoundID = 0x1B;

            switch (Utility.Random(4))
            {
            case 0: Name = "a roadrunner";          Hue = Utility.RandomNeutralHue();       Body = 254;             break;

            case 1: Name = "a gnatcatcher,";        Hue = Utility.RandomNeutralHue();       break;

            case 2: Name = "a flicker";             Hue = Utility.RandomNeutralHue();       break;

            case 3: Name = "a sandgrouse";          Hue = Utility.RandomNeutralHue();       break;
            }

            VirtualArmor = Utility.RandomMinMax(0, 6);

            SetStr(10);
            SetDex(25, 35);
            SetInt(10);

            SetDamage(0);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 4.2, 6.4);
            SetSkill(SkillName.Tactics, 4.0, 6.0);
            SetSkill(SkillName.MagicResist, 4.0, 5.0);

            Fame  = 150;
            Karma = 0;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = -6.9;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(1);
                PackItem(egg);
            }
        }
Example #23
0
        public SwampBird() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            switch (Utility.Random(4))
            {
            case 0: Name = "a heron";               Hue = Utility.RandomBlueHue();          break;

            case 1: Name = "a spoonbill";   Hue = Utility.RandomRedHue();           break;

            case 2: Name = "a flycatcher";  Hue = Utility.RandomGreenHue();         break;

            case 3: Name = "a bittern";     Hue = Utility.RandomNeutralHue();       break;
            }

            Body        = 6;
            BaseSoundID = 0x1B;

            VirtualArmor = Utility.RandomMinMax(0, 6);

            SetStr(10);
            SetDex(25, 35);
            SetInt(10);

            SetDamage(0);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Wrestling, 4.2, 6.4);
            SetSkill(SkillName.Tactics, 4.0, 6.0);
            SetSkill(SkillName.MagicResist, 4.0, 5.0);

            Fame  = 150;
            Karma = 0;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = -6.9;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(1);
                PackItem(egg);
            }
        }
Example #24
0
        public Hawk() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Name        = "a hawk";
            Body        = 5;
            Hue         = Utility.RandomNeutralHue();
            BaseSoundID = 0x2EE;

            SetStr(31, 47);
            SetDex(36, 60);
            SetInt(8, 20);

            SetHits(20, 27);
            SetMana(0);

            SetDamage(5, 10);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 20, 25);
            SetResistance(ResistanceType.Fire, 10, 15);
            SetResistance(ResistanceType.Cold, 20, 25);
            SetResistance(ResistanceType.Poison, 5, 10);
            SetResistance(ResistanceType.Energy, 5, 10);

            SetSkill(SkillName.MagicResist, 15.3, 30.0);
            SetSkill(SkillName.Tactics, 18.1, 37.0);
            SetSkill(SkillName.Wrestling, 20.1, 30.0);

            Fame  = 300;
            Karma = 0;

            VirtualArmor = 22;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = 17.1;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 2));
                PackItem(egg);
            }
        }
Example #25
0
        public AxeBeak() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
        {
            Name        = "an axebeak";
            Body        = 25;
            BaseSoundID = 0x8F;

            SetStr(96, 120);
            SetDex(86, 110);
            SetInt(51, 75);

            SetHits(58, 72);

            SetDamage(5, 7);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 25, 30);
            SetResistance(ResistanceType.Fire, 10, 20);
            SetResistance(ResistanceType.Cold, 10, 30);
            SetResistance(ResistanceType.Poison, 20, 30);
            SetResistance(ResistanceType.Energy, 10, 20);

            SetSkill(SkillName.MagicResist, 50.1, 65.0);
            SetSkill(SkillName.Tactics, 70.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 90.0);

            Fame  = 2500;
            Karma = -2500;

            VirtualArmor = 28;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = 39.1;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 5));
                PackItem(egg);
            }
        }
Example #26
0
        public MethodResult <AccountExportModel> GetAccountExport()
        {
            if (Stats == null)
            {
                LogCaller(new LoggerEventArgs(String.Format("No stats found for {0}. Please update details", UserSettings.PtcUsername), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            if (AllItems == null || AllItems.Count == 0)
            {
                LogCaller(new LoggerEventArgs(String.Format("No items found for {0}. Please update details", UserSettings.PtcUsername), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            if (Pokedex == null || Pokedex.Count == 0)
            {
                LogCaller(new LoggerEventArgs(String.Format("No pokedex found for {0}. Please update details", UserSettings.PtcUsername), LoggerTypes.Warning));

                return(new MethodResult <AccountExportModel>());
            }

            AccountExportModel exportModel = new AccountExportModel
            {
                Level    = Stats.Level,
                Type     = UserSettings.AuthType.ToString(),
                Username = UserSettings.PtcUsername,
                Password = UserSettings.PtcPassword,
                Pokedex  = Pokedex.Select(x => new PokedexEntryExportModel(x)).ToList(),
                Pokemon  = Pokemon.Select(x => new PokemonDataExportModel(x, CalculateIVPerfection(x).Data)).ToList(),
                Items    = Items.Select(x => new ItemDataExportModel(x)).ToList(),
                Eggs     = Eggs.Select(x => new EggDataExportModel(x)).ToList()
            };

            return(new MethodResult <AccountExportModel>
            {
                Data = exportModel,
                Success = true
            });
        }
Example #27
0
        public HarpyElder() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "an elder harpy";
            Body        = 153;
            BaseSoundID = 402;

            SetStr(296, 325);
            SetDex(86, 105);
            SetInt(291, 385);

            SetHits(178, 195);

            SetDamage(8, 19);

            SetDamageType(ResistanceType.Physical, 50);
            SetDamageType(ResistanceType.Energy, 50);

            SetResistance(ResistanceType.Physical, 45, 55);
            SetResistance(ResistanceType.Fire, 60, 70);
            SetResistance(ResistanceType.Cold, 40, 50);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 40, 50);

            SetSkill(SkillName.Anatomy, 62.0, 100.0);
            SetSkill(SkillName.EvalInt, 90.1, 100.0);
            SetSkill(SkillName.Magery, 90.1, 100.0);
            SetSkill(SkillName.MagicResist, 115.1, 130.0);
            SetSkill(SkillName.Tactics, 80.1, 100.0);
            SetSkill(SkillName.Wrestling, 80.1, 100.0);

            Fame  = 12500;
            Karma = -12500;

            VirtualArmor = 50;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 10));
                PackItem(egg);
            }
        }
Example #28
0
        public HarpyHen() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a harpy hen";
            Body        = 153;
            BaseSoundID = 402;
            Hue         = 0x9C7;

            SetStr(696, 725);
            SetDex(86, 105);
            SetInt(436, 475);

            SetHits(478, 495);

            SetDamage(14, 20);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 45, 60);
            SetResistance(ResistanceType.Fire, 50, 60);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 20, 30);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.EvalInt, 70.1, 80.0);
            SetSkill(SkillName.Magery, 70.1, 80.0);
            SetSkill(SkillName.MagicResist, 85.1, 95.0);
            SetSkill(SkillName.Tactics, 70.1, 80.0);
            SetSkill(SkillName.Wrestling, 60.1, 80.0);

            Fame  = 15000;
            Karma = -15000;

            VirtualArmor = 40;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 10));
                PackItem(egg);
            }
        }
Example #29
0
        public Roc() : base("a roc", 243, 0x3E94, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Hue         = GetHue();
            BaseSoundID = 0x2EE;

            SetStr(1201, 1410);
            SetDex(171, 270);
            SetInt(301, 325);

            SetHits(901, 1100);
            SetMana(60);

            SetDamage(20, 30);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 55, 70);
            SetResistance(ResistanceType.Fire, 70, 90);
            SetResistance(ResistanceType.Cold, 15, 25);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 40, 50);

            SetSkill(SkillName.Anatomy, 75.1, 80.0);
            SetSkill(SkillName.MagicResist, 85.1, 100.0);
            SetSkill(SkillName.Tactics, 100.1, 110.0);
            SetSkill(SkillName.Wrestling, 100.1, 120.0);

            Fame  = 18000;
            Karma = -18000;

            Tamable      = true;
            ControlSlots = 4;
            MinTameSkill = 98.7;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 10));
                PackItem(egg);
            }
        }
Example #30
0
        public GiantHawk(string name) : base(name, 243, 0x3E94, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Hue         = 2708;
            BaseSoundID = 0x2EE;

            SetStr(126, 155);
            SetDex(81, 105);
            SetInt(16, 40);

            SetHits(76, 93);
            SetMana(0);

            SetDamage(8, 13);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 25, 35);
            SetResistance(ResistanceType.Cold, 15, 25);
            SetResistance(ResistanceType.Poison, 5, 10);
            SetResistance(ResistanceType.Energy, 5, 10);

            SetSkill(SkillName.MagicResist, 25.1, 40.0);
            SetSkill(SkillName.Tactics, 70.1, 100.0);
            SetSkill(SkillName.Wrestling, 45.1, 70.0);

            Fame  = 1000;
            Karma = -500;

            VirtualArmor = 24;

            Tamable      = true;
            ControlSlots = 1;
            MinTameSkill = 59.1;

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                Item egg = new Eggs(Utility.RandomMinMax(1, 5));
                PackItem(egg);
            }
        }