class 1 event_santa : citizen
{
parameter:

handler:
	EventHandler MENU_SELECTED(talker,ask,reply)
	{
		if( reply == 1 )
		{
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_01.htm");
		}
		else if( reply == 2 )
		{
			if( myself::OwnItemCount(talker,57) >= 1000 )
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_01a.htm");
				myself::GiveItem1(talker,5555,1);
				myself::DeleteItem1(talker,57,1000);
			}
			else
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_01b.htm");
			}
		}
		else if( reply == 3 )
		{
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_02.htm");
		}
		else if( reply == 4 )
		{
			if( myself::OwnItemCount(talker,5556) >= 4 && myself::OwnItemCount(talker,5557) >= 4 && myself::OwnItemCount(talker,5558) >= 10 && myself::OwnItemCount(talker,5559) >= 1 )
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_03.htm");
				myself::DeleteItem1(talker,5556,4);
				myself::DeleteItem1(talker,5557,4);
				myself::DeleteItem1(talker,5558,10);
				myself::DeleteItem1(talker,5559,1);
				myself::GiveItem1(talker,5560,1);
			}
			else
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_03a.htm");
			}
		}
		else if( reply == 5 )
		{
			if( myself::OwnItemCount(talker,5560) >= 10 )
			{
				myself::DeleteItem1(talker,5560,10);
				myself::GiveItem1(talker,5561,1);
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_04.htm");
			}
			else
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_04a.htm");
			}
		}
		else if( reply == 6 )
		{
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_05.htm");
		}
		else if( reply == 11 )
		{
			if( myself::Skill_GetConsumeMP(1091074) < myself.sm.mp && myself::Skill_GetConsumeHP(1091074) < myself.sm.hp && myself::Skill_InReuseDelay(1091074) == 0 )
			{
				myself::AddUseSkillDesire(talker,1091074,1,1,1000000);
			}
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_06.htm");
		}
		else if( reply == 12 )
		{
			if( myself::Skill_GetConsumeMP(1091329) < myself.sm.mp && myself::Skill_GetConsumeHP(1091329) < myself.sm.hp && myself::Skill_InReuseDelay(1091329) == 0 )
			{
				myself::AddUseSkillDesire(talker,1091329,1,1,1000000);
			}
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_07.htm");
		}
		else if( reply == 13 )
		{
			if( myself::Skill_GetConsumeMP(1091585) < myself.sm.mp && myself::Skill_GetConsumeHP(1091585) < myself.sm.hp && myself::Skill_InReuseDelay(1091585) == 0 )
			{
				myself::AddUseSkillDesire(talker,1091585,1,1,1000000);
			}
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_08.htm");
		}
		else if( reply == 14 )
		{
			if( myself::Skill_GetConsumeMP(1091843) < myself.sm.mp && myself::Skill_GetConsumeHP(1091843) < myself.sm.hp && myself::Skill_InReuseDelay(1091843) == 0 )
			{
				myself::AddUseSkillDesire(talker,1091843,1,1,1000000);
			}
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_09.htm");
		}
		else if( reply == 15 )
		{
			if( myself::Skill_GetConsumeMP(1092099) < myself.sm.mp && myself::Skill_GetConsumeHP(1092099) < myself.sm.hp && myself::Skill_InReuseDelay(1092099) == 0 )
			{
				myself::AddUseSkillDesire(talker,1092099,1,1,1000000);
			}
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_10.htm");
		}
		else if( reply == 21 )
		{
			myself::ShowPage(talker,"event_santa_wannabe1_q0998_11.htm");
		}
		else if( reply == 22 )
		{
			if( myself::OwnItemCount(talker,5560) >= 10 )
			{
				myself::DeleteItem1(talker,5560,10);
				myself::GiveItem1(talker,7836,1);
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_12.htm");
			}
			else
			{
				myself::ShowPage(talker,"event_santa_wannabe1_q0998_13.htm");
			}
		}
	}

}
