@LabelIndex 71469
@StringIndex 11507
class 0 e_premium_npc : default_npc {
parameter:
	int	ticket_5h = 13273;
	int	ticket_5h_ev = 13383;
	int	ticket_pt = 14065;
	int	ticket_pt_ev = 14074;
	int	warrior_buf_con_5h = 13017;
	int	mage_buf_con_5h = 13018;
	int	warrior_con_5h = 13019;
	int	mage_con_5h = 13020;
	int	toy_knight_con = 14061;
	int	spirit_mage_con = 14062;
	int	turtle_con = 14064;
	int	owl_mage_con = 14063;
	int	warrior_buf_pet_5h = 1016045;
	int	mage_buf_pet_5h = 1016046;
	int	warrior_pet_5h = 1016044;
	int	mage_pet_5h = 1016043;
	int	toy_knight_pet = 1016052;
	int	spirit_mage_pet = 1016051;
	int	turtle_pet = 1016053;
	int	owl_mage_pet = 1016050;

handler:
	EventHandler CREATED() {
	}

	EventHandler TALKED(talker,i0,i1,i2,i3,i4) {
		myself::ShowPage(talker,"e_premium_manager001.htm");
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,i1,i2,i3,i4) {
		if( ask == 1 ) {
			if( reply == 1 ) {
				myself::ShowPremiumItemList(talker);
			}
		} else if( ask == 2 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"e_premium_manager002.htm");
			}
		} else if( ask == 3 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"e_premium_manager003.htm");
			} else if( reply == 2 ) {
				if( gg::OwnItemCount(talker,ticket_5h) > 0 || gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_5h_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_5h,1);
					}
					myself::GetItemData(talker,warrior_buf_con_5h);
					myself::CreatePet(talker,warrior_buf_con_5h,warrior_buf_pet_5h,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			}
		} else if( ask == 4 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"e_premium_manager004.htm");
			} else if( reply == 2 ) {
				if( gg::OwnItemCount(talker,ticket_5h) > 0 || gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_5h_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_5h,1);
					}
					myself::GetItemData(talker,mage_buf_con_5h);
					myself::CreatePet(talker,mage_buf_con_5h,mage_buf_pet_5h,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			}
		} else if( ask == 5 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"e_premium_manager005.htm");
			} else if( reply == 2 ) {
				if( gg::OwnItemCount(talker,ticket_5h) > 0 || gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_5h_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_5h,1);
					}
					myself::GetItemData(talker,warrior_con_5h);
					myself::CreatePet(talker,warrior_con_5h,warrior_pet_5h,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			}
		} else if( ask == 6 ) {
			if( reply == 1 ) {
				myself::ShowPage(talker,"e_premium_manager006.htm");
			} else if( reply == 2 ) {
				if( gg::OwnItemCount(talker,ticket_5h) > 0 || gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_5h_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_5h_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_5h,1);
					}
					myself::GetItemData(talker,mage_con_5h);
					myself::CreatePet(talker,mage_con_5h,mage_pet_5h,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			}
		} else if( ask == 21000 ) {
			if( reply == 11 ) {
				if( gg::OwnItemCount(talker,ticket_pt) > 0 || gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_pt_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_pt,1);
					}
					myself::GetItemData(talker,toy_knight_con);
					myself::CreatePet(talker,toy_knight_con,toy_knight_pet,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			} else if( reply == 21 ) {
				if( gg::OwnItemCount(talker,ticket_pt) > 0 || gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_pt_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_pt,1);
					}
					myself::GetItemData(talker,spirit_mage_con);
					myself::CreatePet(talker,spirit_mage_con,spirit_mage_pet,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			} else if( reply == 31 ) {
				if( gg::OwnItemCount(talker,ticket_pt) > 0 || gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_pt_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_pt,1);
					}
					myself::GetItemData(talker,owl_mage_con);
					myself::CreatePet(talker,owl_mage_con,owl_mage_pet,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			} else if( reply == 41 ) {
				if( gg::OwnItemCount(talker,ticket_pt) > 0 || gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
					if( gg::OwnItemCount(talker,ticket_pt_ev) > 0 ) {
						myself::DeleteItem1(talker,ticket_pt_ev,1);
					} else {
						myself::DeleteItem1(talker,ticket_pt,1);
					}
					myself::GetItemData(talker,turtle_con);
					myself::CreatePet(talker,turtle_con,turtle_pet,1);
					myself::ShowPage(talker,"e_premium_manager008.htm");
				} else {
					myself::ShowPage(talker,"e_premium_manager007.htm");
				}
			}
		}
	}

}
