Addition of quests todo file.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
We've recently seen a drop in the morale of the soldiers of Gracia. There is a rumor that some soldiers who ventured near the Seed of Immotality saw <font color="LEVEL">something strange</font>. Perhaps it was a ghost or an evil spirit; some say they saw a beautiful woman. But when they approached it, it disappeared -- only to appear suddenly elsewhere and attack them! Now our soldiers are frightened to venture outside the Barrier Orb. Pitiful, isn't it?<br>
|
||||
Perhaps you could go out and determine the truth of these rumors. How about it? Will you help me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-03.htm">"What should I do?"</Button>
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
We've recently seen a drop in the morale of the soldiers of Gracia. There is a rumor that some soldiers who ventured near the Seed of Immotality saw <font color="LEVEL">something strange</font>. Perhaps it was a ghost or an evil spirit; some say they saw a beautiful woman. But when they approached it, it disappeared -- only to appear suddenly elsewhere and attack them! Now our soldiers are frightened to venture outside the Barrier Orb. Pitiful, isn't it?<br>
|
||||
If you were a more experienced adventurer, perhaps you could go out and determine the truth of these rumors.<br>
|
||||
(Only characters who are level 78 and above and have completed the "Good Day for Flying" quest may undertake this quest.)
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
We think that what the soldiers saw might have been a monster called <font color="LEVEL">Banshee Queen Enira</font>. If so, that would be a dangerous enemy. In can create fear using <font color="LEVEL">Floating Zombies</font> and <font color="LEVEL">Floating Skulls</font>.<br>
|
||||
Still, experienced soldiers shouldn't be reduced to a gaggle of frightened children! If I weren't needed here to safeguard the Barrier Orb, I'd go deal with this myself. Since I can't go, I need a skilled adventurer. How about it? With your ability, I'm you can handle whatever you encounter out there.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-04.htm">Say yes.</Button>
|
||||
</body></html>
|
@@ -1,4 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
Excellent!<br>
|
||||
Then go defeat <font color="LEVEL">Banshee Queen Enira</font> that lurks near the Seed of Infinity. You should also destroy the <font color="LEVEL">Floating Zombies and Floating Skulls</font> that always accompany this monster. As evidence of your victory, bring back the <font color="LEVEL">Banshee Queen's Eye</font> as well as <font color="LEVEL">Skeletal Remains</font> from the <font color="LEVEL">Floating Zombies and Floating Skulls</font>. I promise you that you will be rewarded for your help. But don't forget that these monsters only appear at night!
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
You haven't left yet?! You promised to go destroy <font color="LEVEL">Banshee Queen Enira</font>. I'll also reward you for destroying the <font color="LEVEL">Floating Skulls and Floating Zombies</font>. Remember, you'll have to go at night. I can't believe an adventurer like you would have second thoughts about this mission!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-08.html">"Not a problem. Leave it to me."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-09.html">"I have a bad feeling about this. Count me out."</Button>
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
Ah! You're back? What's this? You couldn't defeat that vile monster? That's unfortunate, but a promise is a promise. Here's a reward for your other efforts in this matter. But you're not giving up already, are you? Please destroy <font color="LEVEL">Banshee Queen Enira</font>! I'll also reward you for eliminating the <font color="LEVEL">Floating Skulls and Floating Zombies</font>. Just remember, you'll have to go at night. Are you ready?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-08.html">"I'll try again."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-09.html">"I don't really feel like it. I think I'll quit."</Button>
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
Oh! You've returned? Ah, you have the Banshee Queen's Eye! Thanks to this proof, I'm sure the soldiers will feel better about the whole situation. Thank you very much! Don't worry about the reward. I will give more for destroying the Floating Skulls and Floating Zombies. Can you also make sure that the <font color="LEVEL">Banshee Queen</font> hasn't reappeared? The power of the Seed of Infinity can resurrect even these creatures, making it necessary to destroy them several times. Any help you can give me will be much appreciated. Remember, you have to hunt them at night. You're not going to stop now, are you?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-08.html">"I'll head back out."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00701_ProofOfExistence 32559-09.html">"That's all for me."</Button>
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
Thank you! I will give you a generous reward for the <font color="LEVEL">Banshee Queen's Eye</font> and the <font color="LEVEL">Deadman's Remains</font> you obtained in your hunting. Good luck!
|
||||
</body></html>
|
@@ -1,3 +0,0 @@
|
||||
<html><body>War Mage Artius:<br>
|
||||
I'm sorry to hear that, but I suppose there's nothing I can say to change your mind. You must have your reasons. Well, good luck to you.
|
||||
</body></html>
|
@@ -1,189 +0,0 @@
|
||||
/*
|
||||
* 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.Q00701_ProofOfExistence;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
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.Q10273_GoodDayToFly.Q10273_GoodDayToFly;
|
||||
|
||||
/**
|
||||
* Proof of Existence (701)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00701_ProofOfExistence extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int ARTIUS = 32559;
|
||||
// Items
|
||||
private static final int DEADMANS_REMAINS = 13875;
|
||||
private static final int BANSHEE_QUEENS_EYE = 13876;
|
||||
// Monsters
|
||||
private static final int ENIRA = 25625;
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
MOBS.put(22606, 518); // Floating Skull
|
||||
MOBS.put(22607, 858); // Floating Skull
|
||||
MOBS.put(22608, 482); // Floating Zombie
|
||||
MOBS.put(22609, 466); // Floating Zombie
|
||||
MOBS.put(25629, 735); // Floating Skull (Enira's Evil Spirit)
|
||||
MOBS.put(25630, 391); // Floating Zombie (Enira's Evil Spirit)
|
||||
}
|
||||
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 78;
|
||||
|
||||
public Q00701_ProofOfExistence()
|
||||
{
|
||||
super(701, Q00701_ProofOfExistence.class.getSimpleName(), "Proof of Existence");
|
||||
addStartNpc(ARTIUS);
|
||||
addTalkId(ARTIUS);
|
||||
addKillId(MOBS.keySet());
|
||||
addKillId(ENIRA);
|
||||
registerQuestItems(DEADMANS_REMAINS, BANSHEE_QUEENS_EYE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "32559-03.htm":
|
||||
case "32559-08.html":
|
||||
{
|
||||
break;
|
||||
}
|
||||
case "32559-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "32559-09.html":
|
||||
{
|
||||
qs.exitQuest(true, true);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(player, 1);
|
||||
if (member == null)
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
if (npc.getId() == ENIRA)
|
||||
{
|
||||
final int chance = getRandom(1000);
|
||||
final int count;
|
||||
if (chance < 708)
|
||||
{
|
||||
count = getRandom(2) + 1;
|
||||
}
|
||||
else if (chance < 978)
|
||||
{
|
||||
count = getRandom(3) + 3;
|
||||
}
|
||||
else if (chance < 994)
|
||||
{
|
||||
count = getRandom(4) + 6;
|
||||
}
|
||||
else if (chance < 998)
|
||||
{
|
||||
count = getRandom(4) + 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
count = getRandom(5) + 14;
|
||||
}
|
||||
giveItems(player, BANSHEE_QUEENS_EYE, count);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else if (getRandom(1000) < MOBS.get(npc.getId()))
|
||||
{
|
||||
giveItems(player, DEADMANS_REMAINS, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
return super.onKill(npc, player, 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.CREATED:
|
||||
{
|
||||
final QuestState qst = player.getQuestState(Q10273_GoodDayToFly.class.getSimpleName());
|
||||
htmltext = ((player.getLevel() >= MIN_LEVEL) && (qst != null) && qst.isCompleted()) ? "32559-01.htm" : "32559-02.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (hasQuestItems(player, BANSHEE_QUEENS_EYE))
|
||||
{
|
||||
giveAdena(player, (getQuestItemsCount(player, DEADMANS_REMAINS) * 2500) + (getQuestItemsCount(player, BANSHEE_QUEENS_EYE) * 50000) + 23835, true);
|
||||
takeItems(player, BANSHEE_QUEENS_EYE, -1);
|
||||
takeItems(player, DEADMANS_REMAINS, -1);
|
||||
htmltext = "32559-07.html";
|
||||
}
|
||||
else if (hasQuestItems(player, DEADMANS_REMAINS))
|
||||
{
|
||||
giveAdena(player, getQuestItemsCount(player, DEADMANS_REMAINS) * 2500, true);
|
||||
takeItems(player, DEADMANS_REMAINS, -1);
|
||||
htmltext = "32559-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32559-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user