#region Author Header
/*
*   You may edit this script for your shard
*   Please do not repost this as your own work
*   Scripter : Torin Darkbane
*   Shard : Owner of Mystical Illusion Shard
*/
#endregion


using System;
using Server.Gumps;

namespace Server.Items
{
	public class WarriorsGate : Item
	{
		[Constructable]
		public WarriorsGate() : base( 0xF6C )  //Change Class Gate name here
		{
			Movable = false;
			Name = "Wake Up Survivor"; // What class name should be visible on the gate itself
            Hue = 1263;
		}

		public WarriorsGate( Serial serial ) : base( serial )  //Change Class Gate name here too
		{
		}

		public override bool OnMoveOver( Mobile m )
        {
            if (m.Skills[SkillName.Camping].Base == 0)
            {
                if (m.Map.CanFit(m.Location, 16, false, false))
                {
                    //Edit Skill/Stat TOTAL cap here
                    m.SkillsCap = 3900;
                    m.StatCap = 400;

                    //Edit Base Stats values here
                    m.Str = 80;
                    m.Dex = 80;
                    m.Int = 30;

                    //Edit Class Title here.  This is the title next to the players name above their head
                    m.Title = "[Survivor]";

                    //Edit Starting Equiptment here
                    m.AddToBackpack(new Gold(1000));
                    //m.AddToBackpack(new Trash4TokensBackpack());
                    //m.AddToBackpack(new TokenLedger());
                    //m.AddToBackpack(new EtherealMountDeed());
                    m.AddToBackpack(new WarriorsBag());


                    //Edit Skill Caps here
                    m.Skills.Alchemy.Cap = 0;
                    m.Skills.Anatomy.Cap = 120;
                    m.Skills.AnimalLore.Cap = 100;
                    m.Skills.AnimalTaming.Cap = 100;
                    m.Skills.Archery.Cap = 120;
                    m.Skills.ArmsLore.Cap = 120;
                    m.Skills.Begging.Cap = 0;
                    m.Skills.Blacksmith.Cap = 100;
                    m.Skills.Bushido.Cap = 0;
                    m.Skills.Camping.Cap = 100;
                    m.Skills.Carpentry.Cap = 100;
                    m.Skills.Cartography.Cap = 0;
                    m.Skills.Chivalry.Cap = 0;
                    m.Skills.Cooking.Cap = 100;
                    m.Skills.DetectHidden.Cap = 100;
                    m.Skills.Discordance.Cap = 0;
                    m.Skills.EvalInt.Cap = 0;
                    m.Skills.Fencing.Cap = 120;
                    m.Skills.Fishing.Cap = 100;
                    m.Skills.Fletching.Cap = 100;
                    m.Skills.Focus.Cap = 120;
                    m.Skills.Forensics.Cap = 0;
                    m.Skills.Healing.Cap = 100;
                    m.Skills.Herding.Cap = 100;
                    m.Skills.Hiding.Cap = 100;
                    m.Skills.Inscribe.Cap = 0;
                    m.Skills.ItemID.Cap = 0;
                    m.Skills.Lockpicking.Cap = 100;
                    m.Skills.Lumberjacking.Cap = 100;
                    m.Skills.Macing.Cap = 120;
                    m.Skills.Magery.Cap = 0;
                    m.Skills.MagicResist.Cap = 0;
                    m.Skills.Meditation.Cap = 0;
                    m.Skills.Mining.Cap = 100;
                    m.Skills.Musicianship.Cap = 100;
                    m.Skills.Necromancy.Cap = 0;
                    m.Skills.Ninjitsu.Cap = 0;
                    m.Skills.Parry.Cap = 120;
                    m.Skills.Peacemaking.Cap = 0;
                    m.Skills.Poisoning.Cap = 0;
                    m.Skills.Provocation.Cap = 0;
                    m.Skills.RemoveTrap.Cap = 0;
                    m.Skills.Snooping.Cap = 0;
                    m.Skills.SpiritSpeak.Cap = 0;
                    m.Skills.Stealing.Cap = 100;
                    m.Skills.Stealth.Cap = 100;
                    m.Skills.Swords.Cap = 120;
                    m.Skills.Tactics.Cap = 120;
                    m.Skills.Tailoring.Cap = 100;
                    m.Skills.TasteID.Cap = 0;
                    m.Skills.Tinkering.Cap = 100;
                    m.Skills.Tracking.Cap = 100;
                    m.Skills.Veterinary.Cap = 100;
                    m.Skills.Wrestling.Cap = 100;

                    //Edit actual Skill Values here
                    m.Skills.Alchemy.Base = 0;
                    m.Skills.Anatomy.Base = 100;
                    m.Skills.AnimalLore.Base = 80;
                    m.Skills.AnimalTaming.Base = 80;
                    m.Skills.Archery.Base = 100;
                    m.Skills.ArmsLore.Base = 100;
                    m.Skills.Begging.Base = 0;
                    m.Skills.Blacksmith.Base = 80;
                    m.Skills.Camping.Base = 80;
                    m.Skills.Carpentry.Base = 80;
                    m.Skills.Cartography.Base = 0;
                    m.Skills.Cooking.Base = 80;
                    m.Skills.DetectHidden.Base = 50;
                    m.Skills.Discordance.Base = 0;
                    m.Skills.EvalInt.Base = 0;
                    m.Skills.Fishing.Base = 80;
                    m.Skills.Fencing.Base = 100;
                    m.Skills.Fletching.Base = 80;
                    m.Skills.Focus.Base = 100;
                    m.Skills.Forensics.Base = 0;
                    m.Skills.Healing.Base = 80;
                    m.Skills.Herding.Base = 80;
                    m.Skills.Hiding.Base = 80;
                    m.Skills.Inscribe.Base = 0;
                    m.Skills.ItemID.Base = 0;
                    m.Skills.Lockpicking.Base = 50;
                    m.Skills.Lumberjacking.Base = 80;
                    m.Skills.Macing.Base = 100;
                    m.Skills.Magery.Base = 0;
                    m.Skills.MagicResist.Base = 25;
                    m.Skills.Meditation.Base = 0;
                    m.Skills.Mining.Base = 80;
                    m.Skills.Musicianship.Base = 50;
                    m.Skills.Parry.Base = 50;
                    m.Skills.Peacemaking.Base = 0;
                    m.Skills.Poisoning.Base = 0;
                    m.Skills.Provocation.Base = 0;
                    m.Skills.RemoveTrap.Base = 0;
                    m.Skills.Snooping.Base = 0;
                    m.Skills.SpiritSpeak.Base = 0;
                    m.Skills.Stealing.Base = 50;
                    m.Skills.Stealth.Base = 80;
                    m.Skills.Swords.Base = 100;
                    m.Skills.Tactics.Base = 100;
                    m.Skills.Tailoring.Base = 80;
                    m.Skills.TasteID.Base = 0;
                    m.Skills.Tinkering.Base = 80;
                    m.Skills.Tracking.Base = 50;
                    m.Skills.Veterinary.Base = 50;
                    m.Skills.Wrestling.Base = 50;
                    m.Skills.Bushido.Base = 0;
                    m.Skills.Ninjitsu.Base = 0;
                    m.Skills.Chivalry.Base = 0;
                    m.Skills.Necromancy.Base = 0;

	                //Edit Teleport Location here
	                m.Location = new Point3D(3639, 2681, -120);  // New Starting Point for this class
	                m.Map = Map.Felucca;  //Which Map should they start on
                    return false;
                }
                else
                {
                    return true;
                }
            }
            else
            {
                return true;
            }
        }

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}
