Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 05-01-2007, 10:46 AM   #1 (permalink)
Forum Expert
 
andrewd's Avatar
 
Join Date: Oct 2006
Location: colorado
Posts: 434
Default adding two titles

this portion of script is where my problem is i cant seem to give the item the name it just gives the overridden properties.ii added the portion in red to make the name show up but didnt work. any ideas?
Code:
		public BirthdayCakeFirst(Mobile giftRecipient) : base( 0x9e9 )
		{
                        recipient = giftRecipient;
			Name = "1st year Birthday Cake";
			Stackable = false;
			Weight = 1;
			LootType = LootType.Blessed;
			Hue = Utility.RandomList(0x135, 0xcd, 0x38, 0x3b, 0x42, 0x4f, 0x11e, 0x60, 0x317, 0x10, 0x136, 0x1f9, 0x1a, 0xeb, 0x86, 0x2e);
		}

		public BirthdayCakeFirst( Serial serial ) : base( serial )
		{
		}

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );

			list.Add( "1st year Birthday Cake" );
			list.Add( "Happy 1st Birthday {0} - From Admin Ohms Law!", recipient.Name );
		}
andrewd is offline   Reply With Quote
Old 05-01-2007, 11:02 AM   #2 (permalink)
Forum Newbie
 
Join Date: Jun 2006
Posts: 93
Default

It is the same problem i had once.
The whole issue and solution (if you want to know more), is in the last post here: Weird armor name bug

What you have to do, is to add any of custom titles this way:
Code:
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );
			list.Add( 1050045, "{0} \t{1}\t {2}", "", "1st year Birthday Cake", "" );
			list.Add( "Happy 1st Birthday {0} - From Admin Ohms Law!", recipient.Name );
		}
Beyonder is offline   Reply With Quote
Old 05-01-2007, 11:21 AM   #3 (permalink)
Forum Expert
 
andrewd's Avatar
 
Join Date: Oct 2006
Location: colorado
Posts: 434
Default yep that works thxs much

wonder why this is happening never been a prob before?
thxs man karma
andrewd is offline   Reply With Quote
Old 05-01-2007, 11:33 AM   #4 (permalink)
Forum Newbie
 
Join Date: Jun 2006
Posts: 93
Default

I wrote about it at the link in my first post. You can use only 2 custom strings in that list, because clilocs only have 2 custom string numbers.
Beyonder 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