This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
If all you did was look from out here at the Plains of the Lizardmen, you'd describe it as a beautiful magical place. If only that were true. I was naive enough to believe that once, but the scars on my skin that I will leave here with will forever remind me of the truth. Look at this... and here... you see? That's from the poisons that cover the Plains. I'm just lucky to be alive. How can I study under these conditions?<br>
|
||||
Further, how does a species survive amidst the cursed magical energy that came from Antharas' blood that flows through the land? Not only survive... they seem to to actually thrive on the magic and poisons. That is the root of my research. How a species could adapt to that?<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-02.htm">Ask about the research.</a>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-02.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
Primarily, I am investigating the intelligence of the Tanta Lizardmen, and whether or not they are cognitive enough to know how much they've changed to fit this new environment. The root of my research lies in the study of their blood... so much blood. But I've used it all and still my results are unsatisfying. Could you possibly gather more of the Tanta's blood for me? it's very important!<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-03.htm">Agree to help.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-03.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-03.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
For the investigation, I'll need at least 100 vials of <font color="LEVEL">Tanta Lizardmen blood</font>. But, if you bring more, I can offer more and greater rewards. The more, the better.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
We're on the right track, but we need much more blood. I calculate that a proper investigation prequires at least 100 vials of Tanta blood.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-05.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-05.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
Well well! You've brought quite a bit of blood. Thanks to you, my research can continue! As soon as we get some results, I'll be sure to share them with you. Hard work deserves proper payment, however. Take your choice.<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut Icarus">Recipe and ingredients of Icarus Spitter</a><br1>
|
||||
<font color="LEVEL">(500 vials of blood)</font><br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut Moirai">Recipe and ingredients of Sealed Moirai armor set</a><br1>
|
||||
<font color="LEVEL">(100 vials of blood)</font>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-06.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-06.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
There you are. I'd like to give you even more if I could. At least take what I have for now. But in the meantime, I can always use more Tanta Lizardmen blood!<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-10.html">Say you will keep helping.</a><br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-11.html">Say you quit.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
I'm sorry but the Recipe and Ingredients of Icarus Spitter is rewarded to the first adventurer to bring me more than <font color="LEVEL">500 vials of Tanta blood.</font>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
Here you are. I'd like to give you even more if I could. At least take what I have for now. But in the mean time, I can always use more Tanta Lizardmen blood!<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-10.html">Say you will keep helping.</a><br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-11.html">Say you quit.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
I'm sorry but the recipe and Ingredients of Sealed Moirai Armor will be given to the first adventurer to bring me more than <font color="LEVEL">more than 100 vials of of Tanta blood</font>.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-10.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-10.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
I knew you would help! You truly have the spirit of a keen researcher and adventurer. But my research must continue. If you could bring me more <font color="LEVEL">Tanta blood</font>, I'd appreciate it.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-11.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-11.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
Hm... I can't reward you if there's not enough Tanta blood. Are you quitting?<br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-10.html">Say you will continue to help.</a><br>
|
||||
<a action="bypass -h Quest Q00287_FiguringItOut 32742-13.html">Say you quit.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-12.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-12.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
I see. That's it then. Perhaps you can help next time.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-13.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-13.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
It is so... And I'm at a loss. We just have to hope for next time.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-14.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/32742-14.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Investigator Laki:<br>
|
||||
At first glance, the Plain of Lizardmen is a beautiful world torn from a fantasy book. It's hard to believe the dangers that lurk there, until you see for yourself. These scars are my lesson to that reality, and my investigations are stalled because of it. Don't go unless you are more prepared.<br>
|
||||
(Only characters with levels of 82 or above, and completed the "Watch What You Eat" quest can play this quest)
|
||||
</body></html>
|
204
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/Q00287_FiguringItOut.java
vendored
Normal file
204
trunk/dist/game/data/scripts/quests/Q00287_FiguringItOut/Q00287_FiguringItOut.java
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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.
|
||||
*
|
||||
* L2J DataPack 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.Q00287_FiguringItOut;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import quests.Q00250_WatchWhatYouEat.Q00250_WatchWhatYouEat;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Figuring It Out! (287)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00287_FiguringItOut extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int LAKI = 32742;
|
||||
private static final Map<Integer, Integer> MONSTERS = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
MONSTERS.put(22768, 509); // Tanta Lizardman Scout
|
||||
MONSTERS.put(22769, 689); // Tanta Lizardman Warrior
|
||||
MONSTERS.put(22770, 123); // Tanta Lizardman Soldier
|
||||
MONSTERS.put(22771, 159); // Tanta Lizardman Berserker
|
||||
MONSTERS.put(22772, 739); // Tanta Lizardman Archer
|
||||
MONSTERS.put(22773, 737); // Tanta Lizardman Magician
|
||||
MONSTERS.put(22774, 261); // Tanta Lizardman Summoner
|
||||
}
|
||||
|
||||
// Items
|
||||
private static final int VIAL_OF_TANTA_BLOOD = 15499;
|
||||
// Rewards
|
||||
private static final ItemHolder[] MOIRAI =
|
||||
{
|
||||
new ItemHolder(15776, 1),
|
||||
new ItemHolder(15779, 1),
|
||||
new ItemHolder(15782, 1),
|
||||
new ItemHolder(15785, 1),
|
||||
new ItemHolder(15788, 1),
|
||||
new ItemHolder(15812, 1),
|
||||
new ItemHolder(15813, 1),
|
||||
new ItemHolder(15814, 1),
|
||||
new ItemHolder(15646, 5),
|
||||
new ItemHolder(15649, 5),
|
||||
new ItemHolder(15652, 5),
|
||||
new ItemHolder(15655, 5),
|
||||
new ItemHolder(15658, 5),
|
||||
new ItemHolder(15772, 1),
|
||||
new ItemHolder(15773, 1),
|
||||
new ItemHolder(15774, 1)
|
||||
};
|
||||
|
||||
private static final ItemHolder[] ICARUS =
|
||||
{
|
||||
new ItemHolder(10381, 1),
|
||||
new ItemHolder(10405, 1),
|
||||
new ItemHolder(10405, 4),
|
||||
new ItemHolder(10405, 4),
|
||||
new ItemHolder(10405, 6),
|
||||
};
|
||||
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 82;
|
||||
|
||||
public Q00287_FiguringItOut()
|
||||
{
|
||||
super(287, Q00287_FiguringItOut.class.getSimpleName(), "Figuring It Out!");
|
||||
addStartNpc(LAKI);
|
||||
addTalkId(LAKI);
|
||||
addKillId(MONSTERS.keySet());
|
||||
registerQuestItems(VIAL_OF_TANTA_BLOOD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "32742-03.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "Icarus":
|
||||
if (st.getQuestItemsCount(VIAL_OF_TANTA_BLOOD) >= 500)
|
||||
{
|
||||
final ItemHolder holder = ICARUS[getRandom(ICARUS.length)];
|
||||
st.giveItems(holder);
|
||||
st.takeItems(VIAL_OF_TANTA_BLOOD, 500);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_FINISH);
|
||||
htmltext = "32742-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32742-07.html";
|
||||
}
|
||||
break;
|
||||
case "Moirai":
|
||||
if (st.getQuestItemsCount(VIAL_OF_TANTA_BLOOD) >= 100)
|
||||
{
|
||||
final ItemHolder holder = MOIRAI[getRandom(MOIRAI.length)];
|
||||
st.giveItems(holder);
|
||||
st.takeItems(VIAL_OF_TANTA_BLOOD, 100);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_FINISH);
|
||||
htmltext = "32742-08.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32742-09.html";
|
||||
}
|
||||
break;
|
||||
case "32742-11.html":
|
||||
if (!st.hasQuestItems(VIAL_OF_TANTA_BLOOD))
|
||||
{
|
||||
st.exitQuest(true, true);
|
||||
htmltext = "32742-12.html";
|
||||
}
|
||||
break;
|
||||
case "32742-13.html":
|
||||
st.exitQuest(true, true);
|
||||
break;
|
||||
case "32742-02.htm":
|
||||
case "32742-10.html":
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
|
||||
if (partyMember == null)
|
||||
{
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
|
||||
if (getRandom(1000) < MONSTERS.get(npc.getId()))
|
||||
{
|
||||
st.giveItems(VIAL_OF_TANTA_BLOOD, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
final QuestState prev = player.getQuestState(Q00250_WatchWhatYouEat.class.getSimpleName());
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = ((player.getLevel() >= MIN_LEVEL) && (prev != null) && prev.isCompleted()) ? "32742-01.htm" : "32742-14.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
htmltext = (st.getQuestItemsCount(VIAL_OF_TANTA_BLOOD) < 100) ? "32742-04.html" : "32742-05.html";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user