@LabelIndex 288582
@StringIndex 38147
class 0 warden_endrigo : citizen {
handler:
	EventHandler TALK_SELECTED(talker) {
		if( _from_choice == 0 ) {
			if( ( gg::HaveMemo(talker,229) == 1 && ( gg::OwnItemCount(talker,3314) >= 1 || gg::OwnItemCount(talker,3319) >= 1 ) ) && gg::OwnItemCount(talker,3309) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Test of Witchcraft (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,229) == 1 && ( gg::OwnItemCount(talker,3314) >= 1 || gg::OwnItemCount(talker,3319) >= 1 ) ) && gg::OwnItemCount(talker,3309) == 1 ) ) {
						myself::SetCurrentQuestID(229);
						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::ShowQuestPage(talker,"warden_endrigo_q0229_01.htm",229);
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
