RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Feat System - Incomplete

rmacham

Sorceror
Hey All,

Here's an idea I had to implement `Feats` into UO.

This system is Incomplete, I will be working on it, however I thought I would release it as it is, so you guys can work with it aswell.
Unless you have an Orc Race - All references to orc, will need to be commented out.

In this system I have managed to write:

  • BaseFeat - All Feats are derived from this class.
  • RegenHits Feat - Untested! This is meant to work by allowing quicker health regeneration during combat.
  • Resistance Feat - Untested! This is meant to add resistances to the carrier.

All feats are weightless and invisible.

I have written the command - [feats to open up the feats gump.

I have only written the Human Gump for now, and the Passive Feats.

No active feats are provided.

Passive Feats Include:

  • Advanced Healing - Regen Hits (Explained Above)
  • Healers Oath - Increases Healing cap to 120, Anatomy Cap to 120 but reduces Macing Base and Cap to 0.
  • Inscription - Increases Inscription Cap to 120.
  • Chemical Science - Add 30 to Alchemy and add Mortal and Pestle to Backpack.
  • Elemental Resistance - Resistance (Explained Above)
  • Furniture Staining - Adds Furniture Dye Tub to Backpack.
  • Leather Dying - Adds Leather Dye Tub to Backpack
  • Enameling - Add Armor Dye Tub

All Dye Tubs have been Included which is required for this release.

I will be working on it when I can.

Limited Support will be available.
 

Attachments

  • All Dye Tubs (AllHuesRemoved).rar
    36.3 KB · Views: 17
  • Feat System.rar
    4.3 KB · Views: 39

rmacham

Sorceror
Thanks to Tabian - I can show you what kind of power this system can provide.

Here is a sample script for Titanic Strength - Once Double-Clicked it will provide the Character +50 Strength for 30 seconds, and delete itself. These are what I call Active Feats, as they require user interaction.

StrengthFeat.cs:
Code:
///////////////////////////////////////////////////////////////
// Written by Celisuis //////////////////////////////////////////
// Originally Released at http: www.ultimate-coders.com /////////
///////////////////////////////////////////////////////////////
 
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Misc;
 
namespace Server.Items.Feats
{
    public class StrengthFeat : Feat
    {
        private StrengthFeat StrFeat;
        [Constructable]
        public StrengthFeat()
            : base(0xE73)
        {
            Movable = true;
            Weight = 0.0;
            Name = "Titanic Strength";
            Visible = true;
        }
 
        public override void OnDoubleClick(Mobile from)
        {
            from.AddStatMod(new StatMod(StatType.Str, "Titanic Strength Feat", 50, TimeSpan.FromSeconds(30)));
            StrFeat.Delete(); // Do you wish to delete after use?
        }
 
        public StrengthFeat(Serial serial)
            : base(serial)
        {
        }
 
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
 
            writer.Write((int)0); // version
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
 
            int version = reader.ReadInt();
        }
    }
}

These active feats will provide incredible power and amazing abilities if it work's how I wish it to.
 
Top