class 1 tutorial_quest_npc : default_npc
{
handler:
	EventHandler TIMER_FIRED_EX(timer_id,talker)
	{
		if( timer_id <= 1000000 )
		{
			return;
		}
		talker = myself::GetCreatureFromIndex(( timer_id - 1000000 ));
		if( myself::IsNullCreature(talker) || talker.alive == 0 || talker.is_pc == 0 )
		{
			return;
		}
		if( myself::GetMemoStateEx(talker,255,1) == -2 )
		{
			if( talker.occupation == 0 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001a",2000);
				myself::ShowTutorialHTML(talker,"tutorial_human_fighter001.htm");
			}
			else if( talker.occupation == 10 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001b",2000);
				myself::ShowTutorialHTML(talker,"tutorial_human_mage001.htm");
			}
			else if( talker.occupation == 18 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001c",2000);
				myself::ShowTutorialHTML(talker,"tutorial_elven_fighter001.htm");
			}
			else if( talker.occupation == 25 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001d",2000);
				myself::ShowTutorialHTML(talker,"tutorial_elven_mage001.htm");
			}
			else if( talker.occupation == 31 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001e",2000);
				myself::ShowTutorialHTML(talker,"tutorial_delf_fighter001.htm");
			}
			else if( talker.occupation == 38 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001f",2000);
				myself::ShowTutorialHTML(talker,"tutorial_delf_mage001.htm");
			}
			else if( talker.occupation == 44 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001g",2000);
				myself::ShowTutorialHTML(talker,"tutorial_orc_fighter001.htm");
			}
			else if( talker.occupation == 49 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001h",2000);
				myself::ShowTutorialHTML(talker,"tutorial_orc_mage001.htm");
			}
			else if( talker.occupation == 53 )
			{
				myself::VoiceEffect(talker,"tutorial_voice_001i",2000);
				myself::ShowTutorialHTML(talker,"tutorial_dwarven_fighter001.htm");
			}
			if( myself::OwnItemCount(talker,5588) == 0 )
			{
				myself::GiveItem1(talker,5588,1);
			}
			myself::AddTimerEx(( myself::GetIndexFromCreature(talker) + 1000000 ),( 1000 * 30 ));
			myself::SetMemoStateEx(talker,255,1,-3);
		}
		else if( myself::GetMemoStateEx(talker,255,1) == -3 )
		{
			myself::VoiceEffect(talker,"tutorial_voice_002",1000);
			myself::SetMemoStateEx(talker,255,1,0);
		}
		else if( myself::GetMemoStateEx(talker,255,1) == -4 )
		{
			myself::VoiceEffect(talker,"tutorial_voice_008",1000);
			myself::SetMemoStateEx(talker,255,1,-5);
		}
	}

	EventHandler TUTORIAL_EVENT(talker,event_id,i0,i1)
	{
		i1 = myself::GetMemoState(talker,255);
		i1 = 2147483392;
		if( event_id < 0 )
		{
			switch(-event_id)
			{
				case 1:
				{
					myself::CloseTutorialHTML(talker);
					myself::VoiceEffect(talker,"tutorial_voice_006",3500);
					myself::ShowQuestionMark(talker,1);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					myself::AddTimerEx(( myself::GetIndexFromCreature(talker) + 1000000 ),( 1000 * 30 ));
					myself::SetMemoStateEx(talker,255,1,-4);
					break;
				}
				case 2:
				{
					myself::VoiceEffect(talker,"tutorial_voice_003",2000);
					myself::ShowTutorialHTML(talker,"tutorial_02.htm");
					talker::EnableTutorialEvent(i0,1);
					myself::SetMemoStateEx(talker,255,1,-5);
					break;
				}
				case 3:
				{
					myself::ShowTutorialHTML(talker,"tutorial_03.htm");
					talker::EnableTutorialEvent(i0,2);
					break;
				}
				case 4:
				{
					myself::ShowTutorialHTML(talker,"tutorial_04.htm");
					talker::EnableTutorialEvent(i0,4);
					break;
				}
				case 5:
				{
					myself::ShowTutorialHTML(talker,"tutorial_05.htm");
					talker::EnableTutorialEvent(i0,8);
					break;
				}
				case 6:
				{
					myself::ShowTutorialHTML(talker,"tutorial_06.htm");
					talker::EnableTutorialEvent(i0,16);
					break;
				}
				case 7:
				{
					myself::ShowTutorialHTML(talker,"tutorial_100.htm");
					myself::EnableTutorialEvent(talker,i0);
					break;
				}
				case 8:
				{
					myself::ShowTutorialHTML(talker,"tutorial_101.htm");
					myself::EnableTutorialEvent(talker,i0);
					break;
				}
				case 9:
				{
					myself::ShowTutorialHTML(talker,"tutorial_102.htm");
					myself::EnableTutorialEvent(talker,i0);
					break;
				}
				case 10:
				{
					myself::ShowTutorialHTML(talker,"tutorial_103.htm");
					myself::EnableTutorialEvent(talker,i0);
					break;
				}
				case 11:
				{
					myself::ShowTutorialHTML(talker,"tutorial_104.htm");
					myself::EnableTutorialEvent(talker,i0);
					break;
				}
				case 12:
				{
					break;
				}
			}
			return;
		}
		switch(event_id)
		{
			case 1:
			{
				if( talker.level < 6 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_004",( 1000 * 5 ));
					myself::ShowTutorialHTML2(talker,"tutorial_03.htm",3,"ItemSound.quest_tutorial");
					talker::EnableTutorialEvent(i0,2);
				}
				break;
			}
			case 2:
			{
				if( talker.level < 6 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_005",( 1000 * 5 ));
					myself::ShowTutorialHTML2(talker,"tutorial_05.htm",3,"ItemSound.quest_tutorial");
					talker::EnableTutorialEvent(i0,8);
				}
				break;
			}
			case 8:
			{
				if( talker.level < 6 )
				{
					myself::ShowTutorialHTML2(talker,"tutorial_human_fighter007.htm",3,"ItemSound.quest_tutorial");
					if( talker.occupation == 0 )
					{
						myself::ShowRadar(talker,-71424,258336,-3109,2);
					}
					else if( talker.occupation == 10 )
					{
						myself::ShowRadar(talker,-91036,248044,-3568,2);
					}
					else if( talker.occupation == 18 || talker.occupation == 25 )
					{
						myself::ShowRadar(talker,46112,41200,-3504,2);
					}
					else if( talker.occupation == 31 || talker.occupation == 38 )
					{
						myself::ShowRadar(talker,28384,11056,-4233,2);
					}
					else if( talker.occupation == 44 || talker.occupation == 49 )
					{
						myself::ShowRadar(talker,-56736,-113680,-672,2);
					}
					else if( talker.occupation == 53 )
					{
						myself::ShowRadar(talker,108567,-173994,-406,2);
					}
					myself::VoiceEffect(talker,"tutorial_voice_007",3500);
					talker::SetMemoState(255,i0,2);
					myself::SetMemoStateEx(talker,255,1,-5);
				}
				break;
			}
			case 256:
			{
				if( talker.level < 6 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_017",1000);
					myself::ShowQuestionMark(talker,10);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,256);
					i0::EnableTutorialEvent(256,8388608);
				}
				break;
			}
			case 512:
			{
				myself::ShowQuestionMark(talker,8);
				myself::VoiceEffect(talker,"tutorial_voice_016",1000);
				myself::SoundEffect(talker,"ItemSound.quest_tutorial");
				talker::SetMemoState(255,i1,512);
				break;
			}
			case 1024:
			{
				myself::ShowQuestionMark(talker,9);
				myself::SoundEffect(talker,"ItemSound.quest_tutorial");
				talker::SetMemoState(255,i1,1024);
				if( talker.occupation == 0 )
				{
					myself::ShowRadar(talker,-83020,242553,-3718,2);
				}
				else if( talker.occupation == 18 )
				{
					myself::ShowRadar(talker,45061,52468,-2796,2);
				}
				else if( talker.occupation == 31 )
				{
					myself::ShowRadar(talker,10447,14620,-4242,2);
				}
				else if( talker.occupation == 44 )
				{
					myself::ShowRadar(talker,-46389,-113905,-21,2);
				}
				else if( talker.occupation == 53 )
				{
					myself::ShowRadar(talker,115271,-182692,-1445,2);
				}
				if( myself::IsInCategory(1,talker.occupation) )
				{
					myself::VoiceEffect(talker,"tutorial_voice_015",1000);
				}
				else
				{
					myself::VoiceEffect(talker,"tutorial_voice_014",1000);
				}
				talker::SetMemoState(255,i1,1024);
				break;
			}
			case 134217728:
			{
				if( myself::IsNewbie(talker) )
				{
					myself::ShowQuestionMark(talker,24);
					myself::VoiceEffect(talker,"tutorial_voice_020",1000);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::EnableTutorialEvent(i0,134217728);
					talker::SetMemoState(255,i1,134217728);
				}
				talker::EnableTutorialEvent(i0,2048);
				break;
			}
			case 2048:
			{
				if( myself::IsInCategory(1,talker.occupation) )
				{
					myself::VoiceEffect(talker,"tutorial_voice_019",1000);
					myself::ShowQuestionMark(talker,11);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					if( talker.occupation == 10 )
					{
						myself::ShowRadar(talker,-84981,244764,-3726,2);
					}
					else if( talker.occupation == 25 )
					{
						myself::ShowRadar(talker,45701,52459,-2796,2);
					}
					else if( talker.occupation == 38 )
					{
						myself::ShowRadar(talker,10344,14445,-4242,2);
					}
					else if( talker.occupation == 49 )
					{
						myself::ShowRadar(talker,-46225,-113312,-21,2);
					}
					talker::SetMemoState(255,i1,2048);
					talker::EnableTutorialEvent(i0,67108864);
				}
				break;
			}
			case 268435456:
			{
				if( myself::IsNewbie(talker) && talker.occupation == 0 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_021",1000);
					myself::ShowQuestionMark(talker,25);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,268435456);
				}
				break;
			}
			case 536870912:
			{
				if( myself::IsNewbie(talker) && ( talker.occupation == 53 || talker.occupation == 10 || talker.occupation == 18 || talker.occupation == 25 || talker.occupation == 38 || talker.occupation == 31 ) )
				{
					myself::VoiceEffect(talker,"tutorial_voice_021",1000);
					myself::ShowQuestionMark(talker,25);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,536870912);
				}
				break;
			}
			case 1073741824:
			{
				if( myself::IsNewbie(talker) && ( talker.occupation == 44 || talker.occupation == 49 ) )
				{
					myself::ShowQuestionMark(talker,25);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,1073741824);
				}
				break;
			}
			case 67108864:
			{
				myself::ShowQuestionMark(talker,17);
				myself::SoundEffect(talker,"ItemSound.quest_tutorial");
				talker::SetMemoState(255,i1,67108864);
				talker::EnableTutorialEvent(i0,4096);
				break;
			}
			case 4096:
			{
				myself::VoiceEffect(talker,"tutorial_voice_022",1000);
				myself::ShowQuestionMark(talker,13);
				myself::SoundEffect(talker,"ItemSound.quest_tutorial");
				talker::SetMemoState(255,i1,4096);
				talker::EnableTutorialEvent(i0,16777216);
				break;
			}
			case 16777216:
			{
				myself::VoiceEffect(talker,"tutorial_voice_023",1000);
				myself::ShowQuestionMark(talker,15);
				myself::SoundEffect(talker,"ItemSound.quest_tutorial");
				talker::SetMemoState(255,i1,16777216);
				talker::EnableTutorialEvent(i0,33554432);
				break;
			}
			case 33554432:
			{
				if( myself::GetOneTimeQuestFlag(talker,234) == 0 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_024",1000);
					myself::ShowQuestionMark(talker,16);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,33554432);
				}
				break;
			}
			case 2097152:
			{
				if( talker.level < 6 )
				{
					myself::ShowQuestionMark(talker,23);
					myself::VoiceEffect(talker,"tutorial_voice_012",1000);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,2097152);
				}
				break;
			}
			case 1048576:
			{
				if( talker.level < 6 )
				{
					myself::ShowQuestionMark(talker,5);
					myself::VoiceEffect(talker,"tutorial_voice_013",1000);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					talker::SetMemoState(255,i1,1048576);
				}
				break;
			}
			case 8388608:
			{
				if( talker.level < 6 )
				{
					myself::VoiceEffect(talker,"tutorial_voice_018",1000);
					myself::ShowTutorialHTML(talker,"tutorial_21z.htm");
					talker::SetMemoState(255,i1,8388608);
				}
				break;
			}
		}
	}

	EventHandler MENU_SELECTED(talker,ask,reply)
	{
		if( ask == 420 )
		{
			if( reply == 1 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22g.htm");
			}
			else if( reply == 2 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22w.htm");
			}
			else if( reply == 3 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ap.htm");
			}
			else if( reply == 4 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ad.htm");
			}
			else if( reply == 5 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22bt.htm");
			}
			else if( reply == 6 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22bh.htm");
			}
			else if( reply == 7 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22cs.htm");
			}
			else if( reply == 8 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22cn.htm");
			}
			else if( reply == 9 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22cw.htm");
			}
			else if( reply == 10 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22db.htm");
			}
			else if( reply == 11 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22dp.htm");
			}
			else if( reply == 12 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22et.htm");
			}
			else if( reply == 13 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22es.htm");
			}
			else if( reply == 14 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22fp.htm");
			}
			else if( reply == 15 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22fs.htm");
			}
			else if( reply == 16 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22gs.htm");
			}
			else if( reply == 17 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ge.htm");
			}
			else if( reply == 18 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ko.htm");
			}
			else if( reply == 19 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22kw.htm");
			}
			else if( reply == 20 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ns.htm");
			}
			else if( reply == 21 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22nb.htm");
			}
			else if( reply == 22 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22oa.htm");
			}
			else if( reply == 23 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22op.htm");
			}
			else if( reply == 24 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22ps.htm");
			}
			else if( reply == 24 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_22pp.htm");
			}
			else if( reply == 26 )
			{
				if( talker.occupation == 1 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22.htm");
				}
				else if( talker.occupation == 4 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22a.htm");
				}
				else if( talker.occupation == 7 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22b.htm");
				}
				else if( talker.occupation == 11 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22c.htm");
				}
				else if( talker.occupation == 15 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22d.htm");
				}
				else if( talker.occupation == 19 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22e.htm");
				}
				else if( talker.occupation == 22 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22f.htm");
				}
				else if( talker.occupation == 26 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22g.htm");
				}
				else if( talker.occupation == 29 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22h.htm");
				}
				else if( talker.occupation == 45 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22i.htm");
				}
				else if( talker.occupation == 47 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22j.htm");
				}
				else if( talker.occupation == 50 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22k.htm");
				}
				else if( talker.occupation == 54 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22l.htm");
				}
				else if( talker.occupation == 56 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22m.htm");
				}
				else if( talker.occupation == 32 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22n.htm");
				}
				else if( talker.occupation == 35 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22o.htm");
				}
				else if( talker.occupation == 39 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22p.htm");
				}
				else if( talker.occupation == 42 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_22q.htm");
				}
			}
			else if( reply == 27 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_29.htm");
			}
			else if( reply == 28 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_28.htm");
			}
			else if( reply == 29 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_07a.htm");
			}
			else if( reply == 30 )
			{
				myself::ShowTutorialHTML(talker,"tutorial_07b.htm");
			}
		}
	}

	EventHandler QUESTION_MARK_CLICKED(talker,question_id,i0)
	{
		myself::GetMemoState(talker,255) = 2147483392;
		switch(question_id)
		{
			case 1:
			{
				myself::VoiceEffect(talker,"tutorial_voice_007",3500);
				myself::SetMemoStateEx(talker,255,1,-5);
				if( talker.occupation == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,-71424,258336,-3109,2);
				}
				else if( talker.occupation == 10 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,-91036,248044,-3568,2);
				}
				else if( talker.occupation == 18 || talker.occupation == 25 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,46112,41200,-3504,2);
				}
				else if( talker.occupation == 31 || talker.occupation == 38 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,28384,11056,-4233,2);
				}
				else if( talker.occupation == 44 || talker.occupation == 49 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,-56736,-113680,-672,2);
				}
				else if( talker.occupation == 53 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter007.htm");
					myself::ShowRadar(talker,108567,-173994,-406,2);
				}
				talker::SetMemoState(255,i0,2);
				break;
			}
			case 2:
			{
				if( talker.occupation == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_fighter008.htm");
				}
				else if( talker.occupation == 10 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_human_mage008.htm");
				}
				else if( talker.occupation == 18 || talker.occupation == 25 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_elf008.htm");
				}
				else if( talker.occupation == 31 || talker.occupation == 38 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_delf008.htm");
				}
				else if( talker.occupation == 44 || talker.occupation == 49 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_orc008.htm");
				}
				else if( talker.occupation == 53 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_dwarven_fighter008.htm");
				}
				break;
			}
			case 3:
			{
				myself::ShowTutorialHTML(talker,"tutorial_09.htm");
				talker::EnableTutorialEvent(i0,1048576);
				break;
			}
			case 4:
			{
				myself::ShowTutorialHTML(talker,"tutorial_10.htm");
				break;
			}
			case 5:
			{
				if( talker.occupation == 0 )
				{
					myself::ShowRadar(talker,-71424,258336,-3109,2);
				}
				else if( talker.occupation == 10 )
				{
					myself::ShowRadar(talker,-91036,248044,-3568,2);
				}
				else if( talker.occupation == 18 || talker.occupation == 25 )
				{
					myself::ShowRadar(talker,46112,41200,-3504,2);
				}
				else if( talker.occupation == 31 || talker.occupation == 38 )
				{
					myself::ShowRadar(talker,28384,11056,-4233,2);
				}
				else if( talker.occupation == 44 || talker.occupation == 49 )
				{
					myself::ShowRadar(talker,-56736,-113680,-672,2);
				}
				else if( talker.occupation == 53 )
				{
					myself::ShowRadar(talker,108567,-173994,-406,2);
				}
				myself::ShowTutorialHTML(talker,"tutorial_11.htm");
				break;
			}
			case 7:
			{
				myself::ShowTutorialHTML(talker,"tutorial_15.htm");
				talker::SetMemoState(255,i0,5);
				break;
			}
			case 8:
			{
				myself::ShowTutorialHTML(talker,"tutorial_18.htm");
				break;
			}
			case 9:
			{
				if( ( talker.race == 0 || talker.race == 1 || talker.race == 2 ) && myself::IsInCategory(0,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_fighter017.htm");
				}
				if( ( talker.race == 0 || talker.race == 1 || talker.race == 2 ) && myself::IsInCategory(1,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage017.htm");
				}
				if( talker.race == 4 && myself::IsInCategory(0,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_fighter_dwarf017.htm");
				}
				if( talker.race == 3 && myself::IsInCategory(0,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_fighter_orc017.htm");
				}
				if( talker.race == 4 && myself::IsInCategory(1,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage017.htm");
				}
				if( talker.race == 3 && myself::IsInCategory(1,talker.occupation) )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage017.htm");
				}
				break;
			}
			case 10:
			{
				myself::ShowTutorialHTML(talker,"tutorial_19.htm");
				break;
			}
			case 11:
			{
				if( talker.race == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage020.htm");
				}
				if( talker.race == 1 || talker.race == 2 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage_elf020.htm");
				}
				if( talker.race == 3 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_mage_orc020.htm");
				}
				break;
			}
			case 12:
			{
				myself::ShowTutorialHTML(talker,"tutorial_15.htm");
				break;
			}
			case 13:
			{
				if( talker.occupation == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21.htm");
				}
				else if( talker.occupation == 10 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21a.htm");
				}
				else if( talker.occupation == 18 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21b.htm");
				}
				else if( talker.occupation == 25 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21c.htm");
				}
				else if( talker.occupation == 44 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21d.htm");
				}
				else if( talker.occupation == 49 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21e.htm");
				}
				else if( talker.occupation == 53 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21f.htm");
				}
				else if( talker.occupation == 31 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21g.htm");
				}
				else if( talker.occupation == 38 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_21h.htm");
				}
				break;
			}
			case 15:
			{
				myself::ShowTutorialHTML(talker,"tutorial_28.htm");
				break;
			}
			case 16:
			{
				myself::ShowTutorialHTML(talker,"tutorial_30.htm");
				break;
			}
			case 17:
			{
				myself::ShowTutorialHTML(talker,"tutorial_27.htm");
				break;
			}
			case 19:
			{
				myself::ShowTutorialHTML(talker,"tutorial_07.htm");
				break;
			}
			case 20:
			{
				myself::ShowTutorialHTML(talker,"tutorial_14.htm");
				break;
			}
			case 21:
			{
				myself::ShowTutorialHTML(talker,"tutorial_newbie001.htm");
				break;
			}
			case 22:
			{
				myself::ShowTutorialHTML(talker,"tutorial_14.htm");
				break;
			}
			case 23:
			{
				myself::ShowTutorialHTML(talker,"tutorial_24.htm");
				break;
			}
			case 24:
			{
				if( talker.race == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie003a.htm");
				}
				if( talker.race == 1 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie003b.htm");
				}
				if( talker.race == 2 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie003c.htm");
				}
				if( talker.race == 3 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie003d.htm");
				}
				if( talker.race == 4 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie003e.htm");
				}
				break;
			}
			case 25:
			{
				if( talker.occupation == 0 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002a.htm");
				}
				if( talker.occupation == 10 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002b.htm");
				}
				if( talker.occupation == 18 || talker.occupation == 25 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002c.htm");
				}
				if( talker.occupation == 38 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002d.htm");
				}
				if( talker.occupation == 31 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002e.htm");
				}
				if( talker.occupation == 53 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002g.htm");
				}
				if( talker.occupation == 49 || talker.occupation == 44 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie002f.htm");
				}
				break;
			}
			case 26:
			{
				if( talker.occupation == 0 || talker.occupation == 49 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie004a.htm");
				}
				if( talker.occupation == 10 && talker.occupation != 49 )
				{
					myself::ShowTutorialHTML(talker,"tutorial_newbie004b.htm");
				}
				break;
			}
		}
	}

	EventHandler USER_CONNECTED(talker,i0,i1,i2,i3,i4)
	{
		if( talker.level < 6 )
		{
			if( myself::GetOneTimeQuestFlag(talker,255) != 0 )
			{
				return;
			}
			i0 = myself::GetMemoState(talker,255);
			if( i0 == -1 )
			{
				i0 = 0;
				i1 = 0;
			}
			else
			{
				i0 = 255;
				i0 = 2147483392;
			}
			switch(i1)
			{
				case 0:
				{
					myself::AddTimerEx(( myself::GetIndexFromCreature(talker) + 1000000 ),( 1000 * 10 ));
					8388608 = 1048576;
					talker::SetMemoState(255,1,i0);
					myself::SetMemoStateEx(talker,255,1,-2);
					break;
				}
				case 1:
				{
					myself::ShowQuestionMark(talker,1);
					myself::VoiceEffect(talker,"tutorial_voice_006",1000);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					break;
				}
				case 2:
				{
					if( myself::HaveMemo(talker,201) || myself::HaveMemo(talker,202) || myself::HaveMemo(talker,203) || myself::HaveMemo(talker,204) || myself::HaveMemo(talker,205) || myself::HaveMemo(talker,206) )
					{
						myself::ShowQuestionMark(talker,6);
						myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					}
					else
					{
						myself::ShowQuestionMark(talker,2);
						myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					}
					break;
				}
				case 3:
				{
					i3 = 0;
					if( myself::OwnItemCount(talker,6353) == 1 )
					{
						i3 = 3;
					}
					if( myself::GetMemoStateEx(talker,255,1) == 2 )
					{
						i3 = 1;
					}
					else if( i3 == 1 )
					{
						myself::ShowQuestionMark(talker,3);
						myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					}
					else if( i3 == 2 )
					{
						myself::ShowQuestionMark(talker,4);
						myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					}
					else if( i3 == 3 )
					{
						myself::ShowQuestionMark(talker,5);
						myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					}
					break;
				}
				case 4:
				{
					myself::ShowQuestionMark(talker,12);
					myself::SoundEffect(talker,"ItemSound.quest_tutorial");
					break;
				}
			}
			myself::EnableTutorialEvent(talker,i0);
		}
	}

}
