From 1062e7b26e3488d0e00254a6e54d50a68bed1c30 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 6 Aug 2017 01:40:10 +0000 Subject: [PATCH] Retail tutorial quest changes. --- .../ai/others/NewbieGuide/NewbieGuide.java | 5 +- .../quests/Q00255_Tutorial/30008-1.html | 5 + .../quests/Q00255_Tutorial/30008-2.html | 6 + .../quests/Q00255_Tutorial/30008-3.html} | 1 - .../{30009.html => 30009-1.html} | 0 .../quests/Q00255_Tutorial/30009-2.html | 6 + .../quests/Q00255_Tutorial/30009-3.html | 5 + .../quests/Q00255_Tutorial/30009-4.html | 4 + .../quests/Q00255_Tutorial/30009-5.html} | 4 +- .../quests/Q00255_Tutorial/30017-1.html | 5 + .../quests/Q00255_Tutorial/30017-2.html | 6 + .../quests/Q00255_Tutorial/30017-3.html} | 1 - .../{30019.html => 30019-1.html} | 0 .../quests/Q00255_Tutorial/30019-2.html | 6 + .../quests/Q00255_Tutorial/30019-3.html | 6 + .../quests/Q00255_Tutorial/30019-4.html | 4 + .../quests/Q00255_Tutorial/30019-5.html | 3 + .../quests/Q00255_Tutorial/30129-1.html | 5 + .../quests/Q00255_Tutorial/30129-2.html | 6 + .../quests/Q00255_Tutorial/30129-3.html} | 3 +- .../{30131.html => 30131-1.html} | 0 .../quests/Q00255_Tutorial/30131-2.html | 6 + .../quests/Q00255_Tutorial/30131-3.html | 6 + .../quests/Q00255_Tutorial/30131-4.html | 4 + .../quests/Q00255_Tutorial/30131-5.html | 3 + .../quests/Q00255_Tutorial/30370-1.html | 5 + .../quests/Q00255_Tutorial/30370-2.html | 6 + .../quests/Q00255_Tutorial/30370-3.html | 3 + .../{30400.html => 30400-1.html} | 0 .../quests/Q00255_Tutorial/30400-2.html | 6 + .../quests/Q00255_Tutorial/30400-3.html | 6 + .../quests/Q00255_Tutorial/30400-4.html | 4 + .../quests/Q00255_Tutorial/30400-5.html | 3 + .../quests/Q00255_Tutorial/30528-1.html | 5 + .../quests/Q00255_Tutorial/30528-2.html | 6 + .../quests/Q00255_Tutorial/30528-3.html} | 3 +- .../{30530.html => 30530-1.html} | 0 .../quests/Q00255_Tutorial/30530-2.html | 6 + .../quests/Q00255_Tutorial/30530-3.html | 6 + .../quests/Q00255_Tutorial/30530-4.html | 4 + .../quests/Q00255_Tutorial/30530-5.html | 3 + .../quests/Q00255_Tutorial/30573-1.html | 5 + .../quests/Q00255_Tutorial/30573-2.html | 6 + .../quests/Q00255_Tutorial/30573-3.html} | 3 +- .../{30575.html => 30575-1.html} | 0 .../quests/Q00255_Tutorial/30575-2.html | 6 + .../quests/Q00255_Tutorial/30575-3.html | 6 + .../quests/Q00255_Tutorial/30575-4.html | 4 + .../quests/Q00255_Tutorial/30575-5.html | 3 + .../Q00255_Tutorial/Q00255_Tutorial.java | 218 +++++++++++++----- .../quests/Q00255_Tutorial/tutorial_02.html | 2 +- .../quests/Q00255_Tutorial/tutorial_03.html | 6 + .../quests/Q00255_Tutorial/tutorial_04.html | 6 + .../Q00255_Tutorial/tutorial_05_fighter.html | 6 + .../tutorial_05_fighter_back.html | 5 + .../Q00255_Tutorial/tutorial_05_mystic.html | 8 + .../tutorial_05_mystic_back.html | 7 + .../tutorial_05_mystic_orc.html | 9 + .../tutorial_05_mystic_orc_back.html | 7 + .../{tutorial_11.html => tutorial_06.html} | 2 +- .../quests/Q00255_Tutorial/tutorial_09.html | 5 - .../quests/Q00255_Tutorial/tutorial_09t.html | 5 - .../quests/Q00255_Tutorial/tutorial_15.html | 6 - .../gameserver/network/NpcStringId.java | 6 +- 64 files changed, 402 insertions(+), 95 deletions(-) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-2.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30008.htm => scripts/quests/Q00255_Tutorial/30008-3.html} (72%) rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30009.html => 30009-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-4.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30400.htm => scripts/quests/Q00255_Tutorial/30009-5.html} (61%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-2.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30017.htm => scripts/quests/Q00255_Tutorial/30017-3.html} (72%) rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30019.html => 30019-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-4.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-5.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-2.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30129.htm => scripts/quests/Q00255_Tutorial/30129-3.html} (62%) rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30131.html => 30131-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-4.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-5.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-3.html rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30400.html => 30400-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-4.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-5.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-2.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30528.htm => scripts/quests/Q00255_Tutorial/30528-3.html} (61%) rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30530.html => 30530-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-4.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-5.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-1.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-2.html rename L2J_Mobius_Classic/dist/game/data/{html/default/30573.htm => scripts/quests/Q00255_Tutorial/30573-3.html} (63%) rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{30575.html => 30575-1.html} (100%) create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-2.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-3.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-4.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-5.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_03.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_04.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter_back.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_back.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc.html create mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc_back.html rename L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/{tutorial_11.html => tutorial_06.html} (79%) delete mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09.html delete mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09t.html delete mode 100644 L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_15.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/ai/others/NewbieGuide/NewbieGuide.java b/L2J_Mobius_Classic/dist/game/data/scripts/ai/others/NewbieGuide/NewbieGuide.java index 0f25a92a61..cade7d520f 100644 --- a/L2J_Mobius_Classic/dist/game/data/scripts/ai/others/NewbieGuide/NewbieGuide.java +++ b/L2J_Mobius_Classic/dist/game/data/scripts/ai/others/NewbieGuide/NewbieGuide.java @@ -46,7 +46,6 @@ public class NewbieGuide extends AbstractNpcAI private final static ItemHolder SPIRITSHOT_REWARD = new ItemHolder(5790, 100); // Other private final static String TUTORIAL_QUEST = "Q00255_Tutorial"; - private final static String TUTORIAL_SHOT_VAR = "TUTORIAL_SHOT_REWARDED"; private final static String SUPPORT_MAGIC_STRING = ""; private NewbieGuide() @@ -90,9 +89,9 @@ public class NewbieGuide extends AbstractNpcAI 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)) + if ((qs != null) && !Config.DISABLE_TUTORIAL && qs.isMemoState(5)) { - player.getVariables().set(TUTORIAL_SHOT_VAR, true); + qs.setMemoState(6); if (player.isMageClass() && (player.getRace() != Race.ORC)) { giveItems(player, SPIRITSHOT_REWARD); diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-1.html new file mode 100644 index 0000000000..ed96738681 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-1.html @@ -0,0 +1,5 @@ +Grand Master Roien:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-2.html new file mode 100644 index 0000000000..6dad188a42 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-2.html @@ -0,0 +1,6 @@ +Grand Master Roien:
+Welcome. I am Grand Master Roien, of Sedrick's Training Hall. This school was established by the renowned Paladin Sir Sedrick, famous for producing many competent Fighters..
+Did you get the Recommendation from the Newbie helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30008.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-3.html similarity index 72% rename from L2J_Mobius_Classic/dist/game/data/html/default/30008.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-3.html index 50bed34d7f..026173d8c6 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30008.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30008-3.html @@ -1,4 +1,3 @@ Grand Master Roien:
Go to Talking Island Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
- \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-2.html new file mode 100644 index 0000000000..28dda67e7c --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this recommendation to Grand Master Roien over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-3.html new file mode 100644 index 0000000000..45890a42ec --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-3.html @@ -0,0 +1,5 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
Take this recommendation to Grand Master Roien over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-4.html new file mode 100644 index 0000000000..0347bb4ab2 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Grand Master Roien over there. He's eager to meet you. He has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30400.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-5.html similarity index 61% rename from L2J_Mobius_Classic/dist/game/data/html/default/30400.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-5.html index 87f45ac49d..6d038fc2ab 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30400.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30009-5.html @@ -1,3 +1,3 @@ -Newbie Helper:
-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!
+Newbie Helper:
+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! \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-1.html new file mode 100644 index 0000000000..4cbf003e2f --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-1.html @@ -0,0 +1,5 @@ +Grand Magister Gallint:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-2.html new file mode 100644 index 0000000000..ba61eb99f9 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-2.html @@ -0,0 +1,6 @@ +Grand Magister Gallint:
+Welcome to my school of wizardry. It was founded by the famed alchemist Einhovant, and many excellent Wizards have been trained here.
+Have you brought a letter of Recommendation from the Newbie Helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30017.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-3.html similarity index 72% rename from L2J_Mobius_Classic/dist/game/data/html/default/30017.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-3.html index ea89bb1fce..4e2c34f419 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30017.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30017-3.html @@ -1,4 +1,3 @@ Grand Magister Gallint:
Go to Talking Island Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
- \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-2.html new file mode 100644 index 0000000000..959480a7f3 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good!
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this letter of Recommendation to Grand Magister Gallint over there. He's been looking forward to meeting you. He has something for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-3.html new file mode 100644 index 0000000000..872c08720e --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-3.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good!
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
+Take this letter of Recommendation to Grand Magister Gallint over there. He's been looking forward to meeting you. He has something for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-4.html new file mode 100644 index 0000000000..90672f9c62 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Grand Magister Gallint over there. He's been waiting for you. He has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-5.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-5.html new file mode 100644 index 0000000000..6d038fc2ab --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30019-5.html @@ -0,0 +1,3 @@ +Newbie Helper:
+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! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-1.html new file mode 100644 index 0000000000..cd6bd0beef --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-1.html @@ -0,0 +1,5 @@ +Dark Elf Chief Mithraell:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-2.html new file mode 100644 index 0000000000..fb8e1581c3 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-2.html @@ -0,0 +1,6 @@ +Hierarch Mitraell:
+I, the Hierarch of all Dark Elves offer you the blessings of the abyss. I am the prisoner of a magic seal, barely able to function, but I still manage to teach my students.
+Have you brought the Blood of Mitraell from the Newbie Helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30129.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-3.html similarity index 62% rename from L2J_Mobius_Classic/dist/game/data/html/default/30129.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-3.html index e8e28dc28e..befcb8b0fd 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30129.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30129-3.html @@ -1,4 +1,3 @@ Dark Elf Chief Mithraell:
-Go to Dark Elf Village and meet the Newbie Guide. He will give you much important advice.
- +Go to Dark Elf Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
\ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-2.html new file mode 100644 index 0000000000..830b4d0f1f --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this Blood of Mitraell to Dark Elf Chief Mithraell over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-3.html new file mode 100644 index 0000000000..fb33e3cfef --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-3.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
+Take this Blood of Mitraell to Dark Elf Chief Mithraell over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-4.html new file mode 100644 index 0000000000..0fe9ac075a --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Mitraell over there. He has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-5.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-5.html new file mode 100644 index 0000000000..6d038fc2ab --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30131-5.html @@ -0,0 +1,3 @@ +Newbie Helper:
+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! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-1.html new file mode 100644 index 0000000000..c53118ac8c --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-1.html @@ -0,0 +1,5 @@ +Nerupa:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-2.html new file mode 100644 index 0000000000..ea1a41b0ee --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-2.html @@ -0,0 +1,6 @@ +Nerupa:
+I am a proud warrior of the Arachne tribe. Long ago, I made a pact with the Mother Tree, and have protected this forest and young Elves for centuries.
+Have you brought a Leaf of the Mother Tree from the Newbie Helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-3.html new file mode 100644 index 0000000000..c1765254d9 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30370-3.html @@ -0,0 +1,3 @@ +Nerupa:
+Go to Elven Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-2.html new file mode 100644 index 0000000000..9be2c5b933 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this Leaf of the Mother Tree to Nerupa over there. She has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-3.html new file mode 100644 index 0000000000..8e4be778c3 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-3.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
+Take this Leaf of the Mother Tree to Nerupa over there. She has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-4.html new file mode 100644 index 0000000000..bf7a75a606 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Nerupa over there. She has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-5.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-5.html new file mode 100644 index 0000000000..6d038fc2ab --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30400-5.html @@ -0,0 +1,3 @@ +Newbie Helper:
+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! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-1.html new file mode 100644 index 0000000000..dde995f7a4 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-1.html @@ -0,0 +1,5 @@ +Foreman Laferon:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-2.html new file mode 100644 index 0000000000..e04bfa6d8d --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-2.html @@ -0,0 +1,6 @@ +Foreman Laferon:
+Pleased to meet you, my young friend! I'm foreman of this strip mine, and have trained many fine young Dwarves here.
+Have you gotten a mining license from the Newbie Helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30528.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-3.html similarity index 61% rename from L2J_Mobius_Classic/dist/game/data/html/default/30528.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-3.html index 9e3f0a2e53..21bb544974 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30528.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30528-3.html @@ -1,4 +1,3 @@ Foreman Laferon:
-Go to Dwarven Village and meet the Newbie Guide. He will give you much important advice.
- +Go to Dwarven Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
\ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-2.html new file mode 100644 index 0000000000..a30d7f2819 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this mining license to Foreman Laferon over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-3.html new file mode 100644 index 0000000000..0de42924e7 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-3.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
+Take this mining license to Foreman Laferon over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-4.html new file mode 100644 index 0000000000..fb52f6d032 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Foreman Laferon over there. He has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-5.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-5.html new file mode 100644 index 0000000000..6d038fc2ab --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30530-5.html @@ -0,0 +1,3 @@ +Newbie Helper:
+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! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-1.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-1.html new file mode 100644 index 0000000000..cedc9f595f --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-1.html @@ -0,0 +1,5 @@ +Flame Guardian Vulkus:
+First, you must learn the basic methods of control in the game. Let me introduce my little friend, the Newbie Helper.
+Follow his instructions and you'll quickly learn things that you'll need in the game.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-2.html new file mode 100644 index 0000000000..181f7e971e --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-2.html @@ -0,0 +1,6 @@ +Flame Guardian Vulkus:
+Tejakar Oroka! I am Flame Guardian Vulkus! My role is to teach the fighting spirit of Pa'agrio to young orcs!
+Did you get the Voucher of Flame from the Newbie Helper?
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/html/default/30573.htm b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-3.html similarity index 63% rename from L2J_Mobius_Classic/dist/game/data/html/default/30573.htm rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-3.html index 59323ffed2..c74cfdec67 100644 --- a/L2J_Mobius_Classic/dist/game/data/html/default/30573.htm +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30573-3.html @@ -1,4 +1,3 @@ Flame Guardian Vulkus:
-Go to Orc Village and meet the Newbie Guide. He will give you much important advice.
- +Go to Orc Village and meet the Newbie Guide. He will give you much important advice. He also has a gift for you.
\ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-1.html similarity index 100% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-1.html diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-2.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-2.html new file mode 100644 index 0000000000..34521f2ead --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-2.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As promised, I'll give you a gift. This is a soulshot. It will make your attacks much stronger. Take heed, it only works once, so use it wisely.
+
+Take this Voucher of Flame to Flame Guardian Vulkus over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-3.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-3.html new file mode 100644 index 0000000000..370b75c72c --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-3.html @@ -0,0 +1,6 @@ +Newbie Helper:
+You got a blue gem! Good work.
+As I promised, I'll give you a gift. This is called a spiritshot. Spiritshots make your magical attacks much stronger. However, it only works once, so you should save it for the right moment.
+
+Take this Voucher of Flame to Flame Guardian Vulkus over there. He has a gift for you. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-4.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-4.html new file mode 100644 index 0000000000..b3af82e89c --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-4.html @@ -0,0 +1,4 @@ +Newbie Helper:
+Speak with Flame Guardian Vulkus over there. He has a gift for you.
+May the goddess of luck be with you! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-5.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-5.html new file mode 100644 index 0000000000..6d038fc2ab --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/30575-5.html @@ -0,0 +1,3 @@ +Newbie Helper:
+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! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java index 84355663ec..b64beedfd7 100644 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java @@ -16,7 +16,9 @@ */ package quests.Q00255_Tutorial; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import com.l2jmobius.Config; @@ -39,6 +41,8 @@ import com.l2jmobius.gameserver.model.holders.ItemHolder; import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance; import com.l2jmobius.gameserver.model.quest.Quest; import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.network.NpcStringId; +import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; import com.l2jmobius.gameserver.network.serverpackets.PlaySound; import com.l2jmobius.gameserver.network.serverpackets.TutorialCloseHtml; import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml; @@ -51,12 +55,24 @@ import com.l2jmobius.gameserver.network.serverpackets.TutorialShowQuestionMark; public class Q00255_Tutorial extends Quest { // NPCs - private final static int STARTING_HELPER_HF = 30009; - private final static int STARTING_HELPER_HM = 30019; - private final static int STARTING_HELPER_EL = 30400; - private final static int STARTING_HELPER_DE = 30131; - private final static int STARTING_HELPER_OR = 30575; - private final static int STARTING_HELPER_DW = 30530; + private final static List NEWBIE_HELPERS = new ArrayList<>(); + { + NEWBIE_HELPERS.add(30009); // human fighter + NEWBIE_HELPERS.add(30019); // human mystic + NEWBIE_HELPERS.add(30400); // elf + NEWBIE_HELPERS.add(30131); // dark elf + NEWBIE_HELPERS.add(30575); // orc + NEWBIE_HELPERS.add(30530); // dwarf + } + private final static List SUPERVISORS = new ArrayList<>(); + { + SUPERVISORS.add(30008); // human fighter + SUPERVISORS.add(30017); // human mystic + SUPERVISORS.add(30370); // elf + SUPERVISORS.add(30129); // dark elf + SUPERVISORS.add(30573); // orc + SUPERVISORS.add(30528); // dwarf + } // Monsters private final static int[] GREMLINS = { @@ -105,13 +121,14 @@ 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 final static String TUTORIAL_SHOT_VAR = "TUTORIAL_SHOT_REWARDED"; public Q00255_Tutorial() { 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); + addTalkId(NEWBIE_HELPERS); + addTalkId(SUPERVISORS); + addFirstTalkId(NEWBIE_HELPERS); + addFirstTalkId(SUPERVISORS); addKillId(GREMLINS); registerQuestItems(BLUE_GEM); } @@ -128,15 +145,9 @@ public class Q00255_Tutorial extends Quest String htmltext = null; switch (event) { - case "tutorial_02.html": - { - playTutorialVoice(player, "tutorial_voice_003"); - showTutorialHtml(player, event); - break; - } case "start_newbie_tutorial": { - if (!qs.isCompleted()) + if (qs.getMemoState() < 4) { qs.startQuest(); qs.setMemoState(1); @@ -145,15 +156,44 @@ public class Q00255_Tutorial extends Quest } break; } - case "goto_newbie_guide": + case "tutorial_02.html": + case "tutorial_03.html": { - if (qs.getMemoState() == 2) + if (qs.isMemoState(1)) { - qs.setMemoState(3); + showTutorialHtml(player, event); + } + break; + } + case "question_mark_1": + { + if (qs.isMemoState(1)) + { + player.sendPacket(new TutorialShowQuestionMark(1, 0)); + player.sendPacket(TutorialCloseHtml.STATIC_PACKET); + player.clearHtmlActions(HtmlActionScope.TUTORIAL_HTML); + } + break; + } + case "reward_2": + { + if (qs.isMemoState(4)) + { + qs.setMemoState(5); + 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"); + } + htmltext = (npc != null ? npc.getId() : player.getTarget().getId()) + "-3.html"; final int classId = player.getClassId().getId(); - addRadar(player, HELPER_LOCATION.get(classId).getX(), HELPER_LOCATION.get(classId).getY(), HELPER_LOCATION.get(classId).getZ()); + addRadar(player, COMPLETE_LOCATION.get(classId).getX(), COMPLETE_LOCATION.get(classId).getY(), COMPLETE_LOCATION.get(classId).getZ()); playSound(player, "ItemSound.quest_tutorial"); - htmltext = "tutorial_11.html"; } break; } @@ -168,53 +208,104 @@ public class Q00255_Tutorial extends Quest } @Override - public String onTalk(L2Npc npc, L2PcInstance player) + public String onFirstTalk(L2Npc npc, L2PcInstance player) { final QuestState qs = getQuestState(player, false); if (qs != null) { - if (!qs.isCompleted() && (qs.getMemoState() > 1) && hasQuestItems(player, BLUE_GEM)) + // start newbie helpers + if (NEWBIE_HELPERS.contains(npc.getId())) { - player.getVariables().set(TUTORIAL_SHOT_VAR, false); - qs.exitQuest(false, false); // finish here! - if (player.isMageClass() && (player.getRace() != Race.ORC)) + if (hasQuestItems(player, BLUE_GEM)) { - giveItems(player, SPIRITSHOT_REWARD); - playTutorialVoice(player, "tutorial_voice_027"); + qs.setMemoState(3); } - else + switch (qs.getMemoState()) { - giveItems(player, SOULSHOT_REWARD); - playTutorialVoice(player, "tutorial_voice_026"); + case 0: + case 1: + { + player.sendPacket(TutorialCloseHtml.STATIC_PACKET); + player.clearHtmlActions(HtmlActionScope.TUTORIAL_HTML); + qs.setMemoState(2); + if (!player.isMageClass()) + { + return "tutorial_05_fighter.html"; + } + else if (player.getRace() == Race.ORC) + { + return "tutorial_05_mystic_orc.html"; + } + return "tutorial_05_mystic.html"; + } + case 2: + { + if (!player.isMageClass()) + { + return "tutorial_05_fighter_back.html"; + } + else if (player.getRace() == Race.ORC) + { + return "tutorial_05_mystic_orc_back.html"; + } + return "tutorial_05_mystic_back.html"; + } + case 3: + { + player.sendPacket(TutorialCloseHtml.STATIC_PACKET); + player.clearHtmlActions(HtmlActionScope.TUTORIAL_HTML); + qs.setMemoState(4); + takeItems(player, BLUE_GEM, -1); + if (player.isMageClass() && (player.getRace() != Race.ORC)) + { + giveItems(player, SPIRITSHOT_REWARD); + playTutorialVoice(player, "tutorial_voice_027"); + return npc.getId() + "-3.html"; + } + giveItems(player, SOULSHOT_REWARD); + playTutorialVoice(player, "tutorial_voice_026"); + return npc.getId() + "-2.html"; + } + case 4: + { + return npc.getId() + "-4.html"; + } + case 5: + case 6: + { + return npc.getId() + "-5.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.isCompleted()) + // else supervisors + switch (qs.getMemoState()) { - return "tutorial_15.html"; + case 0: + case 1: + case 2: + case 3: + { + return npc.getId() + "-1.html"; + } + case 4: + { + return npc.getId() + "-2.html"; + } + case 5: + case 6: + { + return npc.getId() + "-3.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"; + return npc.getId() + "-1.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) && (getRandom(100) < 30)) + if ((qs != null) && qs.isMemoState(2) && !hasQuestItems(killer, BLUE_GEM) && (getRandom(100) < 30)) { // check for too many gems on ground int counter = 0; @@ -227,12 +318,6 @@ public class Q00255_Tutorial extends Quest } if (counter < 10) // do not drop if more than 10 { - if (qs.getMemoState() <= 1) - { - playSound(killer, "ItemSound.quest_tutorial"); - playTutorialVoice(killer, "tutorial_voice_011"); - showTutorialHtml(killer, "tutorial_09t.html"); - } npc.dropItem(killer, BLUE_GEM, 1); } } @@ -246,11 +331,9 @@ public class Q00255_Tutorial extends Quest { final L2PcInstance player = event.getActiveChar(); final QuestState qs = getQuestState(player, false); - if ((qs != null) && (qs.getMemoState() == 1)) + if ((qs != null) && (qs.getMemoState() == 2)) { - player.sendPacket(TutorialCloseHtml.STATIC_PACKET); - player.clearHtmlActions(HtmlActionScope.TUTORIAL_HTML); - qs.setMemoState(2); + qs.setMemoState(3); playSound(player, "ItemSound.quest_tutorial"); playTutorialVoice(player, "tutorial_voice_013"); player.sendPacket(new TutorialShowQuestionMark(1, 0)); @@ -264,7 +347,20 @@ public class Q00255_Tutorial extends Quest final QuestState qs = getQuestState(event.getActiveChar(), false); if ((qs != null) && (event.getMarkId() == 1)) // tutorial mark { - notifyEvent("goto_newbie_guide", null, event.getActiveChar()); + if (qs.isMemoState(1)) + { + showOnScreenMsg(event.getActiveChar(), NpcStringId.SPEAK_WITH_THE_NEWBIE_HELPER, ExShowScreenMessage.TOP_CENTER, 5000); + showTutorialHtml(event.getActiveChar(), "tutorial_04.html"); + 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()); + } + else if (qs.isMemoState(3)) + { + showOnScreenMsg(event.getActiveChar(), NpcStringId.SPEAK_WITH_THE_NEWBIE_HELPER, ExShowScreenMessage.TOP_CENTER, 5000); + showTutorialHtml(event.getActiveChar(), "tutorial_06.html"); + 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()); + } } } @@ -295,7 +391,7 @@ public class Q00255_Tutorial extends Quest } QuestState qs = getQuestState(player, true); - if ((qs != null) && !qs.isCompleted() && STARTING_VOICE_HTML.containsKey(player.getClassId().getId())) + if ((qs != null) && (qs.getMemoState() < 4) && STARTING_VOICE_HTML.containsKey(player.getClassId().getId())) { startQuestTimer("start_newbie_tutorial", 5000, null, player); } diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_02.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_02.html index adb4a3c9a0..c659a04fd3 100644 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_02.html +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_02.html @@ -1,5 +1,5 @@
[Movement]

Move your mouse cursor to the spot to which you want to move and left-click. Then, you will be moved to that location.
- + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_03.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_03.html new file mode 100644 index 0000000000..dfc9811889 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_03.html @@ -0,0 +1,6 @@ + +Are you sure you want to exit the tutorial regarding moving? +Once you exit, you will not be able to view this tutorial again.
+ + + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_04.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_04.html new file mode 100644 index 0000000000..f6a4b78432 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_04.html @@ -0,0 +1,6 @@ +
[Talk to the Newbie Helper]

+No go find the Newbie Helper.
+Move the mouse over the Newbie Helper's head and click the left button. The mouse will display a speech bubble, which you can click again to start a conversation.
+Use the radar on the top right corner to find the Newbie Helper.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter.html new file mode 100644 index 0000000000..44cb89f506 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter.html @@ -0,0 +1,6 @@ +Newbie Helper:
+Welcome! Are you ready for a mission? +Have you seen the gremlins around here? They've stolen the precious Blue Gemstone!
+You must recover it from them!
Place your cursor over a Gremlin and click the left button. The cursor will change to a sword. Click again to attack.
+Do this and you shall be well-rewarded. Good luck!
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter_back.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter_back.html new file mode 100644 index 0000000000..f220218fbb --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_fighter_back.html @@ -0,0 +1,5 @@ +Newbie Helper:
+Go and get a Blue Gemstone! Don't you remember? You've got to kill Gremlins!
+Move your cursor over a Gremlin and click the left mouse button. This will transform the cursor into the shape of a knife. Click the left mouse button again to attack.
+Do this and you shall be well-rewarded. Good luck!
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic.html new file mode 100644 index 0000000000..75e7b80f64 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic.html @@ -0,0 +1,8 @@ +Newbie Helper:
+Welcome! Are you ready for a mission?
+Have you seen the Gremlins around here? They've stolen the precious Blue Gemstone!
+You must recover it from them!
+I'll tell you again how to kill the Gremlins. Place your cursor over a Gremlin and click the left button. The cursor will change to a sword. Click the F2 key to attack with Wind Strike magic.
+

+Complete this mission and I'll reward you with useful items. Good luck! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_back.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_back.html new file mode 100644 index 0000000000..95633d02ad --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_back.html @@ -0,0 +1,7 @@ +Newbie Helper:
+Did you forget what to do? Get a blue gem! You must kill Gremlins to get a blue gem.
+Kill, kill, kill the Gremlins! Put your cursor over a Gremlin and click the left mouse button. It turns into a knife. Press the F2 key to attack using wind strike magic.
+ +

+Do it quick and I'll give you something you'll need later. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc.html new file mode 100644 index 0000000000..8209052a09 --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc.html @@ -0,0 +1,9 @@ +Newbie Helper:
+Welcome! Are you ready for a mission?
+Have you seen the Gremlins around here? They've stolen the precious Blue Gemstone!
+You must recover it from them!
+Place your cursor over a Gremlin and click the left button. The cursor will change to a sword. Click the left button again to attack.
+Before striking, to enhance the strength of your attack, use Soul Cry magic by clicking the F2 key. Click it again to turn off the magic. +

+You shall be well-rewarded for your efforts. Good luck. + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc_back.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc_back.html new file mode 100644 index 0000000000..3cdb206b5b --- /dev/null +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_05_mystic_orc_back.html @@ -0,0 +1,7 @@ +Newbie Helper:
+Go and get a blue gem! Don't you remember? You've got to kill Gremlins!
+Move your cursor over a Gremlin and click the left mouse button. This will transform the cursor into the shape of a knife. Click the left mouse button again to attack.
+Use Soul Cry magic before attacking. This will improve your chances greatly. To activate Soul Cry magic, press the F2 key, and again to de-activate it. +

+Do this and you shall be well-rewarded. Good luck! + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_11.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_06.html similarity index 79% rename from L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_11.html rename to L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_06.html index 3b20e47054..357aba7452 100644 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_11.html +++ b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_06.html @@ -1,5 +1,5 @@ Oh, you found the Blue Gemstone. Good job!
Now, return and have a conversation with the newbie helper.
- + \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09.html deleted file mode 100644 index df62ce305a..0000000000 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09.html +++ /dev/null @@ -1,5 +0,0 @@ - -
[Picking Up Items]

When you defeat monsters, they drop their items on the ground. Move your cursor over to the dropped item, and the cursor will change its shape to a hand-shaped icon, indicating that the item may be picked up. Left-click on the item to pick it up.
-
There is another way to pick up an item. Press the F4 key and you can automatically pick up nearby items. Currently, the fourth slot on the shortcut bar is registered with the pickup action and therefore, when you press the F4 key, that action is activated.

- - \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09t.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09t.html deleted file mode 100644 index 8988f3d2cc..0000000000 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_09t.html +++ /dev/null @@ -1,5 +0,0 @@ - -
[Picking Up Items]

When you defeat monsters, they drop their items on the ground. Move your cursor over to the dropped item, and the cursor will change its shape to a hand-shaped icon, indicating that the item may be picked up. Left-click on the item to pick it up.
-
There is another way to pick up an item. Press the F4 key and you can automatically pick up nearby items. Currently, the fourth slot on the shortcut bar is registered with the pickup action and therefore, when you press the F4 key, that action is activated.

- - \ No newline at end of file diff --git a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_15.html b/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_15.html deleted file mode 100644 index 5cf0b0930d..0000000000 --- a/L2J_Mobius_Classic/dist/game/data/scripts/quests/Q00255_Tutorial/tutorial_15.html +++ /dev/null @@ -1,6 +0,0 @@ - -
[View Map]

-To see the map during the game, click on the map-shaped icon on the bottom right screen.
-
When viewing the map, the newbie guide's location is marked with a red flag.
- - \ No newline at end of file diff --git a/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/network/NpcStringId.java b/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/network/NpcStringId.java index 762087bd41..2df9dce7dd 100644 --- a/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/network/NpcStringId.java +++ b/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/network/NpcStringId.java @@ -12083,7 +12083,7 @@ public final class NpcStringId @ClientString(id = 536505, message = "Use the Ye Sagira Teleport Device shining with a red shimmer to go to Exploration Area 5") public static NpcStringId USE_THE_YE_SAGIRA_TELEPORT_DEVICE_SHINING_WITH_A_RED_SHIMMER_TO_GO_TO_EXPLORATION_AREA_5; - + @ClientString(id = 536601, message = "Ruins Status Update (Lv. 16-25)") public static NpcStringId RUINS_STATUS_UPDATE_LV_16_25; @@ -30387,8 +30387,8 @@ public final class NpcStringId @ClientString(id = 1802763, message = "You think this will be enough to defeat me? Not a chance!") public static NpcStringId YOU_THINK_THIS_WILL_BE_ENOUGH_TO_DEFEAT_ME_NOT_A_CHANCE; - @ClientString(id = 1802764, message = "STABILIZING BLAZING SWAMP") - public static NpcStringId STABILIZING_BLAZING_SWAMP; + @ClientString(id = 1802764, message = "Speak with the Newbie Helper.") + public static NpcStringId SPEAK_WITH_THE_NEWBIE_HELPER; @ClientString(id = 1802765, message = "Defense Reduction") public static NpcStringId DEFENSE_REDUCTION;