Addition of quest Future: Elves (11012).
Contributed by Stayway.
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
10868 The Dark Side of Power
|
||||
10870 Unfinished Device
|
||||
10871 Death to the Pirate King!
|
||||
11012 Future Elves
|
||||
|
||||
TODO: Check Antharas rewards.
|
||||
11006 Future: People
|
||||
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
I think you are ready to gain new powers and set out into the world. What do you think? Do you want to gain new powers?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02.htm">Complete 1st Class Transfer</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
I think you are ready to gain new powers and set out into the world. What do you think? Do you want to gain new powers?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02a.htm">Complete 1st Class Transfer</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
I thinkit's a sword or a bow that good for you, not magic. You'd better become an Elven Scout or an Elven Knight.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves f_knight.html">Become an Elven Knight</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves f_scout.html">Become an Elven Scout</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
You've got a talent for magic, I see. But it should be developed further..<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves m_wizard.html">Become an Elven Wizard</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves m_oracle.html">Become an Elven Oracle</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
Haven't you set off? Only trough trials can you achieve something new. Follow where the arrow points you..<br>
|
||||
<font color="LEVEL">(you may check your destination in the quest dialog by pressing Alt+U.)</font>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
(Only characters who are level 19 or above and who have completed the <font color="LEVEL">New Potion Development (3/3)</font> quests may undertake this quest.)
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Manuel:<br>
|
||||
Herbiel told me about you. Do you want to become an Elven Oracle? Set out in search of the truth?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30293-02.html">"Yes, I do."</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Manuel:<br>
|
||||
That's a great idea! Tell me when you are ready to make a Class Transfer.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Master Sorius:<br>
|
||||
Herbiel told me about you. Do you want to become an Elven Knight?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30327-02.html">"that's right."</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Master Sorius:<br>
|
||||
I hope you will be the sword and the shield that protects Elves. Tell me when you are ready to make a Class Transfer.
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Master Reisa:<br>
|
||||
Herbiel told me about you. Do you want to become an Elven Scout?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30328-02.html">"that's right."</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Master Reisa:<br>
|
||||
I hope you will be the warrior we need to protects Elves. Tell me when you are ready to make a Class Transfer.
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Rosella:<br>
|
||||
Herbiel told me about you. Do you want to become an Elven Wizard? Set out in search of the truth?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30414-02.html">"Yes, I do."</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Rosella:<br>
|
||||
That's a great idea! Tell me when you are ready to make a Class Transfer.
|
||||
</body></html>
|
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package quests.Q11012_FutureElves;
|
||||
|
||||
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.Q11011_NewPotionDevelopment3.Q11011_NewPotionDevelopment3;
|
||||
|
||||
/**
|
||||
* Future: Future Elves (11012)
|
||||
* @author Stayway
|
||||
*/
|
||||
public class Q11012_FutureElves extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int HERBIEL = 30150;
|
||||
private static final int SORIUS = 30327;
|
||||
private static final int REISA = 30328;
|
||||
private static final int ROSELLA = 30414;
|
||||
private static final int MANUEL = 30293;
|
||||
// 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 Q11012_FutureElves()
|
||||
{
|
||||
super(11012);
|
||||
addStartNpc(HERBIEL);
|
||||
addTalkId(HERBIEL, SORIUS, REISA, ROSELLA, MANUEL);
|
||||
addCondMinLevel(MIN_LEVEL, "no-level.html"); // Custom
|
||||
addCondRace(Race.ELF, "no-race.html"); // Custom
|
||||
addCondCompletedQuest(Q11011_NewPotionDevelopment3.class.getSimpleName(), "30150-04.html");
|
||||
setQuestNameNpcStringId(NpcStringId.LV_19_FUTURE_ELVES);
|
||||
}
|
||||
|
||||
@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 "30150-02.htm":
|
||||
case "30150-02a.htm":
|
||||
case "f_knight.html":
|
||||
case "f_scout.html":
|
||||
case "m_wizard.html":
|
||||
case "m_oracle.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "a_knight.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "a_scout.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "a_wizard.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(4, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "a_oracle.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(5, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30327-02.html":
|
||||
case "30328-02.html": // Custom html
|
||||
case "30414-02.html":
|
||||
case "30293-02.html": // Custom 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() == HERBIEL) && (talker.getClassId() == ClassId.ELVEN_FIGHTER))
|
||||
{
|
||||
htmltext = "30150-01.html";
|
||||
}
|
||||
else if (talker.getClassId() == ClassId.ELVEN_MAGE)
|
||||
{
|
||||
htmltext = "30150-01a.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (npc.getId() == HERBIEL)
|
||||
{
|
||||
if (qs.getCond() >= 1)
|
||||
{
|
||||
htmltext = "30150-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ((npc.getId() == SORIUS) && (talker.getClassId() != ClassId.ELVEN_KNIGHT))
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "30327-01.html"; // Custom html
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ((npc.getId() == REISA) && (talker.getClassId() != ClassId.ELVEN_SCOUT))
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "30328-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ((npc.getId() == ROSELLA) && (talker.getClassId() != ClassId.ELVEN_WIZARD))
|
||||
{
|
||||
if (qs.isCond(4))
|
||||
{
|
||||
htmltext = "30414-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ((npc.getId() == MANUEL) && (talker.getClassId() != ClassId.ORACLE))
|
||||
{
|
||||
if (qs.isCond(5))
|
||||
{
|
||||
htmltext = "30293-01.html"; // Custom html
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(talker);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
Do you want to become an<font color="LEVEL"> Elven Knight</font>? You need to talk to <font color="LEVEL">Master Sorius</font>. He is in the <font color="LEVEL">Town of Gludio</font>. Don't waste time, go there.<br>
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
Do you want to become an<font color="LEVEL"> Elven Oracle</font>? You need to talk to <font color="LEVEL">Priest Manuel</font>. He is in the <font color="LEVEL">Town of Gludio</font>. Don't waste time, go there.<br>
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
Do you want to become an<font color="LEVEL"> Elven Scout</font>? You need to talk to <font color="LEVEL">Master Reisa</font>. She is in the <font color="LEVEL">Town of Gludio</font>. Don't waste time, go there.<br>
|
@@ -0,0 +1,2 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
Do you want to become an<font color="LEVEL"> Elven Wizard</font>? You need to talk to <font color="LEVEL">Rosella</font>. She is in the <font color="LEVEL">Elven Village</font>. Don't waste time, go there.<br>
|
@@ -0,0 +1,7 @@
|
||||
<html><body>Class description - Elven Knight<br>
|
||||
<font color="LEVEL">Elven Knights</font> are warriors who are masters of Elven swordsmanship.<br>
|
||||
Not only are they able to attack swiftly and precisely, but they can also effectively defend themselves from enemy blows. They wield their Shield masterfully, which allows them to safely engage in combat.<br>
|
||||
These warriors wield One-Handed Swords or One-Handed Blunt Weapons, and they can withstand a lot of damage thanks to their Shields. Elven Knights don't have attacking Skills, and that effects their battle speed, however, with restorative skills, they can fight for a long periods of time..<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves a_knight.html"> Say that you have decided</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02.htm"> Say that you want to think about it</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,7 @@
|
||||
<html><body>Class description - Elven Scout<br>
|
||||
<font color="LEVEL">Elven Scouts</font> are Elven warriors who prefer to fight with a Bow and a Dagger.<br>
|
||||
In combat, they use Daggers and Bows, which allows them to effectively dispose of enemies in both close-range and lon-range combat. they typically wear Light Armor that significantly lowers their defense, however they compensate for it with their excellent evasion Skills and moving speed.<br>
|
||||
Compared to similar Classes of other Races they have higher moving speed and high chance of dealing critical damage. This is the most effective Class for a single-player game because of its many personal Reinforcement Skills.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves a_scout.html"> Say that you have decided</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02.htm"> Say that you want to think about it</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,7 @@
|
||||
<html><body>Class description - Elven Oracle:<br>
|
||||
<font color="LEVEL">Elven Oracles</font> can perform holy miracles by the power of their faith. The Godess favors them....<br>
|
||||
They are the Key Class for a group game since they specialize in healing and reinforcing with various Buffs..<br>
|
||||
They are ill-suited for a single-player game since they barely have any attacking magic Skills. Hunting will be most effective in a group game..<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves a_oracle.html">Say that you have decided</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02a.htm">Say that you want to think about ir</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,6 @@
|
||||
<html><body>Class description - Elven Wizard:<br>
|
||||
<font color="LEVEL">Elven Wizards</font> are not really different from Human Mystics, but due to their Radical Characteristics, they can't use dark magic.<br>
|
||||
They are the main Elven wizards. Compared to other Races, they deal lower amounts of damage, and you need to pay close attention to MP in combat.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves a_wizard.html">Say that you have decided</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11012_FutureElves 30150-02a.htm">Say that you want to think about ir</Button><br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
You ought to gain more experience. Come back later.<br>
|
||||
<font color="LEVEL">(This quest is available to characters of Level 19 or higher.)</font><br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Trader Herbiel:<br>
|
||||
You are not a Elf. Get the hell out!
|
||||
<font color="LEVEL">(This quest is available to Elfs only.)</font><br>
|
||||
</body></html>
|
@@ -166,6 +166,7 @@ import quests.Q11008_PreparationForDungeon.Q11008_PreparationForDungeon;
|
||||
import quests.Q11009_NewPotionDevelopment1.Q11009_NewPotionDevelopment1;
|
||||
import quests.Q11010_NewPotionDevelopment2.Q11010_NewPotionDevelopment2;
|
||||
import quests.Q11011_NewPotionDevelopment3.Q11011_NewPotionDevelopment3;
|
||||
import quests.Q11012_FutureElves.Q11012_FutureElves;
|
||||
import quests.Q11013_ShilensHunt.Q11013_ShilensHunt;
|
||||
import quests.Q11014_SurpriseGift.Q11014_SurpriseGift;
|
||||
import quests.Q11015_PrepareForTrade1.Q11015_PrepareForTrade1;
|
||||
@@ -334,6 +335,7 @@ public class QuestMasterHandler
|
||||
Q11009_NewPotionDevelopment1.class,
|
||||
Q11010_NewPotionDevelopment2.class,
|
||||
Q11011_NewPotionDevelopment3.class,
|
||||
Q11012_FutureElves.class,
|
||||
Q11013_ShilensHunt.class,
|
||||
Q11014_SurpriseGift.class,
|
||||
Q11015_PrepareForTrade1.class,
|
||||
|
Reference in New Issue
Block a user