@LabelIndex 139416
@StringIndex 17954
class 0 npc_immo_mouth : default_npc {
parameter:
	int	type = 0;
	int	inzone_id1 = 115;
	int	inzone_id2 = 116;
	int	inzone_id3 = 119;
	int	inzone_id4 = 120;
	int	FieldCycle = 3;
	string	fnHi = "mouth_immortality001.htm";
	string	fnHiEnter1 = "mouth_immortality002a.htm";
	string	fnHiEnter2 = "mouth_immortality002b.htm";
	string	fnHiEnterFail = "vigil_immortality003.htm";

handler:
	EventHandler TALKED(talker) {
		myself::ShowPage(talker,fnHi);
	}

	EventHandler SEE_CREATURE(creature) {
		if( creature.is_pc == 1 ) {
			gg::SendUIEvent(creature,1,0,0,"1","1","1","ˆˆ: ","60","0");
		}
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0) {
		if( ask == -1000 && reply == 1001 ) {
			if( type == 0 ) {
				myself::ShowPage(talker,fnHiEnter1);
			} else if( type == 1 ) {
				myself::ShowPage(talker,fnHiEnter2);
			}
		} else if( ask == -1100 && reply == 1101 ) {
			i0 = gg::GetStep_FieldCycle(FieldCycle);
			if( i0 == 1 ) {
				myself::InstantZone_Enter(talker,inzone_id1,1);
			} else if( i0 == 4 || i0 == 5 ) {
				myself::InstantZone_Enter(talker,inzone_id2,1);
			} else {
				myself::ShowPage(talker,fnHiEnterFail);
			}
		} else if( ask == -1200 && reply == 1201 ) {
			i0 = gg::GetStep_FieldCycle(FieldCycle);
			if( i0 == 1 ) {
				myself::InstantZone_Enter(talker,inzone_id3,2);
			} else if( i0 == 5 ) {
				myself::InstantZone_Enter(talker,inzone_id4,2);
			} else {
				myself::ShowPage(talker,fnHiEnterFail);
			}
		}
	}

}
