class 1 rapin : merchant
{
property:
	BuySellList SellList0 = {{"necklace_of_wisdom";15};{"blue_diamond_necklace";15};{"necklace_of_devotion";15};{"enchanted_necklace";15};{"near_forest_necklace";15};{"elven_necklace";15};{"cat_seye_earing";15};{"coral_earing";15};{"red_cresent_earing";15};{"enchanted_earing";15};{"tiger_seye_earing";15};{"elven_earing";15};{"ring_of_wisdom";15};{"blue_coral_ring";15};{"ring_of_devotion";15};{"enchanted_ring";15};{"black_pearl_ring";15};{"elven_ring";15}};
	BuySellList SellList1 = {{"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};{"scroll_of_escape_to_castle";15};{"spirit_ore";15};{"soul_ore";15};{"energy_stone";15};{"key_of_thief";15};{"charm_of_courage_ng";15};{"charm_of_courage_d";15};{"charm_of_courage_c";15};{"charm_of_courage_b";15};{"charm_of_courage_a";15};{"charm_of_courage_s";15};{"phoenix_blood";15};{"einhasad_holy_water";15};{"battle_symbol";15};{"magic_symbol";15};{"dice_heart";15};{"dice_spade";15};{"dice_clover";15};{"dice_diamond";15}};

handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,336) == 1 && ( myself::OwnItemCount(talker,3814) == 1 || myself::OwnItemCount(talker,3813) == 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Coin of Magic (Continue)");
			}
			if( myself::HaveMemo(talker,336) == 1 && myself::OwnItemCount(talker,3815) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Coin of Magic (Continue)");
			}
			if( myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 && myself::GetMemoState(talker,34) == ( ( 3 * 10 ) + 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"In Search of Cloth (Continue)");
			}
			if( myself::HaveMemo(talker,34) == 1 && myself::GetMemoState(talker,34) <= ( ( 4 * 10 ) + 2 ) && myself::GetMemoState(talker,34) >= ( ( 4 * 10 ) + 1 ) && myself::GetOneTimeQuestFlag(talker,34) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"In Search of Cloth (Continue)");
			}
			if( myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 && myself::GetMemoState(talker,34) == ( ( 5 * 10 ) + 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"In Search of Cloth (Continue)");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			switch(_code)
			{
				case 0:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,336) == 1 && ( myself::OwnItemCount(talker,3814) == 1 || myself::OwnItemCount(talker,3813) == 1 ) ) )
					{
						myself::SetCurrentQuestID(336);
						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;
						}
						talker.weight_point = 0;
						talker.param1 = 0;
						talker.param2 = 0;
						talker.param3 = 0;
						talker.flag = 0;
						myself::ShowPage(talker,"rapin_q0336_01.htm");
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,336) == 1 && myself::OwnItemCount(talker,3815) == 1 ) )
					{
						myself::SetCurrentQuestID(336);
						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,"rapin_q0336_54.htm");
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 && myself::GetMemoState(talker,34) == ( ( 3 * 10 ) + 1 ) ) )
					{
						myself::SetCurrentQuestID(34);
						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::SetHTMLCookie(talker,34,3);
						myself::ShowPage(talker,"rapin_q0034_0301.htm");
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,34) == 1 && myself::GetMemoState(talker,34) <= ( ( 4 * 10 ) + 2 ) && myself::GetMemoState(talker,34) >= ( ( 4 * 10 ) + 1 ) && myself::GetOneTimeQuestFlag(talker,34) == 0 ) )
					{
						myself::SetCurrentQuestID(34);
						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( ( ( myself::GetMemoState(talker,34) == ( ( 4 * 10 ) + 2 ) && ( ( 1 == 1 && myself::OwnItemCount(talker,7528) >= 10 ) || 1 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
						{
							myself::SetHTMLCookie(talker,34,4);
							myself::ShowPage(talker,"rapin_q0034_0402.htm");
						}
						else
						{
							myself::ShowPage(talker,"rapin_q0034_0403.htm");
						}
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 && myself::GetMemoState(talker,34) == ( ( 5 * 10 ) + 1 ) ) )
					{
						myself::SetCurrentQuestID(34);
						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,"rapin_q0034_0503.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,i1,i2,i3,i4,i5,quest_id,reply,talker)
	{
		if( ask == 336 )
		{
			myself::SetCurrentQuestID(336);
			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;
			}
		}
		i0 = 0;
		i1 = 0;
		i2 = 0;
		i3 = 0;
		i4 = 0;
		i5 = 0;
		if( ask == 336 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"rapin_q0336_02.htm");
				talker.param2 = 11;
			}
			else if( reply == 2 )
			{
				myself::ShowPage(talker,"rapin_q0336_03.htm");
				talker.param2 = 21;
			}
			else if( reply == 3 )
			{
				myself::ShowPage(talker,"rapin_q0336_04.htm");
				talker.param2 = 31;
			}
			else if( reply == 4 )
			{
				myself::ShowPage(talker,"rapin_q0336_05.htm");
				talker.param2 = 42;
			}
			else if( reply == 5 )
			{
				myself::ShowPage(talker,"rapin_q0336_06.htm");
			}
			else if( reply == 6 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= 3 && myself::OwnItemCount(talker,3475) >= 3 )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3473,3);
						myself::DeleteItem1(talker,3475,3);
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 1;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( 3 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3494,( 3 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 1;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3491) >= ( 3 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3491,( 3 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 1;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( 3 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3485,( 3 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 1;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 7 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= 7 && myself::OwnItemCount(talker,3475) >= 7 )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3473,7);
						myself::DeleteItem1(talker,3475,7);
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 2;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( 7 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3494,( 7 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 2;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3491) >= ( 7 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3491,( 7 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 2;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( 7 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3485,( 7 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 2;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 8 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= 9 && myself::OwnItemCount(talker,3475) >= 9 )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3473,9);
						myself::DeleteItem1(talker,3475,9);
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 3;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( 9 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3494,( 9 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 3;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3491) >= ( 9 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3491,( 9 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 3;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( 9 * ( talker.param2 % 10 ) ) )
					{
						talker.flag = 1;
						myself::DeleteItem1(talker,3485,( 9 * ( talker.param2 % 10 ) ));
						myself::ShowPage(talker,"rapin_q0336_11.htm");
						talker.weight_point = 3;
						talker.param1 = ( gg::Rand(3) + 1 );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 4 ) );
						talker.param1 = ( talker.param1 + ( ( gg::Rand(3) + 1 ) * 16 ) );
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 9 )
			{
				myself::ShowPage(talker,"rapin_q0336_53.htm");
			}
			else if( reply == 10 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= ( 5 * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3475) >= ( 5 * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3473,( 5 * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3475,( 5 * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3479,1);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( 5 * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( 5 * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( 5 * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( 5 * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3495,1);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( 5 * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( 5 * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( 5 * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( 5 * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3492,1);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( 5 * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3483) >= ( 5 * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3485,( 5 * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3483,( 5 * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3486,1);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 11 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3475) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3473,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3475,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3479,5);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3495,5);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3492,5);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3483) >= ( ( 5 * 5 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3485,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3483,( ( 5 * 5 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3486,5);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 12 )
			{
				if( talker.param2 > 40 )
				{
					if( myself::OwnItemCount(talker,3473) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3475) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3473,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3475,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3479,10);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 30 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3495,10);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 20 )
				{
					if( myself::OwnItemCount(talker,3494) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3491) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3494,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3491,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3492,10);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
				else if( talker.param2 > 10 )
				{
					if( myself::OwnItemCount(talker,3485) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) && myself::OwnItemCount(talker,3483) >= ( ( 5 * 10 ) * ( talker.param2 % 10 ) ) )
					{
						myself::ShowPage(talker,"rapin_q0336_07.htm");
						myself::DeleteItem1(talker,3485,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						myself::DeleteItem1(talker,3483,( ( 5 * 10 ) * ( talker.param2 % 10 ) ));
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,3486,10);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0336_10.htm");
					}
				}
			}
			else if( reply == 13 && talker.flag == 1 )
			{
				talker.flag = 0;
				myself::ShowPage(talker,"rapin_q0336_14.htm");
				talker.flag = ( talker.flag + ( ( 4 * 4 ) * 1 ) );
			}
			else if( reply == 14 && talker.flag == 1 )
			{
				talker.flag = 0;
				myself::ShowPage(talker,"rapin_q0336_15.htm");
				talker.flag = ( talker.flag + ( ( 4 * 4 ) * 2 ) );
			}
			else if( reply == 15 && talker.flag == 1 )
			{
				talker.flag = 0;
				myself::ShowPage(talker,"rapin_q0336_16.htm");
				talker.flag = ( talker.flag + ( ( 4 * 4 ) * 3 ) );
			}
			else if( reply == 16 )
			{
				myself::ShowPage(talker,"rapin_q0336_17.htm");
				talker.flag = ( talker.flag + ( ( 4 * 1 ) * 1 ) );
			}
			else if( reply == 17 )
			{
				myself::ShowPage(talker,"rapin_q0336_18.htm");
				talker.flag = ( talker.flag + ( ( 4 * 1 ) * 2 ) );
			}
			else if( reply == 18 )
			{
				myself::ShowPage(talker,"rapin_q0336_19.htm");
				talker.flag = ( talker.flag + ( ( 4 * 1 ) * 3 ) );
			}
			else if( reply == 19 )
			{
				talker.param3 = 0;
				talker.flag = ( talker.flag + ( 1 * 1 ) );
				if( talker.param1 == talker.flag && talker.weight_point >= 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						talker.weight_point = 0;
						myself::ShowPage(talker,"rapin_q0336_20.htm");
						if( talker.param2 > 40 )
						{
							myself::GiveItem1(talker,3479,1);
						}
						else if( talker.param2 > 30 )
						{
							myself::GiveItem1(talker,3495,1);
						}
						else if( talker.param2 > 20 )
						{
							myself::GiveItem1(talker,3492,1);
						}
						else if( talker.param2 > 10 )
						{
							myself::GiveItem1(talker,3486,1);
						}
						talker.param1 = 0;
					}
				}
				else if( talker.weight_point == 0 )
				{
					if( talker.param1 == 21 )
					{
						myself::ShowPage(talker,"rapin_q0336_23.htm");
					}
					else if( talker.param1 == 25 )
					{
						myself::ShowPage(talker,"rapin_q0336_24.htm");
					}
					else if( talker.param1 == 37 )
					{
						myself::ShowPage(talker,"rapin_q0336_25.htm");
					}
					else if( talker.param1 == 41 )
					{
						myself::ShowPage(talker,"rapin_q0336_26.htm");
					}
					else if( talker.param1 == 61 )
					{
						myself::ShowPage(talker,"rapin_q0336_27.htm");
					}
					else if( talker.param1 == 29 )
					{
						myself::ShowPage(talker,"rapin_q0336_28.htm");
					}
					else if( talker.param1 == 45 )
					{
						myself::ShowPage(talker,"rapin_q0336_29.htm");
					}
					else if( talker.param1 == 53 )
					{
						myself::ShowPage(talker,"rapin_q0336_30.htm");
					}
					else if( talker.param1 == 57 )
					{
						myself::ShowPage(talker,"rapin_q0336_31.htm");
					}
					else if( talker.param1 == 22 )
					{
						myself::ShowPage(talker,"rapin_q0336_32.htm");
					}
					else if( talker.param1 == 26 )
					{
						myself::ShowPage(talker,"rapin_q0336_33.htm");
					}
					else if( talker.param1 == 38 )
					{
						myself::ShowPage(talker,"rapin_q0336_34.htm");
					}
					else if( talker.param1 == 42 )
					{
						myself::ShowPage(talker,"rapin_q0336_35.htm");
					}
					else if( talker.param1 == 62 )
					{
						myself::ShowPage(talker,"rapin_q0336_36.htm");
					}
					else if( talker.param1 == 30 )
					{
						myself::ShowPage(talker,"rapin_q0336_37.htm");
					}
					else if( talker.param1 == 46 )
					{
						myself::ShowPage(talker,"rapin_q0336_38.htm");
					}
					else if( talker.param1 == 54 )
					{
						myself::ShowPage(talker,"rapin_q0336_39.htm");
					}
					else if( talker.param1 == 58 )
					{
						myself::ShowPage(talker,"rapin_q0336_40.htm");
					}
					else if( talker.param1 == 23 )
					{
						myself::ShowPage(talker,"rapin_q0336_41.htm");
					}
					else if( talker.param1 == 27 )
					{
						myself::ShowPage(talker,"rapin_q0336_42.htm");
					}
					else if( talker.param1 == 39 )
					{
						myself::ShowPage(talker,"rapin_q0336_43.htm");
					}
					else if( talker.param1 == 43 )
					{
						myself::ShowPage(talker,"rapin_q0336_44.htm");
					}
					else if( talker.param1 == 63 )
					{
						myself::ShowPage(talker,"rapin_q0336_45.htm");
					}
					else if( talker.param1 == 31 )
					{
						myself::ShowPage(talker,"rapin_q0336_46.htm");
					}
					else if( talker.param1 == 47 )
					{
						myself::ShowPage(talker,"rapin_q0336_47.htm");
					}
					else if( talker.param1 == 55 )
					{
						myself::ShowPage(talker,"rapin_q0336_48.htm");
					}
					else if( talker.param1 == 59 )
					{
						myself::ShowPage(talker,"rapin_q0336_49.htm");
					}
					talker.param1 = 0;
				}
				else
				{
					i0 = ( talker.param1 % 4 );
					i1 = ( talker.param1 / 4 );
					i2 = ( i1 / 4 );
					i1 = ( i1 % 4 );
					talker.flag = ( talker.flag * 1 );
					i3 = ( talker.flag % 4 );
					i4 = ( talker.flag / 4 );
					i5 = ( i4 / 4 );
					i4 = ( i4 % 4 );
					if( i0 == i3 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i1 == i4 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i2 == i5 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( talker.param3 == 1 )
					{
						myself::ShowPage(talker,"rapin_q0336_50.htm");
					}
					else if( talker.param3 == 2 )
					{
						myself::ShowPage(talker,"rapin_q0336_51.htm");
					}
					else if( talker.param3 == 0 )
					{
						myself::ShowPage(talker,"rapin_q0336_52.htm");
					}
					talker.flag = 1;
					talker.weight_point = ( talker.weight_point - 1 );
				}
			}
			else if( reply == 20 )
			{
				talker.param3 = 0;
				talker.flag = ( talker.flag + ( 1 * 2 ) );
				if( talker.param1 == talker.flag && talker.weight_point >= 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						talker.weight_point = 0;
						myself::ShowPage(talker,"rapin_q0336_20.htm");
						if( talker.param2 > 40 )
						{
							myself::GiveItem1(talker,3479,1);
						}
						else if( talker.param2 > 30 )
						{
							myself::GiveItem1(talker,3495,1);
						}
						else if( talker.param2 > 20 )
						{
							myself::GiveItem1(talker,3492,1);
						}
						else if( talker.param2 > 10 )
						{
							myself::GiveItem1(talker,3486,1);
						}
						talker.param1 = 0;
					}
				}
				else if( talker.weight_point == 0 )
				{
					if( talker.param1 == 21 )
					{
						myself::ShowPage(talker,"rapin_q0336_23.htm");
					}
					else if( talker.param1 == 25 )
					{
						myself::ShowPage(talker,"rapin_q0336_24.htm");
					}
					else if( talker.param1 == 37 )
					{
						myself::ShowPage(talker,"rapin_q0336_25.htm");
					}
					else if( talker.param1 == 41 )
					{
						myself::ShowPage(talker,"rapin_q0336_26.htm");
					}
					else if( talker.param1 == 61 )
					{
						myself::ShowPage(talker,"rapin_q0336_27.htm");
					}
					else if( talker.param1 == 29 )
					{
						myself::ShowPage(talker,"rapin_q0336_28.htm");
					}
					else if( talker.param1 == 45 )
					{
						myself::ShowPage(talker,"rapin_q0336_29.htm");
					}
					else if( talker.param1 == 53 )
					{
						myself::ShowPage(talker,"rapin_q0336_30.htm");
					}
					else if( talker.param1 == 57 )
					{
						myself::ShowPage(talker,"rapin_q0336_31.htm");
					}
					else if( talker.param1 == 22 )
					{
						myself::ShowPage(talker,"rapin_q0336_32.htm");
					}
					else if( talker.param1 == 26 )
					{
						myself::ShowPage(talker,"rapin_q0336_33.htm");
					}
					else if( talker.param1 == 38 )
					{
						myself::ShowPage(talker,"rapin_q0336_34.htm");
					}
					else if( talker.param1 == 42 )
					{
						myself::ShowPage(talker,"rapin_q0336_35.htm");
					}
					else if( talker.param1 == 62 )
					{
						myself::ShowPage(talker,"rapin_q0336_36.htm");
					}
					else if( talker.param1 == 30 )
					{
						myself::ShowPage(talker,"rapin_q0336_37.htm");
					}
					else if( talker.param1 == 46 )
					{
						myself::ShowPage(talker,"rapin_q0336_38.htm");
					}
					else if( talker.param1 == 54 )
					{
						myself::ShowPage(talker,"rapin_q0336_39.htm");
					}
					else if( talker.param1 == 58 )
					{
						myself::ShowPage(talker,"rapin_q0336_40.htm");
					}
					else if( talker.param1 == 23 )
					{
						myself::ShowPage(talker,"rapin_q0336_41.htm");
					}
					else if( talker.param1 == 27 )
					{
						myself::ShowPage(talker,"rapin_q0336_42.htm");
					}
					else if( talker.param1 == 39 )
					{
						myself::ShowPage(talker,"rapin_q0336_43.htm");
					}
					else if( talker.param1 == 43 )
					{
						myself::ShowPage(talker,"rapin_q0336_44.htm");
					}
					else if( talker.param1 == 63 )
					{
						myself::ShowPage(talker,"rapin_q0336_45.htm");
					}
					else if( talker.param1 == 31 )
					{
						myself::ShowPage(talker,"rapin_q0336_46.htm");
					}
					else if( talker.param1 == 47 )
					{
						myself::ShowPage(talker,"rapin_q0336_47.htm");
					}
					else if( talker.param1 == 55 )
					{
						myself::ShowPage(talker,"rapin_q0336_48.htm");
					}
					else if( talker.param1 == 59 )
					{
						myself::ShowPage(talker,"rapin_q0336_49.htm");
					}
					talker.param1 = 0;
				}
				else
				{
					i0 = ( talker.param1 % 4 );
					i1 = ( talker.param1 / 4 );
					i2 = ( i1 / 4 );
					i1 = ( i1 % 4 );
					talker.flag = ( talker.flag * 1 );
					i3 = ( talker.flag % 4 );
					i4 = ( talker.flag / 4 );
					i5 = ( i4 / 4 );
					i4 = ( i4 % 4 );
					if( i0 == i3 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i1 == i4 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i2 == i5 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( talker.param3 == 1 )
					{
						myself::ShowPage(talker,"rapin_q0336_50.htm");
					}
					else if( talker.param3 == 2 )
					{
						myself::ShowPage(talker,"rapin_q0336_51.htm");
					}
					else if( talker.param3 == 0 )
					{
						myself::ShowPage(talker,"rapin_q0336_52.htm");
					}
					talker.flag = 1;
					talker.weight_point = ( talker.weight_point - 1 );
				}
			}
			else if( reply == 21 )
			{
				talker.param3 = 0;
				talker.flag = ( talker.flag + ( 1 * 3 ) );
				if( talker.param1 == talker.flag && talker.weight_point >= 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						talker.weight_point = 0;
						myself::ShowPage(talker,"rapin_q0336_20.htm");
						if( talker.param2 > 40 )
						{
							myself::GiveItem1(talker,3479,1);
						}
						else if( talker.param2 > 30 )
						{
							myself::GiveItem1(talker,3495,1);
						}
						else if( talker.param2 > 20 )
						{
							myself::GiveItem1(talker,3492,1);
						}
						else if( talker.param2 > 10 )
						{
							myself::GiveItem1(talker,3486,1);
						}
						talker.param1 = 0;
					}
				}
				else if( talker.weight_point == 0 )
				{
					if( talker.param1 == 21 )
					{
						myself::ShowPage(talker,"rapin_q0336_23.htm");
					}
					else if( talker.param1 == 25 )
					{
						myself::ShowPage(talker,"rapin_q0336_24.htm");
					}
					else if( talker.param1 == 37 )
					{
						myself::ShowPage(talker,"rapin_q0336_25.htm");
					}
					else if( talker.param1 == 41 )
					{
						myself::ShowPage(talker,"rapin_q0336_26.htm");
					}
					else if( talker.param1 == 61 )
					{
						myself::ShowPage(talker,"rapin_q0336_27.htm");
					}
					else if( talker.param1 == 29 )
					{
						myself::ShowPage(talker,"rapin_q0336_28.htm");
					}
					else if( talker.param1 == 45 )
					{
						myself::ShowPage(talker,"rapin_q0336_29.htm");
					}
					else if( talker.param1 == 53 )
					{
						myself::ShowPage(talker,"rapin_q0336_30.htm");
					}
					else if( talker.param1 == 57 )
					{
						myself::ShowPage(talker,"rapin_q0336_31.htm");
					}
					else if( talker.param1 == 22 )
					{
						myself::ShowPage(talker,"rapin_q0336_32.htm");
					}
					else if( talker.param1 == 26 )
					{
						myself::ShowPage(talker,"rapin_q0336_33.htm");
					}
					else if( talker.param1 == 38 )
					{
						myself::ShowPage(talker,"rapin_q0336_34.htm");
					}
					else if( talker.param1 == 42 )
					{
						myself::ShowPage(talker,"rapin_q0336_35.htm");
					}
					else if( talker.param1 == 62 )
					{
						myself::ShowPage(talker,"rapin_q0336_36.htm");
					}
					else if( talker.param1 == 30 )
					{
						myself::ShowPage(talker,"rapin_q0336_37.htm");
					}
					else if( talker.param1 == 46 )
					{
						myself::ShowPage(talker,"rapin_q0336_38.htm");
					}
					else if( talker.param1 == 54 )
					{
						myself::ShowPage(talker,"rapin_q0336_39.htm");
					}
					else if( talker.param1 == 58 )
					{
						myself::ShowPage(talker,"rapin_q0336_40.htm");
					}
					else if( talker.param1 == 23 )
					{
						myself::ShowPage(talker,"rapin_q0336_41.htm");
					}
					else if( talker.param1 == 27 )
					{
						myself::ShowPage(talker,"rapin_q0336_42.htm");
					}
					else if( talker.param1 == 39 )
					{
						myself::ShowPage(talker,"rapin_q0336_43.htm");
					}
					else if( talker.param1 == 43 )
					{
						myself::ShowPage(talker,"rapin_q0336_44.htm");
					}
					else if( talker.param1 == 63 )
					{
						myself::ShowPage(talker,"rapin_q0336_45.htm");
					}
					else if( talker.param1 == 31 )
					{
						myself::ShowPage(talker,"rapin_q0336_46.htm");
					}
					else if( talker.param1 == 47 )
					{
						myself::ShowPage(talker,"rapin_q0336_47.htm");
					}
					else if( talker.param1 == 55 )
					{
						myself::ShowPage(talker,"rapin_q0336_48.htm");
					}
					else if( talker.param1 == 59 )
					{
						myself::ShowPage(talker,"rapin_q0336_49.htm");
					}
					talker.param1 = 0;
				}
				else
				{
					i0 = ( talker.param1 % 4 );
					i1 = ( talker.param1 / 4 );
					i2 = ( i1 / 4 );
					i1 = ( i1 % 4 );
					talker.flag = ( talker.flag * 1 );
					i3 = ( talker.flag % 4 );
					i4 = ( talker.flag / 4 );
					i5 = ( i4 / 4 );
					i4 = ( i4 % 4 );
					if( i0 == i3 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i1 == i4 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( i2 == i5 )
					{
						talker.param3 = ( talker.param3 + 1 );
					}
					if( talker.param3 == 1 )
					{
						myself::ShowPage(talker,"rapin_q0336_50.htm");
					}
					else if( talker.param3 == 2 )
					{
						myself::ShowPage(talker,"rapin_q0336_51.htm");
					}
					else if( talker.param3 == 0 )
					{
						myself::ShowPage(talker,"rapin_q0336_52.htm");
					}
					talker.flag = 1;
					talker.weight_point = ( talker.weight_point - 1 );
				}
			}
			else if( reply == 22 )
			{
				myself::ShowPage(talker,"rapin_q0336_01.htm");
			}
		}
		if( ask == 34 )
		{
			myself::SetCurrentQuestID(34);
			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 == 34 )
		{
			i0 = myself::GetHTMLCookie(talker,34,( 4 - 1 ));
			if( i0 != -1 )
			{
				if( reply == 1 && myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"rapin_q0034_0401.htm");
						myself::SetMemoState(talker,34,( ( 4 * 10 ) + 1 ));
						myself::SetFlagJournal(talker,34,4);
					}
				}
			}
		}
		if( ask == 34 )
		{
			myself::SetCurrentQuestID(34);
			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 == 34 )
		{
			i0 = myself::GetHTMLCookie(talker,34,( 5 - 1 ));
			if( i0 != -1 )
			{
				if( reply == 1 && myself::HaveMemo(talker,34) == 1 && myself::GetOneTimeQuestFlag(talker,34) == 0 )
				{
					if( ( ( ( 1 == 1 && myself::OwnItemCount(talker,7528) >= 10 ) || 1 == 0 ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) ) && ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 0 ) || 0 == 0 ) )
					{
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,7528,10);
							myself::DeleteItem1(talker,0,0);
							myself::DeleteItem1(talker,0,0);
							myself::GiveItem1(talker,7161,1);
							myself::ShowPage(talker,"rapin_q0034_0501.htm");
							myself::SetMemoState(talker,34,( ( 5 * 10 ) + 1 ));
							myself::SetFlagJournal(talker,34,6);
						}
					}
					else
					{
						myself::ShowPage(talker,"rapin_q0034_0502.htm");
					}
				}
			}
		}
		super;
	}

}
