@LabelIndex 6828
@StringIndex 1350
class 0 kamael_coach : guild_coach {
parameter:
	int	gender = 1;

handler:
	EventHandler LEARN_SKILL_REQUESTED(talker) {
		if( myself.sm.race == 5 ) {
			if( gender == 1 && myself::IsInCategory(68,talker.occupation) ) {
				myself::ShowSkillList(talker,"");
			} else if( gender == 2 && myself::IsInCategory(69,talker.occupation) ) {
				myself::ShowSkillList(talker,"");
			} else {
				myself::ShowPage(talker,fnClassMismatch);
			}
		} else {
			myself::ShowPage(talker,fnClassMismatch);
		}
	}

	EventHandler ONE_SKILL_SELECTED(talker,skill_name_id,need_quest) {
		myself::ShowGrowSkillMessage(talker,skill_name_id,"");
	}

	EventHandler ENCHANT_SKILL_REQUESTED(talker,action_id) {
		if( myself::IsInCategory(61,talker.occupation) ) {
			if( myself::IsInCategory(65,talker.occupation) ) {
				if( gender == 1 && myself::IsInCategory(68,talker.occupation) ) {
					if( talker.level > 75 ) {
						if( talker.transformID == 312 || talker.transformID == 313 || talker.transformID == 314 || talker.transformID == 315 || talker.transformID == 316 || talker.transformID == 317 || talker.transformID == 318 ) {
							myself::ShowPage(talker,"skillenchant_notvang.htm");
						} else {
							myself::ShowEnchantSkillList(talker,action_id);
						}
					} else {
						myself::ShowPage(talker,fnLevelMismatch);
					}
				} else if( gender == 2 && myself::IsInCategory(69,talker.occupation) ) {
					if( talker.level > 75 ) {
						if( talker.transformID == 312 || talker.transformID == 313 || talker.transformID == 314 || talker.transformID == 315 || talker.transformID == 316 || talker.transformID == 317 || talker.transformID == 318 ) {
							myself::ShowPage(talker,"skillenchant_notvang.htm");
						} else {
							myself::ShowEnchantSkillList(talker,action_id);
						}
					} else {
						myself::ShowPage(talker,fnLevelMismatch);
					}
				} else {
					myself::ShowPage(talker,fnClassMismatch);
				}
			} else {
				myself::ShowPage(talker,fnNotFourthClass);
			}
		} else {
			myself::ShowPage(talker,fnClassMismatch);
		}
	}

	EventHandler SHOW_ENCHANT_SKILL_DRAWER(talker,skill_name_id,action_id) {
		myself::ShowEnchantSkillListDrawer(talker,skill_name_id,action_id);
	}

	EventHandler ONE_ENCHANT_SKILL_SELECTED(talker,skill_name_id,action_id) {
		myself::ShowEnchantSkillMessage(talker,skill_name_id,action_id);
	}

}
