@LabelIndex 115653
@StringIndex 14217
class 0 ai_pa73_intro : zone_controller {
parameter:
	int	inzone_id = 45;
	int	enter_type = 0;
	string	fnHi = "npc_pa_maker001.htm";

handler:
	EventHandler CREATED() {
		myself.i_ai0 = 0;
	}

	EventHandler TALKED(talker,i0,s0,party0,c0) {
		myself::ShowPage(talker,fnHi);
		return;
	}

	EventHandler MENU_SELECTED(talker,ask,reply) {
		if( ask == 144 ) {
			if( reply == 3 ) {
				if( zone_type > -1 && enter_type > -1 ) {
					if( myself::GetOneTimeQuestFlag(talker,144) == 0 ) {
						myself::InstantZone_Enter(talker,zone_type,enter_type);
					}
				}
			}
		}
	}

	EventHandler INSTANT_ZONE_ENTER_RETURNED(talker,reply) {
		if( reply == 0 ) {
			myself::ShowPage(talker,fnEnterFailed);
		} else if( reply == 1 ) {
			if( gg::HaveMemo(talker,144) == 1 && myself::GetOneTimeQuestFlag(talker,144) == 0 ) {
				if( gg::GetMemoState(talker,144) == 1 ) {
					myself::SetMemoState(talker,144,2);
					myself::ShowPage(talker,"pa73_intro_npc_q0144_09.htm");
					myself::SetFlagJournal(talker,144,2);
					myself::ShowQuestMark(talker,144);
					myself::SoundEffect(talker,"ItemSound.quest_middle");
				} else {
					myself::ShowPage(talker,"pa73_intro_npc_q0144_11.htm");
				}
			} else {
				return;
			}
		}
	}

}
