using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.Accounting;
using Server.Engines.XmlSpawner2; //[COLOR="Red"]If you do NOT use XmlSpawner, comment it out!![/COLOR]
namespace Server.Misc
{
public class CharacterCreation
{
public static void Initialize()
{
// Register our event handler
EventSink.CharacterCreated += new CharacterCreatedEventHandler( EventSink_CharacterCreated );
}
private static void AddBackpack( Mobile m )
{
Container pack = m.Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
m.AddItem( pack );
}
bool FirstChar = Convert.ToBoolean( ((Account)m.Account).GetTag("FirstChar") );
if ( FirstChar ) //this part checks to see if the account already has this tag, if it does it will add the following items
{
PackItem( new RedBook( "a book", m.Name, 20, true ) );
PackItem( new Gold( 1000 ) );
//PackItem( new Dagger() );
//PackItem( new Candle() );
//PackItem( new SkillBall() );
PackItem( new StatBall() );
PackItem( new Spellbook( UInt64.MaxValue ) );
PackItem( new NecromancerSpellbook( (UInt64)0xFFFF ) );
PackItem( new BookOfChivalry( (UInt64)0x3FF ) );
PackItem( new Runebook( 10 ) );
//PackItem( new EtherealHorse() );
}
else // if the account does not have this tag it will add these following items instead
{
PackItem( new RedBook( "a book", m.Name, 20, true ) );
PackItem( new Gold( 1000 ) );
//PackItem( new Dagger() );
//PackItem( new Candle() );
PackItem( new SkillBall() );
PackItem( new StatBall() );
PackItem( new Spellbook( UInt64.MaxValue ) );
PackItem( new NecromancerSpellbook( (UInt64)0xFFFF ) );
PackItem( new BookOfChivalry( (UInt64)0x3FF ) );
PackItem( new Runebook( 10 ) );
//PackItem( new EtherealHorse() );
//PackItem( new ReferralItem() );
((Account)m.Account).SetTag( "FirstChar", "true" ); // this part will add the tag onto the account
}
}