Tutorial quest improvements.
This commit is contained in:
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
Welcome to Cedric's Training Hall. I will be teaching you the basics of combat.<br>
|
||||
Please click on <font color="LEVEL">Quest</font>, in your Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
Welcome to Einhovant's School of Wizardry. I will be teaching you the basics of combat.<br>
|
||||
Please click on <font color="LEVEL">Quest</font>, in your Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
Welcome, young seeker. In this temple are all Dark Elves born, and here we worship the goddess of darkness, the first goddess of water, Shilen. I will be teaching you the basics of combat.<br>
|
||||
Please click on <font color="LEVEL">Quest</font>, in your Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
I bid you welcome, young one. I am a guardian of the Mother Tree Glade, and serve the Mother of all Elves. I will be teaching you the basics of combat.<br>
|
||||
To begin, click on <font color="LEVEL">Quest</font> in the Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
Welcome, young Dwarf. Do you know where you are? This place is the strip mine, and here young Dwarves like you are trained. Every Dwarf must learn the skills required for self-sufficiency! I will teach you those basics.<br>
|
||||
To begin, click on <font color="LEVEL">Quest</font>, in the Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575.html
vendored
Normal file
5
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
Welcome, young Orc. Stripling Orcs take their first steps toward becoming fighters in the Temple of Paagrio, where we worship Paagrio, god of fire and creator of all Orcs. I will teach you the basics of combat.<br>
|
||||
To begin, click on <font color="LEVEL">Quest</font>, in the Chat window.<br>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@@ -111,6 +111,7 @@ public class Q00255_Tutorial extends Quest
|
||||
{
|
||||
super(255);
|
||||
addTalkId(STARTING_HELPER_HF, STARTING_HELPER_HM, STARTING_HELPER_EL, STARTING_HELPER_DE, STARTING_HELPER_OR, STARTING_HELPER_DW);
|
||||
addFirstTalkId(STARTING_HELPER_HF, STARTING_HELPER_HM, STARTING_HELPER_EL, STARTING_HELPER_DE, STARTING_HELPER_OR, STARTING_HELPER_DW);
|
||||
addKillId(GREMLINS);
|
||||
registerQuestItems(BLUE_GEM);
|
||||
}
|
||||
@@ -170,36 +171,50 @@ public class Q00255_Tutorial extends Quest
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && !qs.isCompleted() && (qs.getMemoState() > 1) && hasQuestItems(player, BLUE_GEM))
|
||||
if (qs != null)
|
||||
{
|
||||
player.getVariables().set(TUTORIAL_SHOT_VAR, false);
|
||||
qs.exitQuest(false, false); // finish here!
|
||||
if (player.isMageClass() && (player.getRace() != Race.ORC))
|
||||
if (!qs.isCompleted() && (qs.getMemoState() > 1) && hasQuestItems(player, BLUE_GEM))
|
||||
{
|
||||
giveItems(player, SPIRITSHOT_REWARD);
|
||||
playTutorialVoice(player, "tutorial_voice_027");
|
||||
player.getVariables().set(TUTORIAL_SHOT_VAR, false);
|
||||
qs.exitQuest(false, false); // finish here!
|
||||
if (player.isMageClass() && (player.getRace() != Race.ORC))
|
||||
{
|
||||
giveItems(player, SPIRITSHOT_REWARD);
|
||||
playTutorialVoice(player, "tutorial_voice_027");
|
||||
}
|
||||
else
|
||||
{
|
||||
giveItems(player, SOULSHOT_REWARD);
|
||||
playTutorialVoice(player, "tutorial_voice_026");
|
||||
}
|
||||
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");
|
||||
}
|
||||
else
|
||||
if (qs.isCompleted())
|
||||
{
|
||||
giveItems(player, SOULSHOT_REWARD);
|
||||
playTutorialVoice(player, "tutorial_voice_026");
|
||||
return "tutorial_15.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");
|
||||
}
|
||||
if ((qs != null) && (qs.isCompleted() || (qs.getMemoState() > 1)))
|
||||
{
|
||||
return "tutorial_15.html";
|
||||
}
|
||||
return "tutorial_09.html";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && qs.isCompleted())
|
||||
{
|
||||
return "tutorial_newbie_done.html";
|
||||
}
|
||||
return npc.getId() + ".html";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && (qs.getMemoState() < 2) && !hasQuestItems(killer, BLUE_GEM))
|
||||
if ((qs != null) && (qs.getMemoState() < 2) && !hasQuestItems(killer, BLUE_GEM) && (getRandom(100) < 30))
|
||||
{
|
||||
// check for too many gems on ground
|
||||
int counter = 0;
|
||||
|
3
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_newbie_done.html
vendored
Normal file
3
L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_newbie_done.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Newbie Helper:<br>
|
||||
I've taught you all I can, my child. Go now, out into the world! Live every day like it was your last! It very well might be!
|
||||
</body></html>
|
Reference in New Issue
Block a user