Proper question marks for Tutorial quest.

This commit is contained in:
MobiusDev
2017-08-08 13:30:53 +00:00
parent fa66222d9b
commit e991bdcd4e
13 changed files with 76 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
<html><body>Grand Master Roien:<br>
Go to <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Master Roien:<br>
Go to <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Grand Magister Gallint:<br>
Go to <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Magister Gallint:<br>
Go to <font color="LEVEL">Talking Island Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Dark Elf Chief Mithraell:<br>
Go to <font color="LEVEL">Dark Elf Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Dark Elf Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dark Elf Chief Mithraell:<br>
Go to <font color="LEVEL">Dark Elf Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Nerupa:<br>
Go to <font color="LEVEL">Elven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Elven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Nerupa:<br>
Go to <font color="LEVEL">Elven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Foreman Laferon:<br>
Go to <font color="LEVEL">Dwarven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Dwarven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Foreman Laferon:<br>
Go to <font color="LEVEL">Dwarven Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -1,4 +1,5 @@
<html><body>Flame Guardian Vulkus:<br>
Go to <font color="LEVEL">Orc Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
Go to the <font color="LEVEL">Orc Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will teach you many useful things.<br>
Click on the <font color="LEVEL">question mark</font> on the lower right and follow the arrow to meet the Newbie Guide. Well, good luck!<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Guardian Vulkus:<br>
Go to <font color="LEVEL">Orc Village</font> and meet the <font color="LEVEL">Newbie Guide</font>. He will give you much important advice. He also has a gift for you.<br>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@@ -121,6 +121,9 @@ public class Q00255_Tutorial extends Quest
COMPLETE_LOCATION.put(53, new Location(115632, -177996, -905));
}
private static final String TUTORIAL_BUYPASS = "Quest Q00255_Tutorial ";
private static final int QUESTION_MARK_ID_1 = 1;
private static final int QUESTION_MARK_ID_2 = 5;
private static final int QUESTION_MARK_ID_3 = 28;
public Q00255_Tutorial()
{
@@ -169,7 +172,7 @@ public class Q00255_Tutorial extends Quest
{
if (qs.isMemoState(1))
{
player.sendPacket(new TutorialShowQuestionMark(1, 0));
player.sendPacket(new TutorialShowQuestionMark(QUESTION_MARK_ID_1, 0));
player.sendPacket(TutorialCloseHtml.STATIC_PACKET);
player.clearHtmlActions(HtmlActionScope.TUTORIAL_HTML);
}
@@ -191,9 +194,7 @@ public class Q00255_Tutorial extends Quest
playTutorialVoice(player, "tutorial_voice_026");
}
htmltext = (npc != null ? npc.getId() : player.getTarget().getId()) + "-3.html";
final int classId = player.getClassId().getId();
addRadar(player, COMPLETE_LOCATION.get(classId).getX(), COMPLETE_LOCATION.get(classId).getY(), COMPLETE_LOCATION.get(classId).getZ());
playSound(player, "ItemSound.quest_tutorial");
player.sendPacket(new TutorialShowQuestionMark(QUESTION_MARK_ID_3, 0));
}
break;
}
@@ -294,7 +295,7 @@ public class Q00255_Tutorial extends Quest
case 5:
case 6:
{
return npc.getId() + "-3.html";
return npc.getId() + "-4.html";
}
}
}
@@ -336,7 +337,7 @@ public class Q00255_Tutorial extends Quest
qs.setMemoState(3);
playSound(player, "ItemSound.quest_tutorial");
playTutorialVoice(player, "tutorial_voice_013");
player.sendPacket(new TutorialShowQuestionMark(1, 0));
player.sendPacket(new TutorialShowQuestionMark(QUESTION_MARK_ID_2, 0));
}
}
@@ -345,7 +346,11 @@ public class Q00255_Tutorial extends Quest
public void onPlayerPressTutorialMark(OnPlayerPressTutorialMark event)
{
final QuestState qs = getQuestState(event.getActiveChar(), false);
if ((qs != null) && (event.getMarkId() == 1)) // tutorial mark
if (qs != null)
{
switch (event.getMarkId())
{
case QUESTION_MARK_ID_1:
{
if (qs.isMemoState(1))
{
@@ -354,12 +359,29 @@ public class Q00255_Tutorial extends Quest
addRadar(event.getActiveChar(), HELPER_LOCATION.get(classId).getX(), HELPER_LOCATION.get(classId).getY(), HELPER_LOCATION.get(classId).getZ());
showTutorialHtml(event.getActiveChar(), "tutorial_04.html");
}
else if (qs.isMemoState(3))
break;
}
case QUESTION_MARK_ID_2:
{
if (qs.isMemoState(3))
{
final int classId = event.getActiveChar().getClassId().getId();
addRadar(event.getActiveChar(), HELPER_LOCATION.get(classId).getX(), HELPER_LOCATION.get(classId).getY(), HELPER_LOCATION.get(classId).getZ());
showTutorialHtml(event.getActiveChar(), "tutorial_06.html");
}
break;
}
case QUESTION_MARK_ID_3:
{
if (qs.isMemoState(5))
{
final int classId = event.getActiveChar().getClassId().getId();
addRadar(event.getActiveChar(), COMPLETE_LOCATION.get(classId).getX(), COMPLETE_LOCATION.get(classId).getY(), COMPLETE_LOCATION.get(classId).getZ());
playSound(event.getActiveChar(), "ItemSound.quest_tutorial");
}
break;
}
}
}
}