SetInt() public méthode

public SetInt ( int val ) : void
val int
Résultat void
        public void Scale(BaseCreature c)
        {
            if (c == null)
            {
                return;
            }

            if (c is BaseAspect && c != this)
            {
                return;
            }

            var factor = GetLevelFactor();

            if (c is IAspectSpawn asp)
            {
                if (asp.Aspect != this)
                {
                    return;
                }

                factor *= 0.10;
            }
            else if (c.Team != Team)
            {
                return;
            }

            c.VirtualArmor = Math.Min(90, 40 + Scale(10, factor));

            c.SetStr(Scale(200, factor), Scale(250, factor));
            c.SetDex(Scale(200, factor), Scale(250, factor));
            c.SetInt(Scale(200, factor), Scale(250, factor));

            c.SetHits(Scale(50000, factor), Scale(75000, factor));
            c.SetStam(Scale(1000, factor), Scale(2500, factor));
            c.SetMana(Scale(1000, factor), Scale(2500, factor));

            var damage = Scale(10, factor);

            c.SetDamage(Math.Min(80, 15 + damage), Math.Min(90, 30 + damage));

            var skill = Math.Min(120.0, 95.0 + Scale(5.0, factor));

            c.SetAllSkills(skill, Math.Max(100, skill));
        }
Exemple #2
0
        public static void SetStats( BaseCreature steed )
        {
            steed.SetStr( 201, 210 );
            steed.SetDex( 101, 110 );
            steed.SetInt( 101, 115 );

            steed.SetHits( 201, 220 );

            steed.SetDamage( 20, 24 );

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

            steed.SetResistance( ResistanceType.Physical, 60, 70 );
            steed.SetResistance( ResistanceType.Fire, 90 );
            steed.SetResistance( ResistanceType.Poison, 100 );

            steed.SetSkill( SkillName.MagicResist, 90.1, 110.0 );
            steed.SetSkill( SkillName.Tactics, 50.0 );
            steed.SetSkill( SkillName.Wrestling, 90.1, 110.0 );

            steed.Fame = 0;
            steed.Karma = 0;
        }
Exemple #3
0
        public static void SetStats(BaseCreature steed)
        {
            steed.SetStr(201, 210);
            steed.SetDex(101, 110);
            steed.SetInt(101, 115);

            steed.SetHits(201, 220);

            steed.SetDamage(20, 24);

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

            steed.SetResistance(ResistanceType.Physical, 60, 70);
            steed.SetResistance(ResistanceType.Fire, 90);
            steed.SetResistance(ResistanceType.Poison, 100);

            steed.SetSkill(SkillName.MagicResist, 90.1, 110.0);
            steed.SetSkill(SkillName.Tactics, 50.0);
            steed.SetSkill(SkillName.Wrestling, 90.1, 110.0);

            steed.Fame  = 0;
            steed.Karma = 0;
        }
Exemple #4
0
        public void SizeUpCrewMember(BaseCreature bc, bool evil, int link, Mobile captain, string toss)
        {
            MorphingTime.RemoveMyClothes((Mobile)bc);

            if (bc.Backpack != null)
            {
                List <Item> belongings = new List <Item>();
                foreach (Item i in bc.Backpack.Items)
                {
                    belongings.Add(i);
                }
                foreach (Item stuff in belongings)
                {
                    stuff.Delete();
                }
            }

            bc.AI        = AIType.AI_Archer;
            bc.FightMode = FightMode.Evil;
            bc.Karma     = 1500;
            bc.Name      = "a sailor";

            if (evil)
            {
                bc.FightMode = FightMode.Closest;
                bc.Karma     = -1500;
                bc.Name      = "a pirate";
                if (captain is PirateCult)
                {
                    bc.Name = "a follower";
                }
            }

            bc.SetStr(96, 120);
            bc.SetDex(81, 105);
            bc.SetInt(36, 60);

            bc.SetHits(58, 72);

            SetDamage(10, 23);

            bc.SetDamageType(ResistanceType.Physical, 100);

            bc.SetResistance(ResistanceType.Physical, 35, 50);
            bc.SetResistance(ResistanceType.Fire, 10, 30);
            bc.SetResistance(ResistanceType.Cold, 10, 30);
            bc.SetResistance(ResistanceType.Poison, 10, 30);
            bc.SetResistance(ResistanceType.Energy, 10, 30);

            bc.SetSkill(SkillName.Archery, 66.0, 97.5);
            bc.SetSkill(SkillName.MagicResist, 25.0, 47.5);
            bc.SetSkill(SkillName.Tactics, 65.0, 87.5);
            bc.SetSkill(SkillName.Wrestling, 66.0, 97.5);

            bc.Fame = 1500;

            bc.VirtualArmor = 32;

            bc.Title    = null;
            bc.EmoteHue = link;

            if (toss == "stones")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stones"; bc.AddItem(gloves);
            }
            else if (toss == "stars")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stars"; bc.AddItem(gloves);
            }
            else if (toss == "axes")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Axes"; bc.AddItem(gloves);
            }
            else if (toss == "daggers")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Daggers"; bc.AddItem(gloves);
            }
            else if (toss == "darts")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Darts"; bc.AddItem(gloves);
            }
            else if (toss == "spear")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Spear"; bc.AddItem(gloves);
            }
            else if (toss == "boulder")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Boulder"; bc.AddItem(gloves);
            }
            else if (toss == "bones")
            {
                MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Bones"; bc.AddItem(gloves);
            }
            else if (toss == "arrows")
            {
                bc.AddItem(new Bow());
            }
            else if (toss == "crossbow")
            {
                bc.AddItem(new Crossbow());
            }
            else if (toss == "harpoon")
            {
                bc.AddItem(new Harpoon());
            }

            else if (toss == "fire")
            {
                WizardStaff staff = new WizardStaff(); staff.AosElementDamages.Fire = 75; staff.damageType = 1; bc.AddItem(staff);
            }
            else if (toss == "cold")
            {
                WizardStaff staff = new WizardStaff(); staff.AosElementDamages.Cold = 75; staff.damageType = 2; bc.AddItem(staff);
            }
            else if (toss == "energy")
            {
                WizardStaff staff = new WizardStaff(); staff.AosElementDamages.Energy = 75; staff.damageType = 3; bc.AddItem(staff);
            }
            else if (toss == "poison")
            {
                WizardStaff staff = new WizardStaff(); staff.AosElementDamages.Poison = 75; staff.damageType = 4; bc.AddItem(staff);
            }
            else if (toss == "bolt")
            {
                WizardStaff staff = new WizardStaff(); staff.damageType = 0; bc.AddItem(staff);
            }

            DressUpCrewMember(bc, captain);
            bc.NameColor();
            bc.MoveToWorld(captain.Location, captain.Map);
        }