@LabelIndex 115674
@StringIndex 14220
class 0 ai_pa73_enchant : citizen {
parameter:
	int	buff1 = 71172098;
	int	buff2 = 78905346;
	int	buff3 = 69402627;
	int	buff4 = 71106563;
	int	buff5 = 70647814;
	int	buff6 = 69992451;
	int	buff7 = 81264643;
	int	buff8 = 70582275;
	int	buff9 = 81395715;
	int	buff10 = 69599234;
	int	buff11 = 83099652;
	int	buff12 = 68485126;

handler:
	EventHandler MENU_SELECTED(talker,ask,reply,i0) {
		if( ask == 144 ) {
			if( reply == 2 ) {
				if( myself.i_ai1 == 0 && myself.i_ai0 < 5 ) {
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_99.htm");
					myself.c_ai0 = talker;
				}
				if( myself.i_ai1 == 1 ) {
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_96.htm");
				}
			} else if( reply == -1 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff1);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -2 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff2);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -3 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff3);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -4 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff4);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -5 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff5);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -6 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff6);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -7 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff7);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -8 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff8);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -9 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff9);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -10 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff10);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -11 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff11);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			} else if( reply == -12 ) {
				if( myself.i_ai0 < 5 ) {
					myself.i_ai0 = ( myself.i_ai0 + 1 );
					myself::CastBuffForQuestReward(talker,buff12);
					myself::ShowPage(talker,"pa73_enchant_npc_q0144_98.htm");
				}
			}
			if( myself.i_ai0 >= 5 && myself.i_ai1 == 0 ) {
				myself::ShowPage(talker,"pa73_enchant_npc_q0144_97.htm");
				myself.i_ai1 = 1;
			}
		}
		super;
	}

}
