@LabelIndex 6867
@StringIndex 1355
class 0 warehouse_keeper : citizen {
parameter:
	string	ShopName = ";
	string	fnHi = "whi.htm";
	string	fnBye = "wbye.htm";
	string	fnYouAreChaotic = "wyac.htm";
	string	fnClassMismatch = "";
	string	fnEmpty = "we.htm";
	string	fnNowSiege = "";
	string	fnNotFourthClass = "skillenchant_notfourthclass.htm";
	string	fnLevelMismatch = "skillenchant_levelmismatch.htm";

handler:
	EventHandler NO_DESIRE() {
		myself::AddDoNothingDesire(-1,9999);
	}

	EventHandler TALKED(talker) {
		if( talker.karma > 0 ) {
			myself::ShowPage(talker,fnYouAreChaotic);
		} else {
			myself::ShowPage(talker,fnHi);
		}
	}

	EventHandler LEARN_SKILL_REQUESTED(talker) {
		if( myself::IsInCategory(59,talker.occupation) ) {
			myself::ShowSkillList(talker,"");
		} 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(59,talker.occupation) ) {
			if( myself::IsInCategory(9,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,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);
	}

}
