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:
Thanks in advance,im using RunUo 2.1.
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.