}
@Override
public String onEvent(String event, QuestState st, L2NpcInstance npc)
{
QuestState qs = st.getPlayer().getQuestState(_255_Tutorial.class);
if(qs == null)
{
return null;
}
String htmltext;
L2Player player = st.getPlayer();
int Ex = qs.getInt("Ex");
int classId = player.getClassId().getId();
if(event.equalsIgnoreCase("TimerEx_NewbieHelper"))
{
if(Ex == 0)
{
if(player.getClassId().isMage())
{
st.playTutorialVoice("tutorial_voice_009b");
}
else
{
st.playTutorialVoice("tutorial_voice_009a");
}
qs.set("Ex", "1");
}
else if(Ex == 3)
{
st.playTutorialVoice("tutorial_voice_010a");
qs.set("Ex", "4");
}
return null;
}
else if(event.equalsIgnoreCase("TimerEx_GrandMaster"))
{
if(Ex >= 4)
{
st.showQuestionMark(7);
st.playSound(SOUND_TUTORIAL);
st.playTutorialVoice("tutorial_voice_025");
}
return null;
}
else if(event.equalsIgnoreCase("isle"))
{
st.addRadar(-119692, 44504, 380);
player.teleToLocation(-120050, 44500, 360);
htmltext = "<html><body><br>Go to the <font color=\"LEVEL\">Isle of Souls</font> and meet the <font color=\"LEVEL\">Newbie Guide</font> there to learn a number of important tips. He will also give you an item to assist your development. <br>Follow the direction arrow above your head and it will lead you to the Newbie Guide. Good luck!</body></html>";
}
else
{
Event e = events.get(event);
if(e.radarX != 0)
{
st.addRadar(e.radarX, e.radarY, e.radarZ);
}
htmltext = e.htm;
if(st.getQuestItemsCount(e.item) > 0)
{
st.addExpAndSp(0, 50);
st.startQuestTimer("TimerEx_GrandMaster", 60000);
st.takeItems(e.item, 1);
if(Ex <= 3)
{
qs.set("Ex", "4");
}
if(classId == e.classId1)
{
st.giveItems(e.gift1, e.count1);
if(e.gift1 == SPIRITSHOT_NOVICE)