Avoid reseting tutorial with exploit tools.
This commit is contained in:
@@ -133,11 +133,14 @@ public class Q00255_Tutorial extends Quest
|
||||
break;
|
||||
}
|
||||
case "start_newbie_tutorial":
|
||||
{
|
||||
if (!qs.isCompleted())
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setMemoState(1);
|
||||
playTutorialVoice(player, STARTING_VOICE_HTML.get(player.getClassId().getId()).getSound());
|
||||
showTutorialHtml(player, STARTING_VOICE_HTML.get(player.getClassId().getId()).getHtml());
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "goto_newbie_guide":
|
||||
@@ -273,14 +276,11 @@ public class Q00255_Tutorial extends Quest
|
||||
}
|
||||
|
||||
QuestState qs = getQuestState(player, true);
|
||||
if (qs != null)
|
||||
{
|
||||
if (!qs.isCompleted() && STARTING_VOICE_HTML.containsKey(player.getClassId().getId()))
|
||||
if ((qs != null) && !qs.isCompleted() && STARTING_VOICE_HTML.containsKey(player.getClassId().getId()))
|
||||
{
|
||||
startQuestTimer("start_newbie_tutorial", 5000, null, player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void showTutorialHtml(L2PcInstance player, String html)
|
||||
{
|
||||
|
Reference in New Issue
Block a user