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!

Need help about FS Bounty System for RunUo 2.x

rome1982

Sorceror
Hello,im trying to use this nice system on my shard,but when i overwrite my Corpse.cs and Report and ReportMurderer.cs i get this error:

Error Items/Misc/Corpses/Corpse.cs
CS0117 Line 445 : Server.Mobiles.BaseCreature no contiene una definicion para 'CorpseNameOverride'

The line is on:

Code:
public static string GetCorpseName( Mobile m )
        {
            if ( m is BaseCreature )
            {
                BaseCreature bc = (BaseCreature)m;
 
                if ( bc.CorpseNameOverride != null )
                    return bc.CorpseNameOverride;
            }
 
            Type t = m.GetType();
 
            object[] attrs = t.GetCustomAttributes( typeof( CorpseNameAttribute ), true );
 
            if ( attrs != null && attrs.Length > 0 )
            {
                CorpseNameAttribute attr = attrs[0] as CorpseNameAttribute;
 
                if ( attr != null )
                    return attr.Name;
            }
 
            return null;
        }

Thanks in advance,im using RunUo 2.1.
 

Hammerhand

Knight
Instead of overwriting, you should try to merge the files using something like WinMerge. That way you should'nt lose bits you need.
 
Top