|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Oct 2006
Location: colorado
Posts: 434
|
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 );
}
|
|
|
|
|
|
#2 (permalink) |
|
Forum Newbie
Join Date: Jun 2006
Posts: 93
|
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 );
}
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|