Some quest additions.
Contributed by hlwrave.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
I ask you to listen to me. Received a request from the Ivory Tower, and I think that you are best suited for this job.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00471_BreakingThroughTheEmeraldSquare 33044-03.htm">Learn about the request</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
You have not inspire me enough confidence. I can not charge you a job. Someday you will be able to help us, but that time has not come yet.<br>
|
||||
(This quest is available after the 97th level.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-03.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-03.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
The Ivory Tower of great interest to the monsters of Beleth Crystal Maze. Was asked to destroy appeared in Pearlescent Hall Mignon Beleth, jailers Emambifi Hell, and get proof of his death. As you look at it? Will you help me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00471_BreakingThroughTheEmeraldSquare 33044-04.html">Agree.</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
All right. I repeat. Destroy jailer Hell Emambifi, Mignon Beleth designed to Pearl Hall.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
All right. I repeat. Destroy jailer Hell Emambifi, Mignon Beleth designed to Pearl Hall.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
How is it? You destroyed henchmen Beleth in Pearlescent Hall?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00471_BreakingThroughTheEmeraldSquare 33044-07.html">Report on the destruction</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
I was not wrong when you choose for the job. Here is the promised reward. If you find the time, come back tomorrow. I will have one more request for you.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00471_BreakingThroughTheEmeraldSquare/33044-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
If you find the time, come back tomorrow. I will have one more request for you.<br>
|
||||
(This activity is available once a day. Quest update occurs daily at 6:30 am.)
|
||||
</body></html>
|
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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.Q00471_BreakingThroughTheEmeraldSquare;
|
||||
|
||||
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.util.Util;
|
||||
|
||||
/**
|
||||
* @author hlwrave
|
||||
* @URL https://l2wiki.com/Breaking_through_the_Emerald_Square
|
||||
*/
|
||||
public class Q00471_BreakingThroughTheEmeraldSquare extends Quest
|
||||
{
|
||||
// Npc
|
||||
public static final int FIOREN = 33044;
|
||||
// Monster
|
||||
public static final int EMABIFI = 25881;
|
||||
// Misc
|
||||
public static final int MIN_LEVEL = 97;
|
||||
// Items
|
||||
public static final int CERTIFICATE = 30387;
|
||||
|
||||
public Q00471_BreakingThroughTheEmeraldSquare()
|
||||
{
|
||||
super(471, Q00471_BreakingThroughTheEmeraldSquare.class.getSimpleName(), "Breaking Through The Emerald Square");
|
||||
addStartNpc(FIOREN);
|
||||
addTalkId(FIOREN);
|
||||
addKillId(EMABIFI);
|
||||
addCondMinLevel(MIN_LEVEL, "33044-02.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "33044-04.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "33044-07.html":
|
||||
{
|
||||
giveItems(player, CERTIFICATE, 8);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33044-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33044-05.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33044-06.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "33044-08.html";
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(killer, npc, isSummon, true, false);
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user