@LabelIndex 257907
@StringIndex 32403
class 0 rovia : wizard_coach {
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,10279) == 1 && gg::GetMemoState(talker,10279) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Mutated Kaneus - Oren (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,10279) == 1 && gg::GetMemoState(talker,10279) == 1 ) ) {
						myself::SetCurrentQuestID(10279);
						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( gg::OwnItemCount(talker,13836) >= 1 && gg::OwnItemCount(talker,13837) >= 1 ) {
							myself::ShowPage(talker,"rovia_q10279_02.htm");
						} else {
							myself::ShowPage(talker,"rovia_q10279_01.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker) {
		if( ask == 10279 ) {
			myself::SetCurrentQuestID(10279);
			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 == 10279 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,10279) == 1 && gg::GetMemoState(talker,10279) == 1 ) {
					if( gg::OwnItemCount(talker,13836) >= 1 && gg::OwnItemCount(talker,13837) >= 1 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::GiveItem1(talker,57,100000);
							myself::DeleteItem1(talker,13836,gg::OwnItemCount(talker,13836));
							myself::DeleteItem1(talker,13837,gg::OwnItemCount(talker,13837));
							myself::RemoveMemo(talker,10279);
							myself::SoundEffect(talker,"ItemSound.quest_finish");
							gg::AddLog(2,talker,10279);
							gg::AddLog(3,talker,10279);
							myself::ShowPage(talker,"rovia_q10279_03.htm");
							myself::SetOneTimeQuestFlag(talker,10279,1);
						}
					}
				}
			}
		}
		super;
	}

}
