class 1 sara : merchant
{
property:
	BuySellList SellList0 = {{"soulshot_none";15};{"spiritshot_none";15};{"blessed_spiritshot_none";15};{"comp_bspiritshot_none";15};{"comp_spiritshot_none";15};{"comp_soulshot_none";15};{"adv_comp_bspiritshot_none";15};{"adv_comp_spiritshot_none";15};{"adv_comp_soulshot_none";15};{"wooden_arrow";15};{"bone_arrow";15};{"fine_steel_arrow";15};{"lesser_healing_potion";15};{"healing_potion";15};{"antidote";15};{"advanced_antidote";15};{"bandage";15};{"emergency_dressing";15};{"quick_step_potion";15};{"swift_attack_potion";15};{"potion_of_acumen2";15};{"scroll_of_awake";15};{"scroll_of_escape";15};{"scroll_of_resurrection";15};{"scroll_of_escape_to_agit";15};{"spirit_ore";15};{"soul_ore";15};{"energy_stone";15};{"key_of_thief";15};{"rope_of_magic_d";15};{"rope_of_magic_c";15};{"rope_of_magic_b";15};{"gemstone_d";15};{"scroll_recovery_ng";15};{"scroll_recovery_d";15};{"scroll_recovery_c";15};{"scroll_recovery_b";15};{"elixir_of_life_ng";15};{"elixir_of_life_d";15};{"elixir_of_life_c";15};{"elixir_of_men_str_ng";15};{"elixir_of_men_str_d";15};{"elixir_of_cp_ng";15};{"elixir_of_cp_d";15};{"elixir_of_cp_c";15};{"elixir_of_cp_b";15};{"summoning_crystal";15};{"dice_heart";15};{"dice_spade";15};{"dice_clover";15};{"dice_diamond";15}};
	BuySellList SellList1 = {{"dye_s1c3_d";15};{"dye_s1d3_d";15};{"dye_c1s3_d";15};{"dye_c1d3_d";15};{"dye_d1s3_d";15};{"dye_d1c3_d";15};{"dye_i1m3_d";15};{"dye_i1w3_d";15};{"dye_m1i3_d";15};{"dye_m1w3_d";15};{"dye_w1i3_d";15};{"dye_w1m3_d";15};{"dye_s1c2_d";15};{"dye_s1d2_d";15};{"dye_c1s2_d";15};{"dye_c1d2_d";15};{"dye_d1s2_d";15};{"dye_d1c2_d";15};{"dye_i1m2_d";15};{"dye_i1w2_d";15};{"dye_m1i2_d";15};{"dye_m1w2_d";15};{"dye_w1i2_d";15};{"dye_w1m2_d";15};{"dye_s1c3_c";15};{"dye_s1d3_c";15};{"dye_c1s3_c";15};{"dye_c1c3_c";15};{"dye_d1s3_c";15};{"dye_d1c3_c";15};{"dye_i1m3_c";15};{"dye_i1w3_c";15};{"dye_m1i3_c";15};{"dye_m1w3_c";15};{"dye_w1i3_c";15};{"dye_w1m3_c";15}};

handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,652) == 1 && myself::GetMemoState(talker,652) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"An Aged Ex-Adventurer - In Progress");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			if( _code == 0 )
			{
				if( _from_choice == 0 || ( myself::HaveMemo(talker,652) == 1 && myself::GetMemoState(talker,652) == 1 ) )
				{
					myself::SetCurrentQuestID(652);
					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::GiveItem1(talker,57,5026);
					myself::GiveItem1(talker,956,1);
					myself::ShowPage(talker,"sara_q0652_01.htm");
					myself::RemoveMemo(talker,652);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
				}
			}
			return;
		}
		super;
	}

}
