class 1 wizard_coach : guild_coach
{
handler:
	EventHandler LEARN_SKILL_REQUESTED(talker)
	{
		if( ( ( myself.sm.race == 0 && myself::IsInCategory(32,talker.occupation) ) || ( myself.sm.race == 1 && myself::IsInCategory(37,talker.occupation) ) ) || ( myself.sm.race == 2 && myself::IsInCategory(41,talker.occupation) ) )
		{
			myself::ShowSkillList(talker,"");
		}
		else
		{
			myself::ShowPage(talker,fnClassMismatch);
		}
	}

	EventHandler ENCHANT_SKILL_REQUESTED(talker,state)
	{
		if( ( ( myself.sm.race == 0 && myself::IsInCategory(32,talker.occupation) ) || ( myself.sm.race == 1 && myself::IsInCategory(37,talker.occupation) ) ) || ( myself.sm.race == 2 && myself::IsInCategory(41,talker.occupation) ) )
		{
			if( myself::IsInCategory(8,talker.occupation) )
			{
				if( talker.level > 75 )
				{
					myself::ExShowEnchantSkillList(talker,state);
				}
				else
				{
					myself::ShowPage(talker,fnLevelMismatch);
				}
			}
			else
			{
				myself::ShowPage(talker,fnNotFourthClass);
			}
		}
		else
		{
			myself::ShowPage(talker,fnClassMismatch);
		}
	}

}
