class 1 jackson : merchant_for_newbie
{
property:
	BuySellList SellList0 = {{"pants";15};{"shirt";15};{"leather_pants";15};{"leather_shirt";15};{"hard_leather_pants";15};{"wooden_gaiters";15};{"wooden_breastplate";15};{"tights_pants";15};{"tights_shirt";15};{"bone_breastplate";15};{"bone_gaiters";15};{"leather_shield";15};{"small_shield";15};{"buckler";15};{"round_shield";15};{"short_gloves";15};{"short_leather_gloves";15};{"gloves";15};{"leather_gloves";15};{"apprentice_s_shoes";15};{"cloth_shoes";15};{"leather_sandals";15};{"crude_leather_shoes";15};{"cotton_shoes";15};{"leather_shoes";15};{"low_boots";15};{"cloth_cap";15};{"leather_cap";15};{"wooden_helmet";15};{"leather_helmet";15};{"cotton_shirt";15};{"striped_cotton_shirt";15}};
	BuySellList SellList1 = {{"hose";15};{"tunic";15};{"cotton_hose";15};{"cotton_tunic";15};{"feriotic_hose";15};{"feriotic_tunic";15};{"leather_hose";15};{"leather_tunic";15};{"hose_of_devotion";15};{"tunic_of_devotion";15};{"leather_shield";15};{"small_shield";15};{"buckler";15};{"round_shield";15};{"short_gloves";15};{"short_leather_gloves";15};{"gloves";15};{"leather_gloves";15};{"apprentice_s_shoes";15};{"cloth_shoes";15};{"leather_sandals";15};{"crude_leather_shoes";15};{"cotton_shoes";15};{"leather_shoes";15};{"low_boots";15};{"cloth_cap";15};{"leather_cap";15};{"wooden_helmet";15};{"leather_helmet";15};{"cotton_shirt";15};{"striped_cotton_shirt";15}};

handler:
	EventHandler TALK_SELECTED(talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,153) != 0 && myself::OwnItemCount(talker,1013) != 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Deliver Goods");
			}
			if( myself::HaveMemo(talker,153) != 0 && myself::OwnItemCount(talker,1016) != 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Deliver Goods");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			switch(_code)
			{
				case 0:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,153) != 0 && myself::OwnItemCount(talker,1013) != 0 ) )
					{
						myself::SetCurrentQuestID(153);
						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::DeleteItem1(talker,1013,myself::OwnItemCount(talker,1013));
						if( myself::OwnItemCount(talker,1016) == 0 )
						{
							myself::GiveItem1(talker,1016,1);
						}
						myself::ShowPage(talker,"jackson_q0302_01.htm");
						if( myself::OwnItemCount(talker,1017) >= 1 && myself::OwnItemCount(talker,1018) >= 1 )
						{
							myself::SetFlagJournal(talker,153,2);
						}
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,153) != 0 && myself::OwnItemCount(talker,1016) != 0 ) )
					{
						myself::SetCurrentQuestID(153);
						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,"jackson_q0302_02.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
