This commit is contained in:
6
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-01.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-01.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
Do you know about the Lavasauruses?<br>
|
||||
We don't know who made them, but they are believed to contain the power of dragons.<br>
|
||||
If i research the Lavasauruses, I think I would be able to discover the dragon's power...<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-03.htm">"Can I do anything to help?"</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-02.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-02.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
(Only characters above level 76 can perform this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
Oh! You'll be more then adequate.<br>
|
||||
Can you bring me some Lavasaurus head, body, horn, and powerstone fragments? They can be found here in the Forge of the Gods.<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-04.htm">Say that you will get them for him</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-04.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-04.htm
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
I'm truly thankful for your help. Once you have collected 10 each of the "Lavasaurus head fragments, body fragments, horn fragments and powerstone fragments," bring them to me.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
Looks like you haven't collected all the Lavasaurus fragments yet. You need to bring 10 each of the Lavasaurus head fragments, body fragments, horn fragments and powerstone fragments.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-06.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-06.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Incredible! You managed to get them all!<br>
|
||||
Now lets see if we can discover the secret of the dragons through the Lavasaurus fragments...<br>
|
||||
Hmmm.... If I put this here, and it goes like... no, that doesn't fit. Maybe if I... no...<br>
|
||||
Huh... This might take more time than I thought. Please come back later and I SHOULD have the research results.
|
||||
</body></html>
|
10
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-07.html
vendored
Normal file
10
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-07.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
What interesting research!<br>
|
||||
I tried various things with the fragments, and was able to make a totem containing the power of the dragons.<br>
|
||||
The effect differs, depending on how the fragments are combined. There is also a problem with range of output, so it can only be used where the power of the dragons can be felt. But still, the effect is... well... startling.<br>
|
||||
There are four types of totems.<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-08.html">Totem of Body</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-09.html">Totem of Spirit</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-10.html">Totem of Fortitude</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-11.html">Totem of Courage</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-08.html
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-08.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
The Totem of Body represents the dragon's physical regeneration.<br>
|
||||
If you are within range of the totem's effect, your physical regeneration will increase.<br>
|
||||
Are you curious about the other totems<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-09.html">Totem of Spirit</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-10.html">Totem of Fortitude<br><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-11.html">Totem of Courage</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-12.html">Totem of Body, please.</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-09.html
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-09.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
The Totem of Spirit represents the dragon's spirit regeneration.<br>
|
||||
If you are within range of the totem's effect, your mana regeneration will increase.<br>
|
||||
Are you curious about the other totems<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-08.html">Totem of Body</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-10.html">Totem of Fortitude<br><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-11.html">Totem of Courage</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-13.html">Totem of Spirit, please.</a>
|
||||
</body></html>
|
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-10.html
vendored
Normal file
9
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-10.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
The Totem of Fortitude is a physical representation of the dragon's body.<br>
|
||||
If you are within range of the totem's effect, your P. Def. will increase.<br>
|
||||
Are you curious about the other totems<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-08.html">Totem of Body</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-09.html">Totem of Spirit<br><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-11.html">Totem of Courage</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-14.html">Totem of Fortitude, please.</a>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-11.html
vendored
Normal file
8
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-11.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
The Totem of Courage is a physical representation of the dragon's spirit.<br>
|
||||
If you are within range of the totem's effect, your magic resistance will increase.<br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-08.html">Totem of Body</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-09.html">Totem of Spirit</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-10.html">Totem of Fortitude</a><br>
|
||||
<a action="bypass -h Quest Q00901_HowLavasaurusesAreMade 32049-15.html">Totem of Courage, please.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-12.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-12.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Good! I'll give you a totem of body. It'll help you a lot.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-13.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-13.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Good! I'll give you a totem of spirit. It'll help you a lot.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-14.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-14.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Good! I'll give you a totem of fortitude. It'll help you a lot.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-15.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-15.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Blacksmith of Wind Rooney:<br>
|
||||
Good! I'll give you a totem of bravery. It'll help you a lot.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-16.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/32049-16.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Blacksmith of the Wind Rooney:<br>
|
||||
Thanks for obtaining the Lavasaurus fragments.<br>
|
||||
If you obtain more fragments, please bring them to me.<br>
|
||||
(This can can be completed once a day. This quest gets initialized everyday at 6:30 am.)
|
||||
</body></html>
|
199
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/Q00901_HowLavasaurusesAreMade.java
vendored
Normal file
199
trunk/dist/game/data/scripts/quests/Q00901_HowLavasaurusesAreMade/Q00901_HowLavasaurusesAreMade.java
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
/*
|
||||
* 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.Q00901_HowLavasaurusesAreMade;
|
||||
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.enums.QuestType;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* How Lavasauruses Are Made (901)
|
||||
* @author UnAfraid, nonom, malyelfik
|
||||
*/
|
||||
public class Q00901_HowLavasaurusesAreMade extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int ROONEY = 32049;
|
||||
// Monsters
|
||||
private static final int LAVASAURUS_NEWBORN = 18799;
|
||||
private static final int LAVASAURUS_FLEDGIING = 18800;
|
||||
private static final int LAVASAURUS_ADULT = 18801;
|
||||
private static final int LAVASAURUS_ELDERLY = 18802;
|
||||
// Items
|
||||
private static final int FRAGMENT_STONE = 21909;
|
||||
private static final int FRAGMENT_HEAD = 21910;
|
||||
private static final int FRAGMENT_BODY = 21911;
|
||||
private static final int FRAGMENT_HORN = 21912;
|
||||
// Rewards
|
||||
private static final int TOTEM_OF_BODY = 21899;
|
||||
private static final int TOTEM_OF_SPIRIT = 21900;
|
||||
private static final int TOTEM_OF_COURAGE = 21901;
|
||||
private static final int TOTEM_OF_FORTITUDE = 21902;
|
||||
|
||||
public Q00901_HowLavasaurusesAreMade()
|
||||
{
|
||||
super(901, Q00901_HowLavasaurusesAreMade.class.getSimpleName(), "How Lavasauruses Are Made");
|
||||
addStartNpc(ROONEY);
|
||||
addTalkId(ROONEY);
|
||||
addKillId(LAVASAURUS_NEWBORN, LAVASAURUS_FLEDGIING, LAVASAURUS_ADULT, LAVASAURUS_ELDERLY);
|
||||
registerQuestItems(FRAGMENT_STONE, FRAGMENT_HORN, FRAGMENT_HEAD, FRAGMENT_BODY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "32049-03.htm":
|
||||
case "32049-08.html":
|
||||
case "32049-09.html":
|
||||
case "32049-10.html":
|
||||
case "32049-11.html":
|
||||
break;
|
||||
case "32049-04.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "32049-12.html":
|
||||
st.giveItems(TOTEM_OF_BODY, 1);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
case "32049-13.html":
|
||||
st.giveItems(TOTEM_OF_SPIRIT, 1);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
case "32049-14.html":
|
||||
st.giveItems(TOTEM_OF_FORTITUDE, 1);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
case "32049-15.html":
|
||||
st.giveItems(TOTEM_OF_COURAGE, 1);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && st.isCond(1))
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case LAVASAURUS_NEWBORN:
|
||||
giveQuestItems(st, FRAGMENT_STONE);
|
||||
break;
|
||||
case LAVASAURUS_FLEDGIING:
|
||||
giveQuestItems(st, FRAGMENT_HEAD);
|
||||
break;
|
||||
case LAVASAURUS_ADULT:
|
||||
giveQuestItems(st, FRAGMENT_BODY);
|
||||
break;
|
||||
case LAVASAURUS_ELDERLY:
|
||||
giveQuestItems(st, FRAGMENT_HORN);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, player, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (st.getPlayer().getLevel() >= 76) ? "32049-01.htm" : "32049-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32049-05.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
if (gotAllQuestItems(st))
|
||||
{
|
||||
st.takeItems(FRAGMENT_STONE, -1);
|
||||
st.takeItems(FRAGMENT_HEAD, -1);
|
||||
st.takeItems(FRAGMENT_BODY, -1);
|
||||
st.takeItems(FRAGMENT_HORN, -1);
|
||||
htmltext = "32049-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32049-07.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
if (st.isNowAvailable())
|
||||
{
|
||||
st.setState(State.CREATED);
|
||||
htmltext = (st.getPlayer().getLevel() >= 76) ? "32049-01.htm" : "32049-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32049-16.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void giveQuestItems(QuestState st, int itemId)
|
||||
{
|
||||
if (st.getQuestItemsCount(itemId) < 10)
|
||||
{
|
||||
st.giveItems(itemId, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
else if (gotAllQuestItems(st))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean gotAllQuestItems(QuestState st)
|
||||
{
|
||||
return (st.getQuestItemsCount(FRAGMENT_STONE) >= 10) && (st.getQuestItemsCount(FRAGMENT_HEAD) >= 10) && (st.getQuestItemsCount(FRAGMENT_BODY) >= 10) && (st.getQuestItemsCount(FRAGMENT_HORN) >= 10);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user