Prohibit newbie guide tutorial reward for other races.
This commit is contained in:
parent
f831d5df04
commit
a2052d2181
@ -85,6 +85,10 @@ public class NewbieGuide extends AbstractNpcAI
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
if (npc.getRace() != player.getTemplate().getRace())
|
||||
{
|
||||
return npc.getId() + "-no.htm";
|
||||
}
|
||||
final QuestState qs = player.getQuestState(TUTORIAL_QUEST);
|
||||
if ((qs != null) && qs.isCompleted() && !Config.DISABLE_TUTORIAL && !player.getVariables().getBoolean(TUTORIAL_SHOT_VAR, true))
|
||||
{
|
||||
@ -100,10 +104,6 @@ public class NewbieGuide extends AbstractNpcAI
|
||||
playTutorialVoice(player, "tutorial_voice_026");
|
||||
}
|
||||
}
|
||||
if (npc.getRace() != player.getTemplate().getRace())
|
||||
{
|
||||
return npc.getId() + "-no.htm";
|
||||
}
|
||||
if (Config.MAX_NEWBIE_BUFF_LEVEL > 0)
|
||||
{
|
||||
return npc.getId() + ".htm";
|
||||
|
Loading…
Reference in New Issue
Block a user