public PirateCult() { SpeechHue = Utility.RandomColor(0); Title = "of the Leviathan Cult"; string cult = "Cult"; switch (Utility.RandomMinMax(1, 8)) { case 1: cult = "Cult"; break; case 2: cult = "Order"; break; case 3: cult = "Clan"; break; case 4: cult = "Faith"; break; case 5: cult = "Sect"; break; case 6: cult = "Faction"; break; case 7: cult = "Glory"; break; case 8: cult = "Rite"; break; } switch (Utility.RandomMinMax(1, 8)) { case 1: Title = "of the Leviathan " + cult; break; case 2: Title = "of the Krakoa " + cult; break; case 3: Title = "of the Dagon " + cult; break; case 4: Title = "of the Hydros " + cult; break; case 5: Title = "of the Kraken " + cult; break; case 6: Title = "of the Storm Giant " + cult; break; case 7: Title = "of the Jormungandr " + cult; break; case 8: Title = "of the Dragon Turtle " + cult; break; } Hue = Utility.RandomSkinColor(); if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); Utility.AssignRandomHair(this); HairHue = Utility.RandomHairHue(); } else { Body = 0x190; Name = NameList.RandomName("male"); Utility.AssignRandomHair(this); int HairColor = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); HairHue = HairColor; FacialHairHue = HairColor; } AddItem(new Robe(0)); MorphingTime.ColorMyClothes(this, SpeechHue); int hood = Utility.RandomColor(0); AddItem(new Cloak(hood)); switch (Utility.RandomMinMax(0, 2)) { case 0: AddItem(new ClothCowl(hood)); break; case 1: AddItem(new ClothHood(hood)); break; case 2: AddItem(new FancyHood(hood)); break; } AddItem(new ElvenBoots(0x83A)); WizardStaff staff = new WizardStaff(); switch (Utility.RandomMinMax(1, 5)) { case 1: staff.AosElementDamages.Fire = 75; staff.damageType = 1; break; case 2: staff.AosElementDamages.Cold = 75; staff.damageType = 2; break; case 3: staff.AosElementDamages.Energy = 75; staff.damageType = 3; break; case 4: staff.AosElementDamages.Poison = 75; staff.damageType = 4; break; case 5: staff.damageType = 0; break; } AddItem(staff); AI = AIType.AI_Mage; FightMode = FightMode.Closest; ship = AverageShip(); switch (Utility.RandomMinMax(1, 5)) { case 1: ship.Hue = ShipColor(""); break; case 2: ship.Hue = ShipColor("demon"); break; case 3: ship.Hue = ShipColor("undead"); break; case 4: ship.Hue = ShipColor("titan"); break; case 5: ship.Hue = ShipColor("lizard"); break; } SetStr(786, 985); SetDex(177, 255); SetInt(151, 250); SetHits(592, 711); SetDamage(22, 29); SetDamageType(ResistanceType.Physical, 50); SetDamageType(ResistanceType.Fire, 25); SetDamageType(ResistanceType.Energy, 25); SetResistance(ResistanceType.Physical, 65, 80); SetResistance(ResistanceType.Fire, 60, 80); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 100); SetResistance(ResistanceType.Energy, 40, 50); SetSkill(SkillName.Anatomy, 25.1, 50.0); SetSkill(SkillName.EvalInt, 90.1, 100.0); SetSkill(SkillName.Magery, 95.5, 100.0); SetSkill(SkillName.Meditation, 25.1, 50.0); SetSkill(SkillName.MagicResist, 100.5, 150.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.Wrestling, 90.1, 100.0); Fame = 20000; Karma = -20000; VirtualArmor = 90; healme = "Heal me my followers!"; }
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); }