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