|
||
|
|||||||
| Modification Suggestions This is where you can suggest a modifcation to RunUO! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,852
|
Please add the BlessedBy property to items in the core...
the clilocs exist for it... this is what I added (following what was done in BlessedFor). Code:
public virtual void AddNameProperties( ObjectPropertyList list )
{
AddNameProperty( list );
if ( IsSecure )
AddSecureProperty( list );
else if ( IsLockedDown )
AddLockedDownProperty( list );
Mobile blessedFor = this.BlessedFor;
if ( blessedFor != null && !blessedFor.Deleted )
AddBlessedForProperty( list, blessedFor );
#region added by Greystar for PBD
Mobile blessedBy = this.BlessedBy;
if (blessedBy != null && !blessedBy.Deleted)
AddBlessedByProperty(list, blessedby);
#endregion
if ( DisplayLootType )
AddLootTypeProperty( list );
if ( DisplayWeight )
AddWeightProperty( list );
if( QuestItem )
AddQuestItemProperty( list );
AppendChildNameProperties( list );
}
Code:
#region Added by Greystar for PBD (and consistency)
/// <summary>
/// Overridable. Adds the "Blessed by ~1_NAME~" property to the given <see cref="ObjectPropertyList" />.
/// </summary>
public virtual void AddBlessedByProperty(ObjectPropertyList list, Mobile m)
{
list.Add(1062634, "{0}", m.Name); // Blessed by ~1_NAME~
}
#endregion
Code:
public Mobile m_BlessedBy; Code:
public Mobile BlessedBy
{
get
{
return m_BlessedFor;
}
set
{
m_BlessedBy = value;
InvalidateProperties();
}
}
The RunUO Dev team used Flags to save this information... I didn't but it should still work fine Thanks, Greystar PS) this is a core mod for anyone else who wants to add it.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|