@LabelIndex 255687
@StringIndex 31877
class 0 zenkin : merchant {
property:
	BuySellList SellList0 = {{"tights_pants";15};{"tights_shirt";15};{"bone_breastplate";15};{"bone_gaiters";15};{"piece_bone_breastplate";15};{"bronze_breastplate";15};{"hard_leather_gaiters";15};{"piece_bone_gaiters";15};{"hard_leather_shirt";15};{"bronze_gaiters";15};{"puma_skin_gaiters";15};{"ring_breastplate";15};{"iron_plate_gaiters";15};{"puma_skin_shirt";15};{"lion_skin_gaiters";15};{"lion_skin_shirt";15};{"mithril_breastplate";15};{"mithril_gaiters";15};{"round_shield";15};{"bone_shield";15};{"bronze_shield";15};{"aspis";15};{"leather_gloves";15};{"bracer";15};{"excellence_leather_gloves";15};{"leather_gauntlet";15};{"low_boots";15};{"boots";15};{"leather_boots";15};{"blue_buckskin_boots";15};{"leather_helmet";15};{"hard_leather_helmet";15};{"bone_helmet";15};{"bronze_helmet";15};{"mithril_banded_gaiters";15};{"mithril_banded_mail";15};{"cotton_shirt";15};{"linen_shirt";15};{"striped_cotton_shirt";15};{"striped_linen_shirt";15}};
	BuySellList SellList1 = {{"hose_of_devotion";15};{"tunic_of_devotion";15};{"hose_of_magicpower";15};{"tunic_of_magicpower";15};{"cursed_hose";15};{"cursed_tunic";15};{"dark_hose";15};{"white_tunic";15};{"mage_s_hose";15};{"mage_s_tunic";15};{"hose_of_knowledge";15};{"tunic_of_knowledge";15};{"round_shield";15};{"bone_shield";15};{"bronze_shield";15};{"aspis";15};{"leather_gloves";15};{"bracer";15};{"excellence_leather_gloves";15};{"leather_gauntlet";15};{"low_boots";15};{"boots";15};{"leather_boots";15};{"blue_buckskin_boots";15};{"leather_helmet";15};{"hard_leather_helmet";15};{"bone_helmet";15};{"bronze_helmet";15};{"cotton_shirt";15};{"linen_shirt";15};{"striped_cotton_shirt";15};{"striped_linen_shirt";15}};
	BuySellList SellList4 = {{"12014";15};{"12008";15};{"12012";15};{"12015";15};{"12020";15};{"12021";15};{"12031";15};{"12041";15};{"12013";15};{"12025";15};{"12007";15};{"12016";15};{"12006";15};{"12029";15};{"12009";15};{"12028";15};{"12042";15};{"12043";15}};
	BuySellList SellList5 = {{"12011";15};{"12010";15};{"12017";15};{"12022";15};{"12019";15};{"12018";15};{"12048";15};{"12047";15};{"12013";15};{"12025";15};{"12007";15};{"12016";15};{"12006";15};{"12029";15};{"12009";15};{"12028";15}};

handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) == 6 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Fate's Whisper (In Progress)");
			}
			if( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) == 7 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Fate's Whisper (In Progress)");
			}
			if( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) >= 8 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Fate's Whisper (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) == 6 ) ) {
						myself::SetCurrentQuestID(234);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"zenkin_q0234_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) == 7 ) ) {
						myself::SetCurrentQuestID(234);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"zenkin_q0234_03.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,234) == 1 && gg::GetMemoState(talker,234) >= 8 ) ) {
						myself::SetCurrentQuestID(234);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"zenkin_q0234_04.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 234 ) {
			myself::SetCurrentQuestID(234);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
				myself::ShowSystemMessage(talker,1118);
				return;
			}
		}
		if( ask == 234 ) {
			if( reply == 1 ) {
				myself::SetMemoState(talker,234,7);
				myself::ShowPage(talker,"zenkin_q0234_02.htm");
				myself::SetFlagJournal(talker,234,6);
				myself::ShowQuestMark(talker,234);
				myself::SoundEffect(talker,"ItemSound.quest_middle");
			}
		}
		super;
	}

}
