Quest Filling the Energy of Destruction (943).
Author karma12. Contributed by notorionn.
This commit is contained in:
parent
f0dd108599
commit
570d700948
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-00.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Hmm? I forgot what I was saying. Who are you?<br>
|
||||
(You must be level 90 or above to start this quest.)
|
||||
</body></html>
|
2
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-00a.html
vendored
Normal file
2
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-00a.html
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
<html><body>You cannot receive quest rewards as your character's level is lower than the minimum required for the quest.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-01.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Have you used a Seed Talisman? Its clever relies on the user's ability and will, very clever, very impressive. I can tell you how to make them even stronger. Yes?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00943_FillingTheEnergyOfDestruction 33715-02.htm">"What happened?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
The Seed Talisman, it cannot be enhanced with just any magic. Because the Talisman's core is so twisted and layered, it can only be fed by something with similar twists.<br>
|
||||
You must seek the <font color="LEVEL">Core of Twisted Magic</font>. If you bring me this, yes, I can purify it inso usable form. Yes?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00943_FillingTheEnergyOfDestruction 33715-03.htm">"I'll give it a try."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Yes! Good good, yes. Many monsters carry the <font color="LEVEL">Core of Twisted Magic</font>.<br>
|
||||
All you must do is defeat <font color="LEVEL">Istina, Octavis, Baylor, Balok, Ron, Spezion, or Tauti</font>. Any one of them will do, yes yes!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-04.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Bring me the <font color="LEVEL">Core of Twisted Magic</font> yes?<br>
|
||||
All you must do is defeat <font color="LEVEL">Istina, Octavis, Baylor, Balok, Ron, Spezion, or Tauti</font>. Any one of them will do, yes yes!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-05.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Hmm? What is this? A <font color="LEVEL">Core of Twisted Magic</font>! You must want me to purify this, yes yes?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00943_FillingTheEnergyOfDestruction 33715-06.html">"That's what we agreed on."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Ha! Ah! Here it is! The <font color="LEVEL">Energy of Destruction</font>. This can greatly enhance your Seed Talisman, yes yes, through there is no guarantee, of course. That is up to your destiny!<br>
|
||||
I am here always, so come back tomorrow, yes, and visit, yes yes?
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00943_FillingTheEnergyOfDestruction/33715-07.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Seed Talisman Manager:<br>
|
||||
Hmm? What was I saying? Hmm... I'm quite sleepy. Perhaps it is time for my nap....<br>
|
||||
(This quest can be performed only once a day. Check again tomorrow at 6:30 am.)
|
||||
</body></html>
|
@ -0,0 +1,173 @@
|
||||
/*
|
||||
* 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.Q00943_FillingTheEnergyOfDestruction;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
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.util.Util;
|
||||
|
||||
/**
|
||||
* Filling the Energy of Destruction (943)
|
||||
* @author karma12
|
||||
*/
|
||||
public class Q00943_FillingTheEnergyOfDestruction extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int SEED_TALISMAN_MANAGER = 33715;
|
||||
// Raids
|
||||
private static final int ISTINA_EASY = 29195;
|
||||
private static final int ISTINA_HARD = 29196;
|
||||
private static final int OCTAVIS_EASY = 29194;
|
||||
private static final int OCTAVIS_HARD = 29212;
|
||||
private static final int SPEZION_EASY = 25867;
|
||||
private static final int SPEZION_HARD = 25868;
|
||||
private static final int BAYLOR = 29213;
|
||||
private static final int BALOK = 29218;
|
||||
private static final int RON = 25825;
|
||||
private static final int TAUTI_1 = 29236;
|
||||
private static final int TAUTI_2 = 29237;
|
||||
private static final int TAUTI_3 = 29238;
|
||||
// Item
|
||||
private static final int CORE_OF_TWISTED_MAGIC = 35668;
|
||||
// Rewards
|
||||
private static final int ENERGY_OF_DESTRUCTION = 35562;
|
||||
|
||||
public Q00943_FillingTheEnergyOfDestruction()
|
||||
{
|
||||
super(943, Q00943_FillingTheEnergyOfDestruction.class.getSimpleName(), "Filling the Energy of Destruction");
|
||||
|
||||
addStartNpc(SEED_TALISMAN_MANAGER);
|
||||
addTalkId(SEED_TALISMAN_MANAGER);
|
||||
addKillId(ISTINA_EASY, ISTINA_HARD, OCTAVIS_EASY, OCTAVIS_HARD, SPEZION_EASY, SPEZION_HARD, BAYLOR, BALOK, RON, TAUTI_1, TAUTI_2, TAUTI_3);
|
||||
registerQuestItems(CORE_OF_TWISTED_MAGIC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
|
||||
{
|
||||
giveItems(player, CORE_OF_TWISTED_MAGIC, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "33715-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "33715-06.html":
|
||||
{
|
||||
if (player.getLevel() >= 99)
|
||||
{
|
||||
takeItems(player, CORE_OF_TWISTED_MAGIC, 1);
|
||||
giveItems(player, ENERGY_OF_DESTRUCTION, 1);
|
||||
addExpAndSp(player, 0, 5371901);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
takeItems(player, CORE_OF_TWISTED_MAGIC, 1);
|
||||
giveItems(player, ENERGY_OF_DESTRUCTION, 1);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(killer, npc, isSummon, true, true);
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (qs.isNowAvailable())
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = (player.getLevel() >= 90) ? "33715-01.htm" : "33715-00.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33715-07.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = (player.getLevel() >= 90) ? "33715-01.htm" : "33715-00.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33715-04.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
if (player.getLevel() < 90)
|
||||
{
|
||||
htmltext = "33715-00a.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33715-05.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@ -187,6 +187,7 @@ import quests.Q00904_DragonTrophyAntharas.Q00904_DragonTrophyAntharas;
|
||||
import quests.Q00905_RefinedDragonBlood.Q00905_RefinedDragonBlood;
|
||||
import quests.Q00906_TheCallOfValakas.Q00906_TheCallOfValakas;
|
||||
import quests.Q00907_DragonTrophyValakas.Q00907_DragonTrophyValakas;
|
||||
import quests.Q00943_FillingTheEnergyOfDestruction.Q00943_FillingTheEnergyOfDestruction;
|
||||
import quests.Q00998_FallenAngelSelect.Q00998_FallenAngelSelect;
|
||||
import quests.Q10273_GoodDayToFly.Q10273_GoodDayToFly;
|
||||
import quests.Q10274_CollectingInTheAir.Q10274_CollectingInTheAir;
|
||||
@ -472,6 +473,7 @@ final class QuestMasterHandler
|
||||
Q00905_RefinedDragonBlood.class,
|
||||
Q00906_TheCallOfValakas.class,
|
||||
Q00907_DragonTrophyValakas.class,
|
||||
Q00943_FillingTheEnergyOfDestruction.class,
|
||||
Q00998_FallenAngelSelect.class,
|
||||
Q10273_GoodDayToFly.class,
|
||||
Q10274_CollectingInTheAir.class,
|
||||
|
Loading…
Reference in New Issue
Block a user