class 1 guide_human_cnacelot : newbie_guide
{
property:
	TelPosList NewbieTokenTeleports = {{"Dark Elf Village"; 9716; 15502; -4500; 1; 0};{"Dwarven Village"; 115120; -178112; -880; 1; 0};{"Elven Village"; 46890; 51531; -2976; 1; 0};{"Orc Village"; -45186; -112459; -236; 1; 0}};

handler:
	EventHandler TALKED(quest_id,talker)
	{
		if( _from_choice == 0 )
		{
			if( myself::GetMemoStateEx(talker,255,1) < 5 )
			{
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Fighter's Tutorial");
			}
			if( _choiceN > 1 )
			{
				myself::ShowChoicePage(talker,0);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 )
		{
			if( _code == 0 )
			{
				if( _from_choice == 0 || myself::GetMemoStateEx(talker,255,1) < 5 )
				{
					myself::SetCurrentQuestID(201);
					if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) )
					{
						myself::ShowSystemMessage(talker,1118);
						return;
					}
					myself::ShowPage(talker,"guide_human_cnacelot001.htm");
					myself::SetMemoStateEx(talker,255,1,5);
					if( myself::OwnItemCount(talker,5789) <= 400 && myself::OwnItemCount(talker,5790) <= 200 )
					{
						if( myself::IsInCategory(0,talker.occupation) == 1 )
						{
							myself::VoiceEffect(talker,"tutorial_voice_026",1000);
							myself::GiveItem1(talker,5789,200);
							myself::GiveItem1(talker,8542,12);
						}
						if( myself::IsInCategory(1,talker.occupation) == 1 )
						{
							myself::VoiceEffect(talker,"tutorial_voice_027",1000);
							myself::GiveItem1(talker,5790,100);
							myself::GiveItem1(talker,8542,12);
						}
					}
					if( myself::HaveMemo(talker,202) == 1 )
					{
						myself::RemoveMemo(talker,202);
					}
				}
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,reply,talker)
	{
		if( ask == 201 )
		{
			myself::SetCurrentQuestID(201);
			if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) )
			{
				myself::ShowSystemMessage(talker,1118);
				return;
			}
		}
		if( ask == 255 )
		{
			if( reply == 10 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04.htm");
			}
			else if( reply == 11 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04a.htm");
			}
			else if( reply == 12 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04b.htm");
			}
			else if( reply == 13 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04c.htm");
			}
			else if( reply == 14 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04d.htm");
			}
			else if( reply == 15 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04e.htm");
			}
			else if( reply == 16 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04f.htm");
			}
			else if( reply == 17 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04g.htm");
			}
			else if( reply == 18 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04h.htm");
			}
			else if( reply == 19 )
			{
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_04i.htm");
			}
			else if( reply == 31 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84108,244604,-3729,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 32 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82236,241573,-3728,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 33 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82515,241221,-3728,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 34 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82319,244709,-3727,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 35 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82659,244992,-3717,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 36 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-86114,244682,-3727,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 37 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-86328,244448,-3724,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 38 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-86322,241215,-3727,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 39 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-85964,240947,-3727,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 40 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-85026,242689,-3729,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 41 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-83789,240799,-3717,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 42 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84204,240403,-3717,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 43 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-86385,243267,-3717,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 44 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-86733,242918,-3717,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 45 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84516,245449,-3714,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 46 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84729,245001,-3726,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 47 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84965,245222,-3726,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 48 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84981,244764,-3726,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 49 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-85186,245001,-3726,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 50 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-83326,242964,-3718,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 51 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-83020,242553,-3718,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 52 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-83175,243065,-3718,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 53 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82809,242751,-3718,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 54 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-81895,243917,-3721,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 55 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-81840,243534,-3721,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 56 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-81512,243424,-3720,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 57 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84436,242793,-3729,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 58 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-78939,240305,-3443,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 59 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-85301,244587,-3725,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 60 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-83163,243560,-3728,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 61 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-97131,258946,-3622,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 62 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-114685,222291,-2925,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 63 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-84057,242832,-3729,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 64 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-100332,238019,-3573,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
			else if( reply == 65 )
			{
				myself::DeleteAllRadar(talker,2);
				myself::ShowRadar(talker,-82041,242718,-3725,2);
				myself::ShowPage(talker,"guide_human_cnacelot_q0255_05.htm");
			}
		}
		super;
	}

}
