Go Back   RunUO - Ultima Online Emulation > RunUO > Modification Suggestions

Modification Suggestions This is where you can suggest a modifcation to RunUO!

Reply
 
Thread Tools Display Modes
Old 03-23-2008, 03:08 PM   #1 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,852
Default Core Addition...

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
also this code will need to be added probably near the definition for Blessed for

Code:
            public Mobile m_BlessedBy;
this code added near the BlessedFor property
Code:
		public Mobile BlessedBy
		{
			get
			{
				return m_BlessedFor;
			}
			set
			{
				m_BlessedBy = value;

				InvalidateProperties();
			}
		}
also you'd need to serialize and deser this new variable but it should make it show the property on items, without having to add it seperately to each file (armor/jewelry/weapons/clothing).

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:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
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."
Greystar is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5