Some quest additions.
Contributed by hlwrave.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
Situation became even more unfavorable. We believed that after the destruction of Baylor everything will be decided by itself…. However, new problem, it seems, arose. And consists it before the fact that the gem Of Fanarion concealed before the crystal labyrinth easily can pass beside the hands Of Beleth and its demons. If this happens, then it is necessary at the point of us tightly. Indeed Beleth - extremely powerful demon. However, first at the point of you one must battle not with it, but with its myrmidon.<br>
|
||||
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00181_DevilsStrikeBackAdventOfBalok 33044-04.htm">To ask about the new devil</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
Peace of before the evil and the cruelty. Is necessary to be trained and to harden itself, in order to survive. You, I see, it is not still ready to fully armed meet everything that the fate prepared for you.<br>
|
||||
(This Quest is accessible after reaching 97 of level and fulfillment of Quest "Flame Hell in the Crystal Prison")
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
We must be warned not only the goddess of death. They also present threat "Children Of Shillen" and the horde of the demons, which appeared here from hell. The need at the point of your aid all grows. I please not to forget you about the development and the self-perfection.<br>
|
||||
(Quest is already completed.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
New demon they call Balok. It appeared before the labyrinth immediately after the loss Of Baylor. I, until now, reflect above the fact, who could call him. Certainly, most likely this made Beleth... However, that to sense to consider above this? One should as soon as possible get rid besides this Balok!<br>
|
||||
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00181_DevilsStrikeBackAdventOfBalok 33044-05.htm">To listen to further</button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-05.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-05.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Fioren:<br>
|
||||
Only you upset the plans Of Baylor, as appeared new threat before the person Of Balok. Unhappy Parnassus How much still the invasions of demons will be able it to survive?<br>
|
||||
Oh, great hero, whose might and bravery does not know boundaries… Can I turn down you with the request to destroy the demon Of Balok?<br>
|
||||
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00181_DevilsStrikeBackAdventOfBalok 33044-06.html">To agree</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
It is clear that Balok where is stronger and more dangerous than Baylor, with which you battled earlier. But I believe that for you there is nothing impossible. Indeed you already proved that you do not surrender under no circumstances. Well, then step. But I will meanwhile pray Eva about your victory. By the way After killing Balok, bring, I please, its sign.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
It is clear that Balok where is stronger and more dangerous than Baylor, with which you battled earlier. But I believe that for you there is nothing impossible. Indeed you already proved that you do not surrender under no circumstances. Well, then step. But I will meanwhile pray Eva about your victory. By the way After killing Balok, bring, I please, its sign.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
I greatly worried about you. It does mean, you did destroy Balok and its demons?<br>
|
||||
<button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00181_DevilsStrikeBackAdventOfBalok reward">To describe about the destruction Of Balok</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Fioren:<br>
|
||||
Thanks! Yes stores you Evan!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-10.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
You selected the roll of the modification of the armors of rank R, 2 pieces. Here, take, if you please.<br1>
|
||||
Yes stores you Evan!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-11.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00181_DevilsStrikeBackAdventOfBalok/33044-11.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Fioren:<br>
|
||||
You selected sack with the amplifier of rank R, 2 pieces. Here, take, if you please.<br1>
|
||||
Yes stores you Evan!
|
||||
</body></html>
|
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* 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.Q00181_DevilsStrikeBackAdventOfBalok;
|
||||
|
||||
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;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
|
||||
/**
|
||||
* @hlwrave https://l2wiki.com/Devils_Strike_Back,_Advent_of_Balok
|
||||
*/
|
||||
public class Q00181_DevilsStrikeBackAdventOfBalok extends Quest
|
||||
{
|
||||
// Npc
|
||||
private static final int FIOREN = 33044;
|
||||
// Monster
|
||||
private static final int BALOK = 29218;
|
||||
// Items
|
||||
private static final int CONTRACT = 17592;
|
||||
private static final int EAR = 17527;
|
||||
private static final int EWR = 17526;
|
||||
private static final int POUCH = 34861;
|
||||
// Misc
|
||||
public static final int MIN_LEVEL = 97;
|
||||
|
||||
public Q00181_DevilsStrikeBackAdventOfBalok()
|
||||
{
|
||||
super(181, Q00181_DevilsStrikeBackAdventOfBalok.class.getSimpleName(), "Devils Strike Back Advent Of Balok");
|
||||
addStartNpc(FIOREN);
|
||||
addTalkId(FIOREN);
|
||||
addKillId(BALOK);
|
||||
registerQuestItems(CONTRACT);
|
||||
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-06.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "reward":
|
||||
{
|
||||
addExpAndSp(player, 886750000, 414855000);
|
||||
giveAdena(player, 37128000, true);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
qs.exitQuest(QuestType.ONE_TIME, true);
|
||||
switch (Rnd.get(2))
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
giveItems(player, EWR, 2);
|
||||
return "33044-09.html";
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
giveItems(player, EAR, 2);
|
||||
return "33044-10.html";
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
giveItems(player, POUCH, 2);
|
||||
return "33044-11.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case FIOREN:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33044-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33044-07.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33044-08.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "33044-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
giveItems(player, CONTRACT, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
}
|
||||
|
||||
@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