Quest A Whole New Level of Alchemy (10767).
Contributed by gigilo1968.
This commit is contained in:
@@ -126,7 +126,6 @@
|
||||
10748 Mysterious Suggestion - 1
|
||||
10749 Mysterious Suggestion - 2
|
||||
10753 Winds of Fate: Choices
|
||||
10767 A Whole New Level of Alchemy
|
||||
10796 The Eye that Defied the Gods
|
||||
10797 Crossing Fate
|
||||
10801 The Dimensional Warp, Part 1
|
||||
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
I'm wondering what to buy with the Adena I made from Alchemy. Hehe.<br>
|
||||
(Only Ertheia characters Lv. 97 or above can perform this quest.)
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
What manner of business brings you here?<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10767_AWholeNewLevelOfAlchemy 33977-02.htm">"I'm here to learn some high-grade Alchemy."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
You must be the Ertheia who learned from my younger sister in Faeron Village. Nice to meet you. If you think I can be of some help to you, then I will most certainly help. We should help each other until we can go home again.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10767_AWholeNewLevelOfAlchemy 33977-03.htm">"Thank you."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
Don't thank me yet. High-level Alchemy requires serious grindi - study. Studying! You could quit halfway, or even grow to resent me. <br>
|
||||
You think you're ready for the challenge?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10767_AWholeNewLevelOfAlchemy 33977-04.htm">"I can grind - uh, study."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
The way to learn the secrets of a skill is to keep using it. The only way to hone your high-grade Alchemy is to make a lot of potions with the skills you already have.<br>
|
||||
Make <font color="LEVEL">1000</font> each of the <font color="LEVEL">Superior Windy Healing Potion, the Superior Windy Quick Healing Potion, and the High-grade Love Potion</font> and bring them to me.<br>
|
||||
Don't worry -- I'm only checking. I won't take any from you, so don't complain about the amount.
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
The way to learn the secrets of a skill is to keep using it. The only way to hone your high-grade Alchemy is to make a lot of potions with the skills you already have.<br>
|
||||
Make <font color="LEVEL">1000</font> each of the <font color="LEVEL">Superior Windy Healing Potion, the Superior Windy Quick Healing Potion, and the High-grade Love Potion</font> and bring them to me.<br>
|
||||
Don't worry -- I'm only checking. I won't take any from you, so don't complain about the amount.
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
Finish making everything? It's difficult, isn't it?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10767_AWholeNewLevelOfAlchemy 33977-07.html">"Yeah, it kind of was."</Button><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10767_AWholeNewLevelOfAlchemy 33977-07.html">"It was so easy! What are you talking about?</Button>
|
||||
</body></html>
|
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* 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.Q10767_AWholeNewLevelOfAlchemy;
|
||||
|
||||
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.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.Id;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.item.OnItemCreate;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* A Whole New Level of Alchemy (10767)
|
||||
* @URL https://l2wiki.com/A_Whole_New_Level_of_Alchemy
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q10767_AWholeNewLevelOfAlchemy extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int VERUTI = 33977;
|
||||
// Items
|
||||
private static final int SUPERIOR_WINDY_HEALING_POTION = 39469;
|
||||
private static final int SUPERIOR_WINDY_QUIK_HEALING_POTION = 39474;
|
||||
private static final int HIGH_GRADE_LOVE_POTION = 39479;
|
||||
// Reward
|
||||
private static final int EXP_REWARD = 14819175;
|
||||
private static final int SP_REWARD = 3556;
|
||||
private static final int ALCHEMIC_TOME_POTION = 39482;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 97;
|
||||
|
||||
public Q10767_AWholeNewLevelOfAlchemy()
|
||||
{
|
||||
super(10767);
|
||||
addStartNpc(VERUTI);
|
||||
addTalkId(VERUTI);
|
||||
registerQuestItems(SUPERIOR_WINDY_HEALING_POTION, SUPERIOR_WINDY_QUIK_HEALING_POTION, HIGH_GRADE_LOVE_POTION);
|
||||
addCondMinLevel(MIN_LEVEL, "33977-00.htm");
|
||||
addCondRace(Race.ERTHEIA, "noErtheia.html");
|
||||
}
|
||||
|
||||
@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 "33977-02.htm":
|
||||
case "33977-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33977-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33977-07.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
takeItems(player, SUPERIOR_WINDY_HEALING_POTION, 1000);
|
||||
takeItems(player, SUPERIOR_WINDY_QUIK_HEALING_POTION, 1000);
|
||||
takeItems(player, HIGH_GRADE_LOVE_POTION, 1000);
|
||||
giveItems(player, ALCHEMIC_TOME_POTION, 3);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = null;
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == VERUTI)
|
||||
{
|
||||
htmltext = "33977-01.htm";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33977-05.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33977-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@RegisterEvent(EventType.ON_ITEM_CREATE)
|
||||
@RegisterType(ListenerRegisterType.ITEM)
|
||||
@Id(SUPERIOR_WINDY_HEALING_POTION)
|
||||
@Id(SUPERIOR_WINDY_QUIK_HEALING_POTION)
|
||||
@Id(HIGH_GRADE_LOVE_POTION)
|
||||
public void onItemCreate(OnItemCreate event)
|
||||
{
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.isCond(1)) && (getQuestItemsCount(qs.getPlayer(), SUPERIOR_WINDY_HEALING_POTION) >= 1000) && (getQuestItemsCount(qs.getPlayer(), SUPERIOR_WINDY_QUIK_HEALING_POTION) >= 1000) && (getQuestItemsCount(qs.getPlayer(), HIGH_GRADE_LOVE_POTION) >= 1000))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Alchemist Veruti:<br>
|
||||
I'm wondering what to buy with the Adena I made from Alchemy. Hehe.<br>
|
||||
(Only Ertheia classes can perform this quest.)
|
||||
</body></html>
|
@@ -351,6 +351,7 @@ import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit;
|
||||
import quests.Q10763_TerrifyingChertuba.Q10763_TerrifyingChertuba;
|
||||
import quests.Q10764_FreeSpirit.Q10764_FreeSpirit;
|
||||
import quests.Q10766_ANewCraft.Q10766_ANewCraft;
|
||||
import quests.Q10767_AWholeNewLevelOfAlchemy.Q10767_AWholeNewLevelOfAlchemy;
|
||||
import quests.Q10769_LettersFromTheQueenCrumaTowerPart1.Q10769_LettersFromTheQueenCrumaTowerPart1;
|
||||
import quests.Q10770_InSearchOfTheGrail.Q10770_InSearchOfTheGrail;
|
||||
import quests.Q10771_VolatilePower.Q10771_VolatilePower;
|
||||
@@ -735,6 +736,7 @@ public class QuestMasterHandler
|
||||
Q10763_TerrifyingChertuba.class,
|
||||
Q10764_FreeSpirit.class,
|
||||
Q10766_ANewCraft.class,
|
||||
Q10767_AWholeNewLevelOfAlchemy.class,
|
||||
Q10769_LettersFromTheQueenCrumaTowerPart1.class,
|
||||
Q10770_InSearchOfTheGrail.class,
|
||||
Q10771_VolatilePower.class,
|
||||
|
Reference in New Issue
Block a user