@LabelIndex 101831
@StringIndex 11767
class 0 npc_kanaf : citizen {
parameter:
	int	FieldCycle = 1;
	int	FieldCycle_Condition = 110;
	int	FieldCycle_Quantity = 3;
	int	Threshold_Level_Min = 10;
	int	Threshold_Level_Max = 100;
	int	Threshold_Point_Min = -1;
	int	Threshold_Point_Max = 1000000000;
	int	zone_type = 2;
	int	enter_type = 1;

handler:
	EventHandler TALKED(talker,ask,reply) {
		myself::ShowPage(talker,"kcaien001.htm");
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,party0) {
		if( ask == -1006 ) {
			if( reply == 1 ) {
				i0 = gg::GetStep_FieldCycle(FieldCycle);
				if( i0 >= Threshold_Level_Min && i0 <= Threshold_Level_Max ) {
					party0 = gg::GetParty(talker);
					if( myself::IsNullParty(party0) == 0 ) {
						myself::InstantZone_Enter(talker,zone_type,enter_type);
					} else {
						myself::ShowPage(talker,"kcaien002b.htm");
					}
				} else {
					myself::ShowPage(talker,"kcaien002a.htm");
				}
			} else if( reply == 2 ) {
				switch(gg::Rand(3)) {
					case 0: {
						myself::ShowPage(talker,"kcaien001a.htm");
						break;
					}
					case 1: {
						myself::ShowPage(talker,"kcaien001b.htm");
						break;
					}
					case 2: {
						myself::ShowPage(talker,"kcaien001c.htm");
						break;
					}
					case 3: {
						break;
					}
				}
			}
		}
	}

}
