diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/MissingQuests.txt index 2fc408957d..4a54a0bf0a 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/MissingQuests.txt @@ -18,6 +18,5 @@ 10868 The Dark Side of Power 10870 Unfinished Device 10871 Death to the Pirate King! -10993 Future: Dwarves 10994 Future: Orcs 11012 Future Elves diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html new file mode 100644 index 0000000000..0e2184bd16 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html @@ -0,0 +1,4 @@ +Triskel:
+Lector sent you, right? So you want to choose the path of a Assassin? Excellent! It's always good to study something new.
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html new file mode 100644 index 0000000000..86cf6d1c99 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html @@ -0,0 +1,3 @@ +Triskel:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html new file mode 100644 index 0000000000..0560d69f8b --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html @@ -0,0 +1,4 @@ +Witch Varika:
+Vollodos told me about you.Do you want to become a Dark Wizard?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html new file mode 100644 index 0000000000..f33db4fc1c --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html @@ -0,0 +1,3 @@ +Witch Varika:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html new file mode 100644 index 0000000000..a77401cc52 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html @@ -0,0 +1,4 @@ +Collector Pippi:
+Priest Gerald warned me about your arrival. So, do you want to become a Scavenger?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html new file mode 100644 index 0000000000..43834005a2 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html @@ -0,0 +1,3 @@ +Blacksmith Silvera:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html new file mode 100644 index 0000000000..a0eceb2c27 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html @@ -0,0 +1,4 @@ +Blacksmith Silvera:
+Priest Gerald warned me about your arrival. So, do you want to become a Artisan?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html new file mode 100644 index 0000000000..43834005a2 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html @@ -0,0 +1,3 @@ +Blacksmith Silvera:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html new file mode 100644 index 0000000000..528127e9f2 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html @@ -0,0 +1,4 @@ +Head Priest of the Earth Gerald:
+Now I can trust you. What do you think? Would you like to take a new path?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm new file mode 100644 index 0000000000..ecf891e7f3 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm @@ -0,0 +1,5 @@ +Head Priest of the Earth Gerald:
+Have you considered it well? Which Class do you choose?
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html new file mode 100644 index 0000000000..4ee0202edc --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html @@ -0,0 +1,3 @@ +Head Priest of the Gerald:
+Haven't you set off? Follow the arrow.
+(you may check your destination in the quest dialog by pressing Alt+U.) \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html new file mode 100644 index 0000000000..19d1d30615 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html @@ -0,0 +1,3 @@ +Head Priest of the Gerald:
+(Only characters who are level 19 or above and who have completed the Loser Priest (3/3) quests may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java new file mode 100644 index 0000000000..6e8df7075f --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java @@ -0,0 +1,158 @@ +/* + * 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.Q10993_FutureDwarves; + +import com.l2jmobius.gameserver.enums.Race; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.base.ClassId; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; +import com.l2jmobius.gameserver.network.NpcStringId; + +import quests.Q10999_LoserPriest3.Q10999_LoserPriest3; + +/** + * Future: Dwarves (10993) + * @author Stayway + */ +public class Q10993_FutureDwarves extends Quest +{ + // NPCs + private static final int GERALD = 30650; + private static final int PIPPI = 30524; + private static final int SILVERA = 30527; + + // Items + private static final int FIRST_CLASS_BUFF_SCROLL = 29011; + private static final int IMPROVED_SOE = 49087; + + // Misc + private static final int MIN_LEVEL = 19; + + public Q10993_FutureDwarves() + { + super(10993); + addStartNpc(GERALD); + addTalkId(PIPPI, GERALD, SILVERA); + addCondMinLevel(MIN_LEVEL, "no-level.html"); // Custom + addCondRace(Race.DWARF, "no-race.html"); // Custom + addCondCompletedQuest(Q10999_LoserPriest3.class.getSimpleName(), "30650-04.html"); + setQuestNameNpcStringId(NpcStringId.LV_19_FUTURE_DWARVES); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "30650-02.htm": + case "f_scavenger.html": + case "f_artisan.html": + { + htmltext = event; + break; + } + case "a_scavenger.html": + { + qs.startQuest(); + qs.setCond(2, true); + htmltext = event; + break; + } + case "a_artisan.html": // Custom html + { + qs.startQuest(); + qs.setCond(3, true); + htmltext = event; + break; + } + case "30524-02.html": + case "30527-02.html": + { + if (qs.getCond() > 1) + { + giveItems(player, FIRST_CLASS_BUFF_SCROLL, 5); + giveItems(player, IMPROVED_SOE, 1); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance talker) + { + final QuestState qs = getQuestState(talker, true); + String htmltext = getNoQuestMsg(talker); + switch (qs.getState()) + { + case State.CREATED: + { + if ((npc.getId() == GERALD)) + { + htmltext = "30650-01.html"; + } + break; + } + case State.STARTED: + { + if (npc.getId() == GERALD) + { + if (qs.getCond() >= 1) + { + htmltext = "30650-03.html"; + } + break; + } + if ((npc.getId() == PIPPI) && (talker.getClassId() != ClassId.SCAVENGER)) + { + if (qs.isCond(2)) + { + htmltext = "30524-01.html"; + } + break; + } + if ((npc.getId() == SILVERA) && (talker.getClassId() != ClassId.ARTISAN)) + { + if (qs.isCond(3)) + { + htmltext = "30527-01.html"; // Custom Html + } + break; + } + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(talker); + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html new file mode 100644 index 0000000000..552131fe28 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html @@ -0,0 +1,2 @@ + Head Priest of the Earth Gerald:
+Do you want to become a Artisan? You need to talk Blacksmith Silvera. She is at the Blacksmith Shop . Don't waste time, go there
diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html new file mode 100644 index 0000000000..29b9713a93 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html @@ -0,0 +1,2 @@ + Head Priest of the Earth Gerald:
+Do you want to become a Scavengers? You need to talk Pippi. Pippi is in a department of the Bronze Key Guild. Don't waste time, go there
diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html new file mode 100644 index 0000000000..4184903ad1 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html @@ -0,0 +1,7 @@ +Class description - Artisan:
+ Artisans are Dwarves who work in creating items and equipment. They don't like traveling and prefer to stay in their workshops.
+They can't continue lerning Spoil and Sweeper Skills, so they are less effective when it comes to collecting materials. However, you can earn a lot through item-making.
+They are not very effective in combat or during hunting, but, unlike Scavengers, they can summon battle Mechanic Golems who will be a good asset in battles.
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html new file mode 100644 index 0000000000..d6755c2e68 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html @@ -0,0 +1,7 @@ +Class description - Scavenger :
+ Scavengers are Dwarves who travel the world looking for materials for making various items.
+They are able to collect various additional items and materials from monsters. Scavengers use Spoil and Sweeper Skills that they learned back in their Dwarven Fighter times.
+They are not really effective in combat or during hunting, but you can earn a lot with them when collecting materials. That's why players who want to pursue item collecting choose Scavengers.
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html new file mode 100644 index 0000000000..ff92e600e2 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html @@ -0,0 +1,4 @@ +Grocer Vollodos:
+You ought to gain more experience. Come back later.
+(This quest is available to characters of Level 19 or higher.)
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html new file mode 100644 index 0000000000..90813e136f --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html @@ -0,0 +1,4 @@ +Grocer Vollodos:
+You are not a Dark Elf. Get the hell out! +(This quest is available to Dark Elfs only.)
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/QuestMasterHandler.java index 78ed3aaf9c..33c1deb318 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -147,6 +147,7 @@ import quests.Q00418_PathOfTheArtisan.Q00418_PathOfTheArtisan; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00933_ExploringTheWestWingOfTheDungeonOfAbyss.Q00933_ExploringTheWestWingOfTheDungeonOfAbyss; import quests.Q00935_ExploringTheEastWingOfTheDungeonOfAbyss.Q00935_ExploringTheEastWingOfTheDungeonOfAbyss; +import quests.Q10993_FutureDwarves.Q10993_FutureDwarves; import quests.Q10995_MutualBenefit.Q10995_MutualBenefit; import quests.Q10996_TemplesDecorations.Q10996_TemplesDecorations; import quests.Q10997_LoserPriest1.Q10997_LoserPriest1; @@ -313,6 +314,7 @@ public class QuestMasterHandler Q00662_AGameOfCards.class, Q00933_ExploringTheWestWingOfTheDungeonOfAbyss.class, Q00935_ExploringTheEastWingOfTheDungeonOfAbyss.class, + Q10993_FutureDwarves.class, Q10995_MutualBenefit.class, Q10996_TemplesDecorations.class, Q10997_LoserPriest1.class, diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/MissingQuests.txt b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/MissingQuests.txt index 06d85c5cac..7960a77161 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/MissingQuests.txt +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/MissingQuests.txt @@ -17,7 +17,6 @@ 10868 The Dark Side of Power 10870 Unfinished Device 10871 Death to the Pirate King! -10993 Future: Dwarves 10994 Future: Orcs 11012 Future Elves diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html new file mode 100644 index 0000000000..0e2184bd16 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-01.html @@ -0,0 +1,4 @@ +Triskel:
+Lector sent you, right? So you want to choose the path of a Assassin? Excellent! It's always good to study something new.
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html new file mode 100644 index 0000000000..86cf6d1c99 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30416-02.html @@ -0,0 +1,3 @@ +Triskel:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html new file mode 100644 index 0000000000..0560d69f8b --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-01.html @@ -0,0 +1,4 @@ +Witch Varika:
+Vollodos told me about you.Do you want to become a Dark Wizard?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html new file mode 100644 index 0000000000..f33db4fc1c --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30421-02.html @@ -0,0 +1,3 @@ +Witch Varika:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html new file mode 100644 index 0000000000..a77401cc52 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-01.html @@ -0,0 +1,4 @@ +Collector Pippi:
+Priest Gerald warned me about your arrival. So, do you want to become a Scavenger?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html new file mode 100644 index 0000000000..43834005a2 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30524-02.html @@ -0,0 +1,3 @@ +Blacksmith Silvera:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html new file mode 100644 index 0000000000..a0eceb2c27 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-01.html @@ -0,0 +1,4 @@ +Blacksmith Silvera:
+Priest Gerald warned me about your arrival. So, do you want to become a Artisan?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html new file mode 100644 index 0000000000..43834005a2 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30527-02.html @@ -0,0 +1,3 @@ +Blacksmith Silvera:
+You made the right decision! Tell me when you are ready to make a Class Transfer. + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html new file mode 100644 index 0000000000..528127e9f2 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-01.html @@ -0,0 +1,4 @@ +Head Priest of the Earth Gerald:
+Now I can trust you. What do you think? Would you like to take a new path?
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm new file mode 100644 index 0000000000..ecf891e7f3 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-02.htm @@ -0,0 +1,5 @@ +Head Priest of the Earth Gerald:
+Have you considered it well? Which Class do you choose?
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html new file mode 100644 index 0000000000..4ee0202edc --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-03.html @@ -0,0 +1,3 @@ +Head Priest of the Gerald:
+Haven't you set off? Follow the arrow.
+(you may check your destination in the quest dialog by pressing Alt+U.) \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html new file mode 100644 index 0000000000..19d1d30615 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/30650-04.html @@ -0,0 +1,3 @@ +Head Priest of the Gerald:
+(Only characters who are level 19 or above and who have completed the Loser Priest (3/3) quests may undertake this quest.) + \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java new file mode 100644 index 0000000000..6e8df7075f --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/Q10993_FutureDwarves.java @@ -0,0 +1,158 @@ +/* + * 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.Q10993_FutureDwarves; + +import com.l2jmobius.gameserver.enums.Race; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.base.ClassId; +import com.l2jmobius.gameserver.model.quest.Quest; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.model.quest.State; +import com.l2jmobius.gameserver.network.NpcStringId; + +import quests.Q10999_LoserPriest3.Q10999_LoserPriest3; + +/** + * Future: Dwarves (10993) + * @author Stayway + */ +public class Q10993_FutureDwarves extends Quest +{ + // NPCs + private static final int GERALD = 30650; + private static final int PIPPI = 30524; + private static final int SILVERA = 30527; + + // Items + private static final int FIRST_CLASS_BUFF_SCROLL = 29011; + private static final int IMPROVED_SOE = 49087; + + // Misc + private static final int MIN_LEVEL = 19; + + public Q10993_FutureDwarves() + { + super(10993); + addStartNpc(GERALD); + addTalkId(PIPPI, GERALD, SILVERA); + addCondMinLevel(MIN_LEVEL, "no-level.html"); // Custom + addCondRace(Race.DWARF, "no-race.html"); // Custom + addCondCompletedQuest(Q10999_LoserPriest3.class.getSimpleName(), "30650-04.html"); + setQuestNameNpcStringId(NpcStringId.LV_19_FUTURE_DWARVES); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "30650-02.htm": + case "f_scavenger.html": + case "f_artisan.html": + { + htmltext = event; + break; + } + case "a_scavenger.html": + { + qs.startQuest(); + qs.setCond(2, true); + htmltext = event; + break; + } + case "a_artisan.html": // Custom html + { + qs.startQuest(); + qs.setCond(3, true); + htmltext = event; + break; + } + case "30524-02.html": + case "30527-02.html": + { + if (qs.getCond() > 1) + { + giveItems(player, FIRST_CLASS_BUFF_SCROLL, 5); + giveItems(player, IMPROVED_SOE, 1); + qs.exitQuest(false, true); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance talker) + { + final QuestState qs = getQuestState(talker, true); + String htmltext = getNoQuestMsg(talker); + switch (qs.getState()) + { + case State.CREATED: + { + if ((npc.getId() == GERALD)) + { + htmltext = "30650-01.html"; + } + break; + } + case State.STARTED: + { + if (npc.getId() == GERALD) + { + if (qs.getCond() >= 1) + { + htmltext = "30650-03.html"; + } + break; + } + if ((npc.getId() == PIPPI) && (talker.getClassId() != ClassId.SCAVENGER)) + { + if (qs.isCond(2)) + { + htmltext = "30524-01.html"; + } + break; + } + if ((npc.getId() == SILVERA) && (talker.getClassId() != ClassId.ARTISAN)) + { + if (qs.isCond(3)) + { + htmltext = "30527-01.html"; // Custom Html + } + break; + } + } + case State.COMPLETED: + { + htmltext = getAlreadyCompletedMsg(talker); + break; + } + } + return htmltext; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html new file mode 100644 index 0000000000..552131fe28 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_artisan.html @@ -0,0 +1,2 @@ + Head Priest of the Earth Gerald:
+Do you want to become a Artisan? You need to talk Blacksmith Silvera. She is at the Blacksmith Shop . Don't waste time, go there
diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html new file mode 100644 index 0000000000..29b9713a93 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/a_scavenger.html @@ -0,0 +1,2 @@ + Head Priest of the Earth Gerald:
+Do you want to become a Scavengers? You need to talk Pippi. Pippi is in a department of the Bronze Key Guild. Don't waste time, go there
diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html new file mode 100644 index 0000000000..4184903ad1 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_artisan.html @@ -0,0 +1,7 @@ +Class description - Artisan:
+ Artisans are Dwarves who work in creating items and equipment. They don't like traveling and prefer to stay in their workshops.
+They can't continue lerning Spoil and Sweeper Skills, so they are less effective when it comes to collecting materials. However, you can earn a lot through item-making.
+They are not very effective in combat or during hunting, but, unlike Scavengers, they can summon battle Mechanic Golems who will be a good asset in battles.
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html new file mode 100644 index 0000000000..d6755c2e68 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/f_scavenger.html @@ -0,0 +1,7 @@ +Class description - Scavenger :
+ Scavengers are Dwarves who travel the world looking for materials for making various items.
+They are able to collect various additional items and materials from monsters. Scavengers use Spoil and Sweeper Skills that they learned back in their Dwarven Fighter times.
+They are not really effective in combat or during hunting, but you can earn a lot with them when collecting materials. That's why players who want to pursue item collecting choose Scavengers.
+
+
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html new file mode 100644 index 0000000000..ff92e600e2 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-level.html @@ -0,0 +1,4 @@ +Grocer Vollodos:
+You ought to gain more experience. Come back later.
+(This quest is available to characters of Level 19 or higher.)
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html new file mode 100644 index 0000000000..90813e136f --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/Q10993_FutureDwarves/no-race.html @@ -0,0 +1,4 @@ +Grocer Vollodos:
+You are not a Dark Elf. Get the hell out! +(This quest is available to Dark Elfs only.)
+ \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/QuestMasterHandler.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/QuestMasterHandler.java index 78ed3aaf9c..33c1deb318 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -147,6 +147,7 @@ import quests.Q00418_PathOfTheArtisan.Q00418_PathOfTheArtisan; import quests.Q00662_AGameOfCards.Q00662_AGameOfCards; import quests.Q00933_ExploringTheWestWingOfTheDungeonOfAbyss.Q00933_ExploringTheWestWingOfTheDungeonOfAbyss; import quests.Q00935_ExploringTheEastWingOfTheDungeonOfAbyss.Q00935_ExploringTheEastWingOfTheDungeonOfAbyss; +import quests.Q10993_FutureDwarves.Q10993_FutureDwarves; import quests.Q10995_MutualBenefit.Q10995_MutualBenefit; import quests.Q10996_TemplesDecorations.Q10996_TemplesDecorations; import quests.Q10997_LoserPriest1.Q10997_LoserPriest1; @@ -313,6 +314,7 @@ public class QuestMasterHandler Q00662_AGameOfCards.class, Q00933_ExploringTheWestWingOfTheDungeonOfAbyss.class, Q00935_ExploringTheEastWingOfTheDungeonOfAbyss.class, + Q10993_FutureDwarves.class, Q10995_MutualBenefit.class, Q10996_TemplesDecorations.class, Q10997_LoserPriest1.class,