@LabelIndex 379982
@StringIndex 55851
class 0 captain_vishotuki : inzone_raid_controller {
handler:
	EventHandler TALK_SELECTED(fhtml0,i0,talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,10280) == 0 && myself::GetOneTimeQuestFlag(talker,10280) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Mutated Kaneus - Schuttgart");
			}
			if( gg::HaveMemo(talker,10280) == 0 && myself::GetOneTimeQuestFlag(talker,10280) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Mutated Kaneus - Schuttgart (complete)");
			}
			if( gg::HaveMemo(talker,10280) == 1 && gg::GetMemoState(talker,10280) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Mutated Kaneus - Schuttgart (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,10280) == 0 && myself::GetOneTimeQuestFlag(talker,10280) == 0 ) ) {
						myself::SetCurrentQuestID(10280);
						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( talker.level >= 58 ) {
								myself::ShowQuestPage(talker,"captain_vishotuki_q10280_01.htm",10280);
							} else {
								myself::ShowQuestPage(talker,"captain_vishotuki_q10280_04.htm",10280);
							}
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,10280) == 0 && myself::GetOneTimeQuestFlag(talker,10280) == 1 ) ) {
						myself::SetCurrentQuestID(10280);
						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,"captain_vishotuki_q10280_02.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,10280) == 1 && gg::GetMemoState(talker,10280) == 1 ) ) {
						myself::SetCurrentQuestID(10280);
						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,13838) >= 1 && gg::OwnItemCount(talker,13839) >= 1 ) {
							myself::ShowPage(talker,"captain_vishotuki_q10280_07.htm");
						} else {
							myself::ShowPage(talker,"captain_vishotuki_q10280_06.htm");
						}
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(i0,quest_id,talker) {
		if( quest_id == 10280 ) {
			myself::SetCurrentQuestID(10280);
			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::HaveMemo(talker,10276) == 0 && talker.level >= 58 && myself::GetOneTimeQuestFlag(talker,10280) == 0 ) {
				myself::SetMemoState(talker,10280,1);
				myself::SetMemo(talker,10280);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"captain_vishotuki_q10280_05.htm",10280);
				myself::SetFlagJournal(talker,10280,1);
				myself::ShowQuestMark(talker,10280);
				gg::AddLog(1,talker,10280);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,fhtml0,reply,talker) {
		if( ask == 10280 ) {
			myself::SetCurrentQuestID(10280);
			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 == 10280 ) {
			if( reply == 1 ) {
				if( gg::HaveMemo(talker,10280) == 0 && myself::GetOneTimeQuestFlag(talker,10280) == 0 ) {
					if( talker.level >= 58 ) {
						myself::FHTML_SetFileName(fhtml0,"captain_vishotuki_q10280_03.htm");
						myself::FHTML_SetInt(fhtml0,"quest_id",10280);
						myself::ShowQuestFHTML(talker,fhtml0,10280);
					}
				}
			}
		}
		super;
	}

}
