//=============================================================================
// BookClosed.
//=============================================================================
class BookAdvLockPicking extends BookMMRPG;

function frob(actor frobber, inventory frobwith)
{
	If ( !_MMRPGPlayer(Frobber).bBasicPick)
	{
		_MMRPGPlayer(Frobber).ClientMessage("You have not read the first book in the series!");
		return;
	}

	If ( _MMRPGPlayer(Frobber).bAdvPick)
	{
		_MMRPGPlayer(Frobber).ClientMessage("You have already read this book!");
		return;
	}

	Super.Frob(Frobber,Frobwith);
}


Function Timer()
{
	if (howMuch == 0)
	{
		howMuch = 1;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 1)
	{
		howMuch = 2;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 2)
	{
		howMuch = 3;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 3)
	{
		howMuch = 4;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 4)
	{
		howMuch = 5;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 5)
	{
		howMuch = 6;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 6)
	{
		howMuch = 7;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 7)
	{
		howMuch = 8;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 8)
	{
		howMuch = 9;
		Player.Clientmessage("Reading...");
		SetTimer(1,False);
		return;
	}
	if (howMuch == 9)
	{
		Player.Clientmessage("You have read the book!");
		howMuch = 0;
		Player.ReadIt(Self);
		Player.bAdvPick = True;
		Player.bInConv = False;
	}
}

defaultproperties
{
     BookSkill=Class'DeusEx.SkillLockpicking'
     bOpened=False
     bCanBeBase=True
     ItemName="|p4Advanced Lockpicking|p1"
     Mesh=LodMesh'DeusExDeco.BookClosed'
     CollisionRadius=10.000000
     CollisionHeight=1.700000
     Mass=10.000000
     Buoyancy=11.000000
}
