#W# Added [Status command for quick view of stat info.

This commit is contained in:
WarrentyExpired 2026-07-29 08:44:58 -04:00
parent cd687579f9
commit 0e3654fcbb
3 changed files with 123 additions and 12 deletions

View file

@ -116,13 +116,20 @@ namespace Server.Items
m_Tome = tome;
AddPage( 0 );
AddBackground( 0, 0, 300, 380, 5054 );
AddHtml( 10, 10, 280, 20, "<CENTER>The Shrines of Virtue</CENTER>", false, false );
AddHtml( 10, 40, 280, 20, String.Format( "Available Virtue Points: {0}", from.VirtuePoints ), false, false );
AddHtml( 10, 60, 280, 20, String.Format( "Travel Cost: {0} Points", m_TravelCost ), false, false );
// --- NEW MODERN BACKGROUND START ---
AddBackground( 0, 0, 300, 420, 9270 ); // Dark semi-transparent border
AddAlphaRegion( 10, 10, 280, 400 ); // Darkened center panel
// --- NEW MODERN BACKGROUND END ---
int y = 90;
// Header Title
AddLabel( 75, 15, 1153, "THE SHRINES OF VIRTUE" );
// Point Information
AddLabel( 20, 45, 1152, String.Format( "Available Virtue Points: {0}", from.VirtuePoints ) );
AddLabel( 20, 70, 1152, String.Format( "Travel Cost: {0} Points", m_TravelCost ) );
int y = 110;
string[] shrineNames = { "Compassion", "Honesty", "Honor", "Humility", "Justice", "Sacrifice", "Spirituality", "Valor" };
for ( int i = 0; i < shrineNames.Length; i++ )
@ -130,15 +137,15 @@ namespace Server.Items
// Check if the shrine is unlocked
if ( m_Tome.Unlocked[i] )
{
AddButton( 20, y, 4005, 4007, i + 1, GumpButtonType.Reply, 0 );
AddLabel( 55, y, 0, shrineNames[i] );
AddButton( 20, y, 4005, 4006, i + 1, GumpButtonType.Reply, 0 );
AddLabel( 55, y, 1152, shrineNames[i] );
}
else
{
// If locked, hide the button and grey out the text
// If locked, hide the button and grey out the text (Hue 922 is a nice soft grey)
AddLabel( 55, y, 922, shrineNames[i] + " (Locked)" );
}
y += 30;
y += 35; // Increased spacing slightly to fit the new button style
}
}

View file

@ -6,10 +6,10 @@ namespace Server.Items
public class VirtuousQuestBook : BlueBook
{
[Constructable]
public VirtuousQuestBook() : base( "The Virtuous Quest", "Lord British", 4, false ) // 3 pages, false means players can't edit it
public VirtuousQuestBook() : base( "The Virtuous Quest", "Lord British", 4, false ) // 4 pages, false means players can't edit it
{
Hue = 1150; // Makes the book a royal white/silver
Hue = 1150;
LootType = LootType.Blessed;
Pages[0].Lines = new string[]
{
"Brave adventurer,",