I havn't really done anything but this,
[code:1]using System;
using System.Collections;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Gumps;
using Server.Prompts;
using Server.Targeting;
using Server.Misc;
namespace Server.Young
{
public class Renounce
{
public static void Initialize()
{
//Register our speech handler
EventSink.Speech += new SpeechEventHandler( EventSink_Speech );
}
private static void EventSink_Speech( SpeechEventArgs args )
{
Mobile from = args.Mobile;
string ShoutName = from.Name;
if ( args.HasKeyword( 0x0035 ) ) // i renounce my young player status
{
Server.Young.Status.YoungStatus( 2, args.Mobile, ShoutName );
Console.WriteLine( " - '{0}' Renounces Young Player Status.", ShoutName );
}
}
}
public class Status
{
public static string YoungStatus( int youngcheck, Mobile m, string name )
{
if (((PlayerMobile)m).Young != 2)
if ( youngcheck == 1 )
{
((PlayerMobile)m).Young = 1;
((PlayerMobile)m).OrigName = name;
name = name+" [Young]";
} else {
((PlayerMobile)m).Young = 2;
((PlayerMobile)m).Name = ((PlayerMobile)m).OrigName;
}
return name;
}
public static bool IsYoung( Mobile m )
{
int Young = ((PlayerMobile)m).Young;
if (Young == 1)
{
return true;
} else {
return false;
}
}
}
}[/code:1]
I can't make them blessed or immortal cause it doesn't allow the player to attack a monster...