diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/html/default/34335.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/html/default/34335.htm new file mode 100644 index 0000000000..28c979382b --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/html/default/34335.htm @@ -0,0 +1,6 @@ +First Vanguard Rider Sabitus:
+Don't lose courage.
+You and your peers are the hope of all Orcs.
+Your spear and your beast are a proof of your strength.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java index ba3856ab0d..9bfdd1b59d 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q00255_Tutorial/Q00255_Tutorial.java @@ -441,6 +441,12 @@ public class Q00255_Tutorial extends Quest return; } + // Vanguard. + if (CategoryData.getInstance().isInCategory(CategoryType.VANGUARD_ALL_CLASS, player.getClassId().getId())) + { + return; + } + final QuestState qs = getQuestState(player, true); if ((qs != null) && (qs.getMemoState() < 4) && STARTING_VOICE_HTML.containsKey(player.getClassId().getId())) { diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/30602-10.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/30602-10.htm new file mode 100644 index 0000000000..b6af2e3a6f --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/30602-10.htm @@ -0,0 +1,9 @@ + +Guardian Tanai:
+Have you completed your basic training?
+I see that you're really excited about joining the ranks of Orc Lancers.
+First of all, let me tell you about the Blazing Beast skill. You can use it if you have 500 or more Beast Points (BP). Activating the skill costs 100 BP.
+The effect is active while you have BP.
+All Orc Lancers must know it, so don't forget.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-02.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-02.htm new file mode 100644 index 0000000000..5571631fa0 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-02.htm @@ -0,0 +1,6 @@ + +First Vanguard Rider Sabitus:
+There you are. You have a new path open before you. Will you become the Orc Lancer?
+Are you ready to become a beacon of hope for our people?
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-03.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-03.htm new file mode 100644 index 0000000000..fab6d6dd3c --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-03.htm @@ -0,0 +1,6 @@ + +First Vanguard Rider Sabitus:
+Good! I see that you're striving for excellence. It will really help you on the Orc Lancer path.
+But I think you don't know yet what we have in store for you.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-04.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-04.htm new file mode 100644 index 0000000000..49da9df082 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-04.htm @@ -0,0 +1,7 @@ + +First Vanguard Rider Sabitus:
+The problem? Bah!
+You look like a very resourceful young Orc, so I'm sure you'll find a way out of any problem. Or you'll perish along the path you've chosen. Easy, isn't it?
+Well, no more idle chatter, let's get down to business. I'm going to teach you the combat basics.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-05.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-05.htm new file mode 100644 index 0000000000..ce14449fdb --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-05.htm @@ -0,0 +1,7 @@ + +First Vanguard Rider Sabitus:
+Excellent! So far, you're doing well.
+Well, any battle is the exchange of attacks.
+Look around you. Do you see those Training Dummies ? They are here to help you with your training.
+Try attacking them first. + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-06.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-06.htm new file mode 100644 index 0000000000..b5ca25257b --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-06.htm @@ -0,0 +1,8 @@ + +First Vanguard Rider Sabitus:
+Good! But you're lacking something.
+You've attacked without Soulshots equipped.
+They can make your blows even more powerful. Don't ever forget that!
+Always equip Soulshots if possible.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-07.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-07.htm new file mode 100644 index 0000000000..014d224eec --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-07.htm @@ -0,0 +1,8 @@ + +First Vanguard Rider Sabitus:
+The main thing about Soulshots is to have them always at your disposal.
+You don't have any in your inventory, right? Then I'll give you some.
+Soulshots are equipped automatically when you start using a weapon.
+Also, you can come across Spiritshots - these are like Soulshots but they increase your magic powers instead of fighting abilities.
+Well, why don't you test these Soulshots yourself? Use them to attack Training Dummies. + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-08.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-08.htm new file mode 100644 index 0000000000..9bd31101a6 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-08.htm @@ -0,0 +1,5 @@ +First Vanguard Rider Sabitus:
+Have you memorized the combat basics?
+I can't stress enough how important it is.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-09.htm b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-09.htm new file mode 100644 index 0000000000..bda2c783c4 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/34335-09.htm @@ -0,0 +1,10 @@ +First Vanguard Rider Sabitus:
+That's all I have to teach you.
+Oh, I've forgotten to tell you about Beast Points! So, you will accumulate them with time.
+But let me show you how it looks in practice. See, I've recharged your BP reserves. Now open your skill window and use the Blazing Beast skill.
+When it is active, your moving skills become more efficient, and you can attack nearby enemies automatically.
+Beast Points are very important. Their bar is right below your HP, always keep an eye on it.
+And now go to Guardian Tanai
+.He has a lot to teach you.
+ + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/Q10951_NewFlameOfOrcs.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/Q10951_NewFlameOfOrcs.java new file mode 100644 index 0000000000..5042d4dcdb --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/Q10951_NewFlameOfOrcs.java @@ -0,0 +1,248 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package quests.Q10951_NewFlameOfOrcs; + +import org.l2jmobius.Config; +import org.l2jmobius.gameserver.data.xml.CategoryData; +import org.l2jmobius.gameserver.enums.CategoryType; +import org.l2jmobius.gameserver.model.actor.Npc; +import org.l2jmobius.gameserver.model.actor.Player; +import org.l2jmobius.gameserver.model.events.EventType; +import org.l2jmobius.gameserver.model.events.ListenerRegisterType; +import org.l2jmobius.gameserver.model.events.annotations.RegisterEvent; +import org.l2jmobius.gameserver.model.events.annotations.RegisterType; +import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerLogin; +import org.l2jmobius.gameserver.model.holders.ItemHolder; +import org.l2jmobius.gameserver.model.quest.Quest; +import org.l2jmobius.gameserver.model.quest.QuestState; +import org.l2jmobius.gameserver.model.quest.State; +import org.l2jmobius.gameserver.network.NpcStringId; +import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +/** + * New Flame Of Orcs (10951) + * @author A.Yurechko + */ +public class Q10951_NewFlameOfOrcs extends Quest +{ + // NPCs + private static final int SABITUS = 34335; + private static final int TANAI = 30602; + // Monsters + private static final int TRAINING_DUMMY = 22183; + // Items + private static final ItemHolder SOULSHOT_REWARD = new ItemHolder(91927, 400); + private static final ItemHolder SOE_REWARD = new ItemHolder(10650, 5); + private static final ItemHolder WW_POTION_REWARD = new ItemHolder(49036, 5); + private static final ItemHolder HP_POTION_REWARD = new ItemHolder(91912, 50); + // Misc + private static final String REWARD_CHECK_VAR1 = "Q10951_REWARD_1"; + private static final String REWARD_CHECK_VAR2 = "Q10951_REWARD_2"; + private static final int MIN_LEVEL = 1; + private static final int MAX_LEVEL = 2; + + public Q10951_NewFlameOfOrcs() + { + super(10951); + addStartNpc(SABITUS); + addTalkId(SABITUS, TANAI); + addKillId(TRAINING_DUMMY); + addCondMinLevel(MIN_LEVEL, "no_lvl.html"); + addCondMaxLevel(MAX_LEVEL, "no_lvl.html"); + setQuestNameNpcStringId(NpcStringId.LV_1_2_NEW_FLAME_OF_ORCS); + } + + @Override + public String onAdvEvent(String event, Npc npc, Player player) + { + String htmltext = null; + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return htmltext; + } + + switch (event) + { + case "34335-02.htm": + case "34335-03.htm": + case "34335-04.htm": + { + htmltext = event; + break; + } + case "34335-05.htm": + { + qs.startQuest(); + htmltext = event; + break; + } + case "34335-07.htm": + { + if (qs.isCond(2)) + { + qs.setCond(3); + if (!player.getVariables().getBoolean(REWARD_CHECK_VAR1, false)) + { + player.getVariables().set(REWARD_CHECK_VAR1, true); + giveItems(player, SOULSHOT_REWARD); + } + } + htmltext = event; + break; + } + case "34335-09.htm": + { + if (qs.isCond(4)) + { + qs.setCond(5); + } + htmltext = event; + break; + } + case "30602-00.htm": + { + if (qs.isCond(5)) + { + player.getVariables().set(REWARD_CHECK_VAR2, true); + giveItems(player, SOE_REWARD); + giveItems(player, WW_POTION_REWARD); + giveItems(player, HP_POTION_REWARD); + giveItems(player, SOULSHOT_REWARD); + + addExpAndSp(player, 224, 4); + giveStoryBuffReward(npc, player); + + qs.exitQuest(false, true); + // TODO: Return Q10952 start htm + htmltext = event; + } + break; + } + case "TELEPORT_TO_TANAI": + { + player.teleToLocation(-45079, -113511, -208); + break; + } + } + return htmltext; + } + + @Override + public String onTalk(Npc npc, Player player) + { + if (!CategoryData.getInstance().isInCategory(CategoryType.VANGUARD_ALL_CLASS, player.getClassId().getId())) + { + return "no_race.html"; + } + + final QuestState qs = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + + switch (qs.getState()) + { + case State.CREATED: + { + htmltext = "34335-02.htm"; + break; + } + case State.STARTED: + { + switch (qs.getCond()) + { + case 1: + { + htmltext = "no_dummy-01.html"; + break; + } + case 2: + { + htmltext = "34335-06.htm"; + break; + } + case 3: + { + htmltext = "no_dummy-02.html"; + break; + } + case 4: + { + htmltext = "34335-08.htm"; + break; + } + case 5: + { + htmltext = "30602-10.htm"; + break; + } + } + break; + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(player); + break; + } + } + return htmltext; + } + + @Override + public String onKill(Npc npc, Player killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); + if (qs != null) + { + if (qs.isCond(1)) + { + qs.setCond(2, true); + } + else if (qs.isCond(3)) + { + qs.setCond(4, true); + } + } + return super.onKill(npc, killer, isSummon); + } + + @RegisterEvent(EventType.ON_PLAYER_LOGIN) + @RegisterType(ListenerRegisterType.GLOBAL_PLAYERS) + public void onPlayerLogin(OnPlayerLogin event) + { + if (Config.DISABLE_TUTORIAL) + { + return; + } + + final Player player = event.getPlayer(); + if (player == null) + { + return; + } + + if (!CategoryData.getInstance().isInCategory(CategoryType.VANGUARD_ALL_CLASS, player.getClassId().getId())) + { + return; + } + + final QuestState qs = getQuestState(player, false); + if ((qs == null) || (player.getLevel() < 20)) + { + showOnScreenMsg(player, NpcStringId.TALK_TO_FIRST_VANGUARD_RIDER_SABITUS, ExShowScreenMessage.TOP_CENTER, 10000, player.getName()); + } + } +} diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-01.html b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-01.html new file mode 100644 index 0000000000..e7c67f8294 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-01.html @@ -0,0 +1,4 @@ +First Vanguard Rider Sabitus:
+Forgot how to attack? Doesn't look like it. You know how to do it, right? We must go through the basics even if it seems dull to you.
+Look around you. Do you see thoseTraining Dummies? They are here to help you with your training.
Try attacking them first. + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-02.html b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-02.html new file mode 100644 index 0000000000..2bd9e29041 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_dummy-02.html @@ -0,0 +1,4 @@ +First Vanguard Rider Sabitus:
+It's time to test these Soulshots.
+Use them to attack Training Dummies. + \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_lvl.html b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_lvl.html new file mode 100644 index 0000000000..20044145e1 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_lvl.html @@ -0,0 +1,3 @@ +First Vanguard Rider Sabitus:
+You do not meet the requirements of the quest (Quest is only available to 1-2 levels). + diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_race.html b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_race.html new file mode 100644 index 0000000000..37f2c84805 --- /dev/null +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/Q10951_NewFlameOfOrcs/no_race.html @@ -0,0 +1,4 @@ +First Vanguard Rider Sabitus:
+I bear the title of the First Vanguard Rider. My duty is to show young Orcs the new path of Orc Lancers.
+I'd be happy to teach you something, but you are not Orc Lancer, so I have nothing to say to you.
+Why don't you go to Flame Guardian Vulkus? I'm sure he'll be happy to help you. \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/QuestMasterHandler.java index bc5bee1086..a6eb3d2841 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -36,6 +36,7 @@ import quests.Q10299_GetIncrediblePower.Q10299_GetIncrediblePower; import quests.Q10300_ExploringTheCrumaTower.Q10300_ExploringTheCrumaTower; import quests.Q10301_NotSoSilentValley.Q10301_NotSoSilentValley; import quests.Q10673_SagaOfLegend.Q10673_SagaOfLegend; +import quests.Q10951_NewFlameOfOrcs.Q10951_NewFlameOfOrcs; import quests.Q10954_SayhaChildren.Q10954_SayhaChildren; import quests.Q10955_NewLifeLessons.Q10955_NewLifeLessons; import quests.Q10956_WeSylphs.Q10956_WeSylphs; @@ -87,6 +88,7 @@ public class QuestMasterHandler Q10299_GetIncrediblePower.class, Q10300_ExploringTheCrumaTower.class, Q10301_NotSoSilentValley.class, + Q10951_NewFlameOfOrcs.class, Q10954_SayhaChildren.class, Q10955_NewLifeLessons.class, Q10956_WeSylphs.class,