Quest Unbelievable Sight (10831).
Contributed by gigilo1968.
This commit is contained in:
parent
99513c6507
commit
ed9568a40d
@ -122,7 +122,6 @@
|
||||
10806 The Dimensional Warp, Part 6
|
||||
10807 The Dimensional Warp, Part 7
|
||||
10809 The Hero's Journey: Blazing Swamp
|
||||
10831 Unbelievable Sight
|
||||
10832 Energy of Sadness and Anger
|
||||
10833 Put the Queen of Spirits to Sleep
|
||||
10836 Disappeared Clan Member
|
||||
|
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-00.htm
vendored
Normal file
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-00.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Oh, you are so ignorant.<br>
|
||||
(This quest may only be undertaken by characters Lv. 100 or above who have completed the quest "The Lost Garden of Spirits.")
|
||||
</body></html>
|
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-01.htm
vendored
Normal file
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Thank you for having helped us in the Garden of Spirits. Thanks to the items you collected for us, we were able to do more research.<br>
|
||||
My research is about the following two things. First, what kind of power brought the Garden of Spirits to the Material Realm. Second, whether we can use that power to go back to the Wind Spirit Realm. <br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10831_UnbelievableSight 34056-02.htm">"Go on."</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-02.htm
vendored
Normal file
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Research on the first is more important, and there's a theory we can derive from the items we investigated. Something forcefully brought part of the Spirit Realm to this world. <br>
|
||||
However, this is something we can tell just by looking at it. We need to know the reason first to find a way for us Ertheia to go back to our realm.<br>That's why I'm asking you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10831_UnbelievableSight 34056-03.htm">"What is it?"</Button>
|
||||
</body></html>
|
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-03.htm
vendored
Normal file
5
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-03.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Ah, this is the question. Will you keep helping us out with our research? There are still mysteries we must solve. We can't be sure. We need more proof before we can take action. <br>
|
||||
So, yeah. Can you help us some more? <br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10831_UnbelievableSight 34056-04.htm">"Alright."</Button>
|
||||
</body></html>
|
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-04.htm
vendored
Normal file
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-04.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Here's your mission. Defeat <font color="LEVEL">El Floato</font> and bring <font color="LEVEL">100 Unbalanced Energies</font>. El Floato isn't always available in the Garden of Spirits. Its appearance time isn't set. The energy is different from what we are used to seeing in the Wind Spirit Realm.
|
||||
</body></html>
|
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-05.html
vendored
Normal file
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-05.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Here's your mission. Defeat <font color="LEVEL">El Floato</font> and bring <font color="LEVEL">100 Unbalanced Energies</font>. El Floato isn't always available in the Garden of Spirits. Its appearance time isn't set. The energy is different from what we are used to seeing in the Wind Spirit Realm.
|
||||
</body></html>
|
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-06.html
vendored
Normal file
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
You are back safely!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10831_UnbelievableSight 34056-07.html">"Yes."</Button>
|
||||
</body></html>
|
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-07.html
vendored
Normal file
3
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/34056-07.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
Alright. I'll do some research, so give me some time.
|
||||
</body></html>
|
@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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.Q10831_UnbelievableSight;
|
||||
|
||||
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 quests.Q10830_TheLostGardenOfSpirits.Q10830_TheLostGardenOfSpirits;
|
||||
|
||||
/**
|
||||
* Unbelievable Sight (10831)
|
||||
* @URL https://l2wiki.com/Unbelievable_Sight
|
||||
* @author Gigi
|
||||
*/
|
||||
public final class Q10831_UnbelievableSight extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int BELAS = 34056;
|
||||
// Monsters
|
||||
private static final int EL_FLOATO = 23559;
|
||||
private static final int KERBEROS_LAGER = 23550;
|
||||
private static final int KERBEROS_FORT = 23551;
|
||||
private static final int KERBEROS_NERO = 23552;
|
||||
private static final int FURY_SYLPH_BARRENA = 23553;
|
||||
private static final int FURY_SYLPH_TEMPTRESS = 23555;
|
||||
private static final int FURY_SYLPH_PURKA = 23556;
|
||||
private static final int FURY_KERBEROS_LEGER = 23557;
|
||||
private static final int FURY_KERBEROS_NERO = 23558;
|
||||
// Item's
|
||||
private static final int UNBALANCED_ENERGY = 45822;
|
||||
private static final int MARK_OF_TRUST_LOW_GRADE = 45840;
|
||||
private static final int SPIRIT_EVIL_TOUGHT_PIACE = 46130;
|
||||
private static final int SOE = 46158;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 100;
|
||||
|
||||
public Q10831_UnbelievableSight()
|
||||
{
|
||||
super(10831);
|
||||
addStartNpc(BELAS);
|
||||
addTalkId(BELAS);
|
||||
addKillId(EL_FLOATO);
|
||||
addKillId(KERBEROS_LAGER, KERBEROS_FORT, KERBEROS_NERO, FURY_SYLPH_BARRENA, FURY_SYLPH_TEMPTRESS, FURY_SYLPH_PURKA, FURY_KERBEROS_LEGER, FURY_KERBEROS_NERO);
|
||||
registerQuestItems(UNBALANCED_ENERGY);
|
||||
addCondMinLevel(MIN_LEVEL, "34056-00.htm");
|
||||
addCondCompletedQuest(Q10830_TheLostGardenOfSpirits.class.getSimpleName(), "34056-00.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "34056-02.htm":
|
||||
case "34056-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34056-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34056-07.html":
|
||||
{
|
||||
giveItems(player, SOE, 1);
|
||||
giveItems(player, SPIRIT_EVIL_TOUGHT_PIACE, 1);
|
||||
addExpAndSp(player, 5932440000L, 14237820);
|
||||
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 = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (!hasQuestItems(player, MARK_OF_TRUST_LOW_GRADE))
|
||||
{
|
||||
htmltext = "noItem.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34056-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "34056-05.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34056-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isCond(1))
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case KERBEROS_LAGER:
|
||||
case KERBEROS_FORT:
|
||||
case KERBEROS_NERO:
|
||||
case FURY_SYLPH_BARRENA:
|
||||
case FURY_SYLPH_TEMPTRESS:
|
||||
case FURY_SYLPH_PURKA:
|
||||
case FURY_KERBEROS_LEGER:
|
||||
case FURY_KERBEROS_NERO:
|
||||
{
|
||||
final L2Npc mob = addSpawn(EL_FLOATO, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||
addAttackPlayerDesire(mob, killer, 5);
|
||||
break;
|
||||
}
|
||||
case EL_FLOATO:
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, UNBALANCED_ENERGY, 1, 100, 0.5, true))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/noItem.htm
vendored
Normal file
4
L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10831_UnbelievableSight/noItem.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
You don't meet the requirements. How can you not know that?<br>
|
||||
(This quest may only be undertaken by characters with a Mark of Trust (Low-grade).)
|
||||
</body></html>
|
@ -410,6 +410,7 @@ import quests.Q10826_LuckBefittingOfTheStatus.Q10826_LuckBefittingOfTheStatus;
|
||||
import quests.Q10827_StepUpToLead.Q10827_StepUpToLead;
|
||||
import quests.Q10829_InSearchOfTheCause.Q10829_InSearchOfTheCause;
|
||||
import quests.Q10830_TheLostGardenOfSpirits.Q10830_TheLostGardenOfSpirits;
|
||||
import quests.Q10831_UnbelievableSight.Q10831_UnbelievableSight;
|
||||
|
||||
/**
|
||||
* @author NosBit
|
||||
@ -810,7 +811,8 @@ public class QuestMasterHandler
|
||||
Q10826_LuckBefittingOfTheStatus.class,
|
||||
Q10827_StepUpToLead.class,
|
||||
Q10829_InSearchOfTheCause.class,
|
||||
Q10830_TheLostGardenOfSpirits.class
|
||||
Q10830_TheLostGardenOfSpirits.class,
|
||||
Q10831_UnbelievableSight.class
|
||||
};
|
||||
|
||||
public static void main(String[] args)
|
||||
|
Loading…
Reference in New Issue
Block a user