@LabelIndex 398667
@StringIndex 59635
class 0 servant_of_kserth : ai_servant_of_kserth {
handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,10269) == 1 && gg::GetMemoState(talker,10269) == 1 && gg::OwnItemCount(talker,13812) >= 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"To the Seed of Destruction (in progress)");
			}
			if( gg::HaveMemo(talker,10269) == 0 && myself::GetOneTimeQuestFlag(talker,10269) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"To the Seed of Destruction (complete)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,10269) == 1 && gg::GetMemoState(talker,10269) == 1 && gg::OwnItemCount(talker,13812) >= 1 ) ) {
						myself::SetCurrentQuestID(10269);
						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::IncrementParam(talker,0,176121);
						myself::IncrementParam(talker,1,17671);
						myself::GiveItem1(talker,57,29174);
						myself::DeleteItem1(talker,13812,gg::OwnItemCount(talker,13812));
						myself::SetOneTimeQuestFlag(talker,10269,1);
						myself::RemoveMemo(talker,10269);
						myself::SoundEffect(talker,"ItemSound.quest_finish");
						gg::AddLog(2,talker,10269);
						gg::AddLog(3,talker,10269);
						myself::ShowPage(talker,"servant_of_kserth_q10269_01.htm");
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,10269) == 0 && myself::GetOneTimeQuestFlag(talker,10269) == 1 ) ) {
						myself::SetCurrentQuestID(10269);
						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,"servant_of_kserth_q10269_02.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
