Iomega0318

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Downloaded a script from Voxpire/Voxpire I assume it's for Pub 58 not 57 because it has HitAreaPoison in the file which fails to compile, is there a way to get that to work on Pub 57 or would that be too much of a headache?
 
C#:
#region Header
//   Voxpire    _,-'/-'/  SewerThing.cs
//   .      __,-; ,'( '/
//    \.    `-.__`-._`:_,-._       _ , . ``
//     `:-._,------' ` _,`--` -: `_ , ` ,' :
//        `---..__,,--'  (C) 2017  ` -'. -'
//        #  Vita-Nex [http://core.vita-nex.com]  #
//  {o)xxx|===============-   #   -===============|xxx(o}
//        #        The MIT License (MIT)          #
#endregion

#region References
using Server;
using Server.Mobiles;
#endregion

namespace VitaNex.Dungeons
{
    [CorpseName("stinking remains of Sewer Thing")]
    public class SewerThing : BaseCreature
    {
        public override Poison PoisonImmune { get { return Poison.Lethal; } }
        public override Poison HitPoison { get { return Poison.Lethal; } }
        //public override Poison HitAreaPoison { get { return Poison.Lethal; } }

        [Constructable]
        public SewerThing()
            : base(AIType.AI_Mage, FightMode.Strongest, 10, 2, 0.02, 0.04)
        {
            Name = "Sewer Thing";
            Body = 780;
            Hue = 2967;

            SetStr(1232, 1400);
            SetDex(76, 82);
            SetInt(76, 85);

            SetHits(50000);

            SetDamage(27, 31);

            SetDamageType(ResistanceType.Physical, 80);
            SetDamageType(ResistanceType.Poison, 20);

            SetResistance(ResistanceType.Physical, 75, 85);
            SetResistance(ResistanceType.Fire, 40, 50);
            SetResistance(ResistanceType.Cold, 50, 60);
            SetResistance(ResistanceType.Poison, 55, 65);
            SetResistance(ResistanceType.Energy, 50, 60);

            SetSkill(SkillName.Wrestling, 90.0);
            SetSkill(SkillName.Tactics, 90.0);
            SetSkill(SkillName.MagicResist, 110.0);
            SetSkill(SkillName.Poisoning, 120.0);
            SetSkill(SkillName.Magery, 110.0);
            SetSkill(SkillName.EvalInt, 110.0);
            SetSkill(SkillName.Meditation, 110.0);
            SetSkill(SkillName.Spellweaving, 120.0);

            Fame = 25000;
            Karma = -25000;
        }

        public SewerThing(Serial serial)
            : base(serial)
        { }

        public override void GenerateLoot()
        {
            AddLoot(LootPack.AosSuperBoss, 8);
            AddLoot(LootPack.LowScrolls, 4);
            AddLoot(LootPack.MedScrolls, 4);
            AddLoot(LootPack.HighScrolls, 4);
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.SetVersion(0);
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            reader.GetVersion();
        }
    }
}
 
SetAreaEffect(AreaEffect.PoisonBreath);

put it in the constructor


C#:
[Constructable]
        public ValoriteElemental(int oreAmount)
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            // TODO: Gas attack
            Name = "a valorite elemental";
            Body = 112;
            BaseSoundID = 268;

            SetStr(226, 255);
            SetDex(126, 145);
            SetInt(71, 92);

            SetHits(136, 153);

            SetDamage(28);

            SetDamageType(ResistanceType.Physical, 25);
            SetDamageType(ResistanceType.Fire, 25);
            SetDamageType(ResistanceType.Cold, 25);
            SetDamageType(ResistanceType.Energy, 25);

            SetResistance(ResistanceType.Physical, 65, 75);
            SetResistance(ResistanceType.Fire, 50, 60);
            SetResistance(ResistanceType.Cold, 50, 60);
            SetResistance(ResistanceType.Poison, 50, 60);
            SetResistance(ResistanceType.Energy, 40, 50);

            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame = 3500;
            Karma = -3500;

            VirtualArmor = 38;

            Item ore = new ValoriteOre(oreAmount);
            ore.ItemID = 0x19B9;
            PackItem(ore);

            SetAreaEffect(AreaEffect.PoisonBreath);
        }
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back