class 1 elder_balanki : citizen
{
handler:
	EventHandler TALK_SELECTED(fhtml0,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::HaveMemo(talker,292) == 1 && myself::OwnItemCount(talker,1487) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Brigands Sweep (Continue)");
			}
			if( myself::HaveMemo(talker,292) == 1 && myself::OwnItemCount(talker,1487) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Brigands Sweep (Continue)");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 1 && myself::OwnItemCount(talker,2864) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Test of the Maestro (Continue)");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 2 && myself::OwnItemCount(talker,2868) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Test of the Maestro (Continue)");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 2 && myself::OwnItemCount(talker,2868) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Test of the Maestro (Continue)");
			}
			if( myself::HaveMemo(talker,231) == 1 && myself::OwnItemCount(talker,2864) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Test of the Maestro (Continue)");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3248) >= 1 && myself::OwnItemCount(talker,3248) == 1 && myself::OwnItemCount(talker,3259) == 0 && ( myself::OwnItemCount(talker,3253) + myself::OwnItemCount(talker,3254) ) < 2 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Testimony of Prosperity (Continue)");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3259) == 0 && ( myself::OwnItemCount(talker,3253) + myself::OwnItemCount(talker,3254) ) < 2 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Testimony of Prosperity (Continue)");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3259) == 0 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3253) && myself::OwnItemCount(talker,3254) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 8;
				myself::AddChoice(8,"Testimony of Prosperity (Continue)");
			}
			if( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3259) >= 1 && ( myself::OwnItemCount(talker,3253) == 0 || myself::OwnItemCount(talker,3254) == 0 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 9;
				myself::AddChoice(9,"Testimony of Prosperity (Continue)");
			}
			if( myself::HaveMemo(talker,347) == 1 && ( myself::GetMemoState(talker,347) == 100 || myself::GetMemoState(talker,347) == 300 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 10;
				myself::AddChoice(10,"Go Get the Calculator (Continue)");
			}
			if( myself::HaveMemo(talker,347) == 1 && ( myself::GetMemoState(talker,347) == 200 || myself::GetMemoState(talker,347) == 400 || myself::GetMemoState(talker,347) == 500 || myself::GetMemoState(talker,347) == 600 || myself::GetMemoState(talker,347) == 700 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 11;
				myself::AddChoice(11,"Go Get the Calculator (Continue)");
			}
			if( talker.level >= 3 && myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 12;
				myself::AddChoice(12,"Into the World");
			}
			if( talker.level < 3 && myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 0 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 13;
				myself::AddChoice(13,"Into the World");
			}
			if( myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 1 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 14;
				myself::AddChoice(14,"Into the World (End)");
			}
			if( myself::HaveMemo(talker,10) == 1 && myself::GetOneTimeQuestFlag(talker,10) == 0 && myself::GetMemoState(talker,10) == ( ( 1 * 10 ) + 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 15;
				myself::AddChoice(15,"Into the World (Continue)");
			}
			if( myself::HaveMemo(talker,10) == 1 && myself::GetMemoState(talker,10) == ( ( 4 * 10 ) + 1 ) )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 16;
				myself::AddChoice(16,"Into the World (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,292) == 1 && myself::OwnItemCount(talker,1487) == 0 ) )
					{
						myself::SetCurrentQuestID(292);
						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,"balanki_q0292_01.htm");
					}
					break;
				}
				case 1:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,292) == 1 && myself::OwnItemCount(talker,1487) == 1 ) )
					{
						myself::SetCurrentQuestID(292);
						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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::ShowPage(talker,"balanki_q0292_02.htm");
							myself::GiveItem1(talker,57,( ( myself::OwnItemCount(talker,1487) * 120 ) + 500 ));
							myself::DeleteItem1(talker,1487,myself::OwnItemCount(talker,1487));
							myself::AddLog(3,talker,292);
						}
					}
					break;
				}
				case 2:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 1 && myself::OwnItemCount(talker,2864) == 0 ) )
					{
						myself::SetCurrentQuestID(231);
						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,"elder_balanki_q0231_01.htm");
					}
					break;
				}
				case 3:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 2 && myself::OwnItemCount(talker,2868) == 0 ) )
					{
						myself::SetCurrentQuestID(231);
						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,"elder_balanki_q0231_03.htm");
					}
					break;
				}
				case 4:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::GetMemoState(talker,231) == 2 && myself::OwnItemCount(talker,2868) ) )
					{
						myself::SetCurrentQuestID(231);
						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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::ShowPage(talker,"elder_balanki_q0231_04.htm");
							myself::GiveItem1(talker,2864,1);
							myself::DeleteItem1(talker,2868,1);
							myself::SetMemoState(talker,231,1);
							if( myself::OwnItemCount(talker,2866) >= 1 && myself::OwnItemCount(talker,2865) >= 1 )
							{
								myself::SetFlagJournal(talker,231,2);
							}
						}
					}
					break;
				}
				case 5:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,231) == 1 && myself::OwnItemCount(talker,2864) ) )
					{
						myself::SetCurrentQuestID(231);
						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,"elder_balanki_q0231_05.htm");
					}
					break;
				}
				case 6:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3248) >= 1 && myself::OwnItemCount(talker,3248) == 1 && myself::OwnItemCount(talker,3259) == 0 && ( myself::OwnItemCount(talker,3253) + myself::OwnItemCount(talker,3254) ) < 2 ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_balanki_q0221_01.htm");
						myself::DeleteItem1(talker,3248,myself::OwnItemCount(talker,3248));
					}
					break;
				}
				case 7:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3259) == 0 && ( myself::OwnItemCount(talker,3253) + myself::OwnItemCount(talker,3254) ) < 2 ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_balanki_q0221_02.htm");
					}
					break;
				}
				case 8:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3259) == 0 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3253) && myself::OwnItemCount(talker,3254) ) )
					{
						myself::SetCurrentQuestID(221);
						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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
						{
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::ShowPage(talker,"elder_balanki_q0221_03.htm");
							myself::DeleteItem1(talker,3254,myself::OwnItemCount(talker,3254));
							myself::DeleteItem1(talker,3253,1);
							myself::GiveItem1(talker,3259,1);
						}
					}
					break;
				}
				case 9:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,221) == 1 && myself::OwnItemCount(talker,3248) == 0 && myself::OwnItemCount(talker,3239) >= 1 && myself::OwnItemCount(talker,3246) >= 1 && myself::OwnItemCount(talker,3259) >= 1 && ( myself::OwnItemCount(talker,3253) == 0 || myself::OwnItemCount(talker,3254) == 0 ) ) )
					{
						myself::SetCurrentQuestID(221);
						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,"elder_balanki_q0221_04.htm");
					}
					break;
				}
				case 10:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,347) == 1 && ( myself::GetMemoState(talker,347) == 100 || myself::GetMemoState(talker,347) == 300 ) ) )
					{
						myself::SetCurrentQuestID(347);
						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,"elder_balanki_q0347_01.htm");
					}
					break;
				}
				case 11:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,347) == 1 && ( myself::GetMemoState(talker,347) == 200 || myself::GetMemoState(talker,347) == 400 || myself::GetMemoState(talker,347) == 500 || myself::GetMemoState(talker,347) == 600 || myself::GetMemoState(talker,347) == 700 ) ) )
					{
						myself::SetCurrentQuestID(347);
						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,"elder_balanki_q0347_04.htm");
					}
					break;
				}
				case 12:
				{
					if( _from_choice == 0 || ( talker.level >= 3 && myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 0 ) )
					{
						myself::SetCurrentQuestID(10);
						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::GetMemoCount(talker) < 26 )
						{
							if( ( ( ( ( 0 == 1 && myself::OwnItemCount(talker,0) >= 1 ) || 0 == 0 ) && ( ( 0 == 1 && myself::GetOneTimeQuestFlag(talker,0) == 1 ) || 0 == 0 ) ) && ( ( 0 == 1 && talker.subjob_id != 0 ) || 0 == 0 ) ) && ( ( 1 == 1 && talker.race == 4 ) || 1 == 0 ) )
							{
								myself::FHTML_SetFileName(fhtml0,"elder_balanki_q0010_0101.htm");
								myself::FHTML_SetInt(fhtml0,"quest_id",10);
								myself::ShowFHTML(talker,fhtml0);
							}
							else
							{
								myself::ShowPage(talker,"elder_balanki_q0010_0102.htm");
							}
						}
						else
						{
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 13:
				{
					if( _from_choice == 0 || ( talker.level < 3 && myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 0 ) )
					{
						myself::SetCurrentQuestID(10);
						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,"elder_balanki_q0010_0103.htm");
					}
					break;
				}
				case 14:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,10) == 0 && myself::GetOneTimeQuestFlag(talker,10) == 1 ) )
					{
						myself::SetCurrentQuestID(10);
						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,"finishedquest.htm");
					}
					break;
				}
				case 15:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,10) == 1 && myself::GetOneTimeQuestFlag(talker,10) == 0 && myself::GetMemoState(talker,10) == ( ( 1 * 10 ) + 1 ) ) )
					{
						myself::SetCurrentQuestID(10);
						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,"elder_balanki_q0010_0105.htm");
					}
					break;
				}
				case 16:
				{
					if( _from_choice == 0 || ( myself::HaveMemo(talker,10) == 1 && myself::GetMemoState(talker,10) == ( ( 4 * 10 ) + 1 ) ) )
					{
						myself::SetCurrentQuestID(10);
						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,10,4);
						myself::ShowPage(talker,"elder_balanki_q0010_0401.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker)
	{
		if( quest_id == 10 )
		{
			myself::SetCurrentQuestID(10);
			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::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
			{
				talker.quest_last_reward_time = myself::GetCurrentTick();
				myself::SetMemo(talker,10);
				myself::SetMemoState(talker,10,( ( 1 * 10 ) + 1 ));
				myself::AddLog(1,talker,10);
				myself::SetFlagJournal(talker,10,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowPage(talker,"elder_balanki_q0010_0104.htm");
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,i1,quest_id,reply,talker)
	{
		if( ask == 231 )
		{
			myself::SetCurrentQuestID(231);
			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 == 231 )
		{
			if( reply == 1 )
			{
				myself::ShowPage(talker,"elder_balanki_q0231_02.htm");
				myself::SetMemoState(talker,231,2);
			}
		}
		if( ask == 347 )
		{
			myself::SetCurrentQuestID(347);
			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 == 347 )
		{
			if( reply == 2 )
			{
				if( myself::OwnItemCount(talker,57) >= 100 )
				{
					myself::DeleteItem1(talker,57,100);
					myself::SetMemoState(talker,347,( 100 + myself::GetMemoState(talker,347) ));
					if( myself::GetMemoState(talker,347) == 100 )
					{
						myself::SetFlagJournal(talker,347,2);
					}
					else if( myself::GetMemoState(talker,347) == 300 )
					{
						myself::SetFlagJournal(talker,347,4);
					}
					myself::ShowPage(talker,"elder_balanki_q0347_02.htm");
				}
				else
				{
					myself::ShowPage(talker,"elder_balanki_q0347_03.htm");
				}
			}
		}
		if( ask == 10 )
		{
			myself::SetCurrentQuestID(10);
			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 == 10 && myself::GetOneTimeQuestFlag(talker,10) == 0 )
		{
			i0 = myself::GetHTMLCookie(talker,10,( 5 - 1 ));
			if( i0 != -1 )
			{
				if( reply == 3 && myself::HaveMemo(talker,10) == 1 && myself::GetOneTimeQuestFlag(talker,10) == 0 )
				{
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 )
					{
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::GiveItem1(talker,7559,1);
						myself::GiveItem1(talker,7570,1);
					}
					myself::AddLog(2,talker,10);
					myself::RemoveMemo(talker,10);
					myself::SetOneTimeQuestFlag(talker,10,1);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"elder_balanki_q0010_0501.htm");
				}
			}
		}
		super;
	}

}
