class 1 arena_cp_booster : warehouse_keeper
{
handler:
	EventHandler MENU_SELECTED(talker,ask,reply)
	{
		if( ask == -1000 )
		{
			if( reply == 0 )
			{
				if( myself::OwnItemCount(talker,57) > 99 )
				{
					if( myself::Skill_GetConsumeMP(1121281) < myself.sm.mp && myself::Skill_GetConsumeHP(1121281) < myself.sm.hp && myself::Skill_InReuseDelay(1121281) == 0 )
					{
						myself::AddUseSkillDesire(talker,1121281,0,0,1000000);
					}
					myself::DeleteItem1(talker,57,100);
				}
				else
				{
					myself::ShowSystemMessage(talker,279);
				}
			}
		}
	}

}
