RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Custom named faction's city status gump fix.

v1ck

Wanderer
Custom named faction's city status gump fix.

FactionStoneGump.cs change line 102:

Code:
				else
				{
					AddHtmlLocalized( 200, 55 + (i * 30), 150, 20, town.Owner.Definition.OwnerLabel, false, false );

					BaseMonolith monolith = town.Monolith;

					AddImage( 20, 60 + (i * 30), ( monolith != null && monolith.Sigil != null && monolith.Sigil.IsPurifying ) ? 0x938 : 0x939 );
				}

to:
Code:
				else
				{
					AddHtml( 200, 55 + (i * 30), 150, 20, town.Owner.Definition.FriendlyName, false, false );

					BaseMonolith monolith = town.Monolith;

					AddImage( 20, 60 + (i * 30), ( monolith != null && monolith.Sigil != null && monolith.Sigil.IsPurifying ) ? 0x938 : 0x939 );
				}
 

v1ck

Wanderer
If you have custom named factions and do not use this mod, when you look at the city status you will see an ERROR. This mod fixes that "design flaw".
 

Phantom

Knight
v1ck said:
If you have custom named factions and do not use this mod, when you look at the city status you will see an ERROR. This mod fixes that "design flaw".

Alright I see why that happens.

Report this as a bug

Tell them to do this

Code:
if (  town.Owner.Definition.OwnerLabel != 0 )
{
AddHtmlLocalized( 200, 55 + (i * 30), 150, 20, town.Owner.Definition.OwnerLabel, false, false );

					BaseMonolith monolith = town.Monolith;

					AddImage( 20, 60 + (i * 30), ( monolith != null && monolith.Sigil != null && monolith.Sigil.IsPurifying ) ? 0x938 : 0x939 );
}
else
{
AddHtml( 200, 55 + (i * 30), 150, 20, town.Owner.Definition.FriendlyName, false, false );

					BaseMonolith monolith = town.Monolith;

					AddImage( 20, 60 + (i * 30), ( monolith != null && monolith.Sigil != null && monolith.Sigil.IsPurifying ) ? 0x938 : 0x939 );
}
 

v1ck

Wanderer
I have a hotmail email, and I signed up for the bug site but it does not let me log in....
 
Top