rendered paste bodyusing System;
using Server;
using Server.Gumps;
using Server.Multis;
using Server.Commands;
using System.Collections;
using Server.Items;
using Server.Guilds;
using Server.Network;
using Server.Mobiles;
using Server.Accounting;
using Server.Targeting;
namespace Server.Gumps
{
public class FK : Gump
{
public static void Initialize()
{ CommandSystem.Register("Fame", AccessLevel.Player, new CommandEventHandler(Fame_OnCommand)); }
[Usage("Fame")]
[Description("Fame")]
public static void Fame_OnCommand(CommandEventArgs e)
{
e.Mobile.BeginTarget( -1, false, TargetFlags.None, new TargetCallback( Fame_OnTarget ) );
e.Mobile.SendMessage( "Target a player to view their fame." );
}
public static void Fame_OnTarget( Mobile from, object obj )
{
if(obj is Mobile)
from.SendGump(new FK((Mobile)obj)); }
}
public FK(Mobile m)
: base( (640 - 360) / 2, (480 - 150) / 2 )
{
string name = m.Name;
int fame = m.Fame;
int karma = m.Karma;
this.Closable=true;
this.Disposable=true;
this.Dragable=true;
this.Resizable=false;
this.AddPage(0);
this.AddBackground(0, 0, 250, 100, 9270);
this.AddAlphaRegion( 0, 0, 250, 100 );
this.AddLabel(48, 16, 1150, name );
this.AddLabel(48, 32, 255, "Fame:" );
this.AddLabel(48, 48, 255, "Karma:");
this.AddLabel(100, 32, 255, ": " + fame.ToString() );
this.AddLabel(100, 48, 255, ": " + karma.ToString() );}
}
}