@LabelIndex 289924
@StringIndex 38348
class 0 first_orc : citizen {
handler:
	EventHandler TALK_SELECTED(talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,232) == 1 && ( gg::OwnItemCount(talker,3413) >= 1 || gg::OwnItemCount(talker,3416) >= 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Test of the Lord (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,232) == 1 && ( gg::OwnItemCount(talker,3413) >= 1 || gg::OwnItemCount(talker,3416) >= 1 ) ) ) {
						myself::SetCurrentQuestID(232);
						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,"first_orc_q0232_01.htm");
						myself::SetFlagJournal(talker,232,7);
						myself::ShowQuestMark(talker,232);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		myself::SetCurrentQuestID(232);
		myself::Despawn();
		super;
	}

	EventHandler CREATED(i0) {
		myself::SetCurrentQuestID(232);
		myself::AddTimerEx(7789,( 1000 * 200 ));
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 232 ) {
			myself::SetCurrentQuestID(232);
			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 == 232 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"first_orc_q0232_02.htm");
			}
			if( reply == 2 ) {
				myself::ShowPage(talker,"first_orc_q0232_03.htm");
				myself::AddTimerEx(7778,( 1000 * 10 ));
			}
		}
		super;
	}

}
