Quest Hatchling Research (10534).
Contributed by gigilo1968.
This commit is contained in:
parent
8758b8ec5b
commit
47de241628
@ -90,7 +90,6 @@
|
||||
10530 Kekropus' Letter, The Dragon's Transition Achieve Level 81
|
||||
10531 Odd Happenings at Dragon Valley Strange Things Afoot in the Valley
|
||||
10532 Uncovering the Conspiracy Eliminate the Undead and Dragons
|
||||
10534 Hatchling Research Bizarre Research
|
||||
10537 Kamael Disarray To Retbach
|
||||
10538 Giant's Evolution Cause of failed evolution
|
||||
10539 Energy Supply Cutoff Plan Defeat Halisha's Henchman
|
||||
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-01.htm
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-01.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Nobody wants to listen to my request. Are you going to turn me down as well?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10534_HatchlingResearch 34221-02.htm">"What is your request?"</Button>
|
||||
</body></html>
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-02.htm
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-02.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Are you know, there are many types of people in the world. This includes people with an extraordinary amount of curiosity. I know people whose curiosity is second none. The sad thing is, they don't have the courage to take on danger in order to sabate that extraordinary curiosity. Well, among those who survived, at least.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10534_HatchlingResearch 34221-03.htm">"Go on"</Button>
|
||||
</body></html>
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-03.htm
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-03.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Still, not everything is against us Some of them have huge inheritances. These are ones who can take care of themselves handsomely, and have money to spare to spend on satisfying their curiosities. It's thanks to them that I'm here, of course. I'm locking for explorers who will help to satisfy their curiosity, no questions asked. What about you? Do you have any questions to ask?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10534_HatchlingResearch 34221-04.htm">"I don't"</Button>
|
||||
</body></html>
|
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-04.htm
vendored
Normal file
5
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-04.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
You're smart. That's good. Go to Dragon Valley, defeat the <font color="LEVEL">Dragon Hatchlings</font>, and bring back <font color="LEVEL">50 Hatchling Flesh.</font><br>
|
||||
These hatchlings are very weary. When they are attacked, they will flee nearly Dragon Vortex, and transform into Leopard Dragons. You can also obtain Hatchling Flesh by slaying these <font color="LEVEL">Leopard Dragons.</font><br>
|
||||
Bring back what's been asked of you, and you will receive your reward. No questions necessary.<br>
|
||||
</body></html>
|
3
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-05.html
vendored
Normal file
3
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-05.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Go to Dragon Valley, You must defeat Dragon Hatchlings or Leopard Dragons and bring <font color="LEVEL">50 Hatchling Flesh.</font><br>
|
||||
</body></html>
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-06.html
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
You've brought them... without asking why I needed them. That's what I like about you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10534_HatchlingResearch 34221-07.html">"Can I have my reward?"</Button>
|
||||
</body></html>
|
3
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-07.html
vendored
Normal file
3
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-07.html
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Good job. You probably don't want to know, but the materials that you collected will be used for secret research. Then fare thee well.<br>
|
||||
</body></html>
|
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-08.htm
vendored
Normal file
4
L2J_Mobius_3.0_Helios/dist/game/data/scripts/quests/Q10534_HatchlingResearch/34221-08.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Researcher Stena:<br>
|
||||
Nobody wants to listen to my request. You... don't even have the skills to take on it.<br>
|
||||
(Only characters with Lv. 81 or above may undertake this quest.)
|
||||
</body></html>
|
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* 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.Q10534_HatchlingResearch;
|
||||
|
||||
import com.l2jmobius.commons.util.CommonUtil;
|
||||
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.model.quest.State;
|
||||
|
||||
/**
|
||||
* Hatchling Research (10534)
|
||||
* @URL https://l2wiki.com/Hatchling_Research
|
||||
* @author Gigi
|
||||
* @date 2017-09-04 - [12:49:15]
|
||||
*/
|
||||
public class Q10534_HatchlingResearch extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int STENA = 34221;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
23434, // Dragon Hatchling
|
||||
23435 // Leopard Dragon
|
||||
};
|
||||
// Item
|
||||
private static final int HATCHLING_FLASH = 46735;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 81;
|
||||
private static final int MAX_LEVEL = 84;
|
||||
|
||||
public Q10534_HatchlingResearch()
|
||||
{
|
||||
super(10534);
|
||||
addStartNpc(STENA);
|
||||
addTalkId(STENA);
|
||||
addKillId(MONSTERS);
|
||||
registerQuestItems(HATCHLING_FLASH);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "34221-08.htm");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34221-02.htm":
|
||||
case "34221-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34221-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34221-07.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 362_053_391, 19_840);
|
||||
qs.exitQuest(QuestType.ONE_TIME, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getNoQuestLevelRewardMsg(player);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "34221-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "34221-05.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "34221-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && qs.isCond(1) && CommonUtil.contains(MONSTERS, npc.getId()) && (getRandom(100) < 70))
|
||||
{
|
||||
giveItems(player, HATCHLING_FLASH, 1);
|
||||
if (getQuestItemsCount(player, HATCHLING_FLASH) >= 50)
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
}
|
@ -329,6 +329,7 @@ import quests.Q10502_FreyaEmbroideredSoulCloak.Q10502_FreyaEmbroideredSoulCloak;
|
||||
import quests.Q10503_FrintezzaEmbroideredSoulCloak.Q10503_FrintezzaEmbroideredSoulCloak;
|
||||
import quests.Q10504_JewelOfAntharas.Q10504_JewelOfAntharas;
|
||||
import quests.Q10505_JewelOfValakas.Q10505_JewelOfValakas;
|
||||
import quests.Q10534_HatchlingResearch.Q10534_HatchlingResearch;
|
||||
import quests.Q10541_TrainLikeTheRealThing.Q10541_TrainLikeTheRealThing;
|
||||
import quests.Q10542_SearchingForNewPower.Q10542_SearchingForNewPower;
|
||||
import quests.Q10543_SheddingWeight.Q10543_SheddingWeight;
|
||||
@ -749,6 +750,7 @@ public class QuestMasterHandler
|
||||
Q10503_FrintezzaEmbroideredSoulCloak.class,
|
||||
Q10504_JewelOfAntharas.class,
|
||||
Q10505_JewelOfValakas.class,
|
||||
Q10534_HatchlingResearch.class,
|
||||
Q10541_TrainLikeTheRealThing.class,
|
||||
Q10542_SearchingForNewPower.class,
|
||||
Q10543_SheddingWeight.class,
|
||||
|
Loading…
Reference in New Issue
Block a user