This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
You have a <font color="LEVEL">Portal Stone</font>... it means that you are one of the few who can challenge Antharas.<br>
|
||||
Do you want to hear something interesting about Antharas's underlings, the Tarask Dragon and Behemoth Dragon?<br>
|
||||
<a action="bypass -h Quest Q00903_TheCallOfAntharas 30755-05.htm">Ask about Antharas's underlings.</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-02.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-02.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Thank you for obtaining the Tarask Dragon and Behemoth Dragon leathers.<br>
|
||||
If you obtain them again, bring them to me.<br>
|
||||
(This quest can be completed only once a day. This quest gets initialized everyday at 6:30 am.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
You are not qualified to hear my request...<br>
|
||||
(Only characters above level 83 can undertake this quest.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
The fact that you don't have the <font color="LEVEL">Portal Stone</font> means you did not satisfy the minimum requirement for this request.<br>
|
||||
If you really want to hear my request, you must first be recognized by <font color="LEVEL">Gabrielle</font> in Giran Village.
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-05.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-05.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
The leather from these beasts contains a mysterious power of the land dragon Antharas. Why is this interesting? Imagine the possibilities... Antharas leather jackets... or boots... well maybe nothing quite so silly but you get the idea.<br>
|
||||
I would love to have some of their hides in order to test out my theory.<br>
|
||||
If you happen to fight Antharas and kill these beasts would you bring me their leather? I would be willing to compensate you for your efforts.<br>
|
||||
<a action="bypass -h Quest Q00903_TheCallOfAntharas 30755-06.html">Agree to help.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Thank you sir! Please let me know once you have obtained the leather from these beasts.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Very kind of you sir! And here is you rewa-wait a second. You don't any of the items I have requested. Very sneaky of you sir... very sneaky. Come back when you have Behemoth Dragon Leather and Tarask Dragon Leather.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/30755-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Watcher of Antharas Theodric:<br>
|
||||
Hmmm... leather from the Tarask and Behemoth dragons? Let's see... yes these do appear to contain the power Antharas in these hides. I appreciate your time in gathering these for me. Now give me a moment...<br>
|
||||
Here, this scroll is made from the same leather you have collected from me. It allows you to teleport instantly to the Heart of Warding.<br>
|
||||
While you should have no need for it now, when the time comes for you to face Antharas again this should save you some leg work.
|
||||
</body></html>
|
199
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/Q00903_TheCallOfAntharas.java
vendored
Normal file
199
trunk/dist/game/data/scripts/quests/Q00903_TheCallOfAntharas/Q00903_TheCallOfAntharas.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.Q00903_TheCallOfAntharas;
|
||||
|
||||
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;
|
||||
import com.l2jserver.gameserver.util.Util;
|
||||
|
||||
/**
|
||||
* The Call of Antharas (903)
|
||||
* @author Zoey76
|
||||
*/
|
||||
public class Q00903_TheCallOfAntharas extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int THEODRIC = 30755;
|
||||
// Monsters
|
||||
private static final int BEHEMOTH_DRAGON = 29069;
|
||||
private static final int TARASK_DRAGON = 29190;
|
||||
// Items
|
||||
private static final int TARASK_DRAGONS_LEATHER_FRAGMENT = 21991;
|
||||
private static final int BEHEMOTH_DRAGON_LEATHER = 21992;
|
||||
private static final int SCROLL_ANTHARAS_CALL = 21897;
|
||||
private static final int PORTAL_STONE = 3865;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 83;
|
||||
|
||||
public Q00903_TheCallOfAntharas()
|
||||
{
|
||||
super(903, Q00903_TheCallOfAntharas.class.getSimpleName(), "The Call of Antharas");
|
||||
addStartNpc(THEODRIC);
|
||||
addTalkId(THEODRIC);
|
||||
addKillId(BEHEMOTH_DRAGON, TARASK_DRAGON);
|
||||
registerQuestItems(TARASK_DRAGONS_LEATHER_FRAGMENT, BEHEMOTH_DRAGON_LEATHER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if ((st != null) && Util.checkIfInRange(1500, npc, player, false))
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case BEHEMOTH_DRAGON:
|
||||
{
|
||||
st.giveItems(BEHEMOTH_DRAGON_LEATHER, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
break;
|
||||
}
|
||||
case TARASK_DRAGON:
|
||||
{
|
||||
st.giveItems(TARASK_DRAGONS_LEATHER_FRAGMENT, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (st.hasQuestItems(BEHEMOTH_DRAGON_LEATHER) && st.hasQuestItems(TARASK_DRAGONS_LEATHER_FRAGMENT))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
|
||||
{
|
||||
switch (event)
|
||||
{
|
||||
case "30755-05.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "30755-06.html":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
executeForEachPlayer(killer, npc, isSummon, true, false);
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "30755-03.html";
|
||||
}
|
||||
else if (!st.hasQuestItems(PORTAL_STONE))
|
||||
{
|
||||
htmltext = "30755-04.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30755-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (st.getCond())
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
htmltext = "30755-07.html";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
st.giveItems(SCROLL_ANTHARAS_CALL, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "30755-08.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (!st.isNowAvailable())
|
||||
{
|
||||
htmltext = "30755-02.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.setState(State.CREATED);
|
||||
if (player.getLevel() < MIN_LEVEL)
|
||||
{
|
||||
htmltext = "30755-03.html";
|
||||
}
|
||||
else if (!st.hasQuestItems(PORTAL_STONE))
|
||||
{
|
||||
htmltext = "30755-04.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30755-01.htm";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user