Relics of the Old Empire
- ID
- 619
- Название
- Relics of the Old Empire
- start_npcs_json
- []
- npc_ids_json
- []
- constants_json
- {}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: ["GHOST_OF_ADVENTURER"]
- Источник
- game/data/scripts/quests/Q00619_RelicsOfTheOldEmpire/Q00619_RelicsOfTheOldEmpire.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 74) ? "31538-02.htm" : "31538-01.htm";
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, getRandomEntry(RECIPES), 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31538-01.htm] Ghost of Adventurer: I came here in search of treasure to reverse my losses... And was killed before I even laid eyes on any! It's so unfair! I must get some treasure! Of course, they say that all the good treasure has already been stolen by graverobbers! Hmmm... I remember overhearing some gossip that a group of aristocrats were slaugtered at this sepulcher by evil creatures. I don't mean any disrespect, but if you hunt the evil creatures, you might recover some accessories or jewelry carried by the aristocrats! If you find any would you bring them to me? "I'll do it."
[31538-02.htm] Ghost of Adventurer: I came here in search of treasure to reverse my losses... And was killed before I even laid eyes on any! It's so unfair! I must get some treasure! Of course, they say that all the good treasure has already been stolen by graverobbers! Hmmm... I remember overhearing some gossip that a group of aristocrats were slaugtered at this sepulcher by evil creatures. Perhaps the treasure from those slain aristocrats might still be there... But this is far too dangerous of a mission for you to take on... (This quest may only be undertaken by a character of level 74 and above.)
[31538-03.htm] Ghost of Adventurer: Please, do this for me! Hunt the monsters in the Imperial Tomb. Bring me 1000 relics and I'll give you some scraps of paper I've collected. Many people really like my scraps of paper. I'm not sure, but I think they're some sort of weapon recipes... While you're doing this, you may find a sepulcher pass that was carried by one of the aristocrats. Ask the nameless ghost near the Four Sepulchers, he will tell you what it's for.
[31538-04.htm] Ghost of Adventurer: Great! You brought 1000 relics! Do you want to trade them for a piece of paper? Did you find a sepulcher pass? Ask the nameless ghost near the Four Sepulchers, he'll tell you what it's for. "I don't want to trade now." "I want to trade the relics for a piece of paper." "I want to quit."
[31538-06.htm] Ghost of Adventurer: You don't have 1000 relics yet? Hunt the monsters in the Imperial Tomb, you should be able to obtain them. Keep trying! Collect 1000 relics and bring them to me, I'll give you a very nice piece of paper, supposedly a recipe for some sort of weapon. Ah, I see that you have the sepulcher pass! Ask the nameless ghost near the Four Sepulchers, he'll tell you what it's for. "I'll continue collecting relics." "I want to stop collecting relics."
[31538-07.htm] Ghost of Adventurer: You don't have 1000 relics yet? Hunt the monsters in the Imperial Tomb, you should be able to obtain them. Keep trying! Collect 1000 relics and bring them to me, I'll give you a very nice piece of paper, supposedly a recipe for some sort of weapon. And while you're at it, look for a sepulcher pass that was carried by one of the aristocrats! "I'll continue collecting relics." "I want to stop collecting relics."
[31538-08.htm] Ghost of Adventurer: Thank you for continuing to search for relics. Hunt the monsters in the Imperial Tomb, you should be able to find more.
[31538-09.htm] Ghost of Adventurer: Here you go! Oh, you like it? I prefer the relics! Bring some more and I'll give you more scraps of paper.
[31538-10.htm] Ghost of Adventurer: A quitter, eh? Goodbye.
Исходник условий и наград (Java)
/*
* Copyright (c) 2013 L2jMobius
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package quests.Q00619_RelicsOfTheOldEmpire;
import org.l2jmobius.gameserver.entity.actor.Npc;
import org.l2jmobius.gameserver.entity.actor.Player;
import org.l2jmobius.gameserver.mechanics.script.Quest;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00619_RelicsOfTheOldEmpire extends Quest
{
// NPC
private static int GHOST_OF_ADVENTURER = 31538;
// Items
private static int RELICS = 7254;
private static int ENTRANCE = 7075;
// Rewards ; all S grade weapons recipe (60%)
private static int[] RECIPES =
{
6881,
6883,
6885,
6887,
6891,
6893,
6895,
6897,
6899,
7580
};
public Q00619_RelicsOfTheOldEmpire()
{
super(619, "Relics of the Old Empire");
registerQuestItems(RELICS);
addStartNpc(GHOST_OF_ADVENTURER);
addTalkId(GHOST_OF_ADVENTURER);
for (int id = 21396; id <= 21434; id++)
{
// IT monsters
addKillId(id);
}
// monsters at IT entrance
addKillId(21798, 21799, 21800);
for (int id = 18120; id <= 18256; id++)
{
// Sepulchers monsters
addKillId(id);
}
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31538-03.htm":
{
st.startQuest();
break;
}
case "31538-09.htm":
{
if (getQuestItemsCount(player, RELICS) >= 1000)
{
htmltext = "31538-09.htm";
takeItems(player, RELICS, 1000);
giveItems(player, getRandomEntry(RECIPES), 1);
}
else
{
htmltext = "31538-06.htm";
}
break;
}
case "31538-10.htm":
{
st.exitQuest(true, true);
break;
}
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() < 74) ? "31538-02.htm" : "31538-01.htm";
break;
}
case State.STARTED:
{
if (getQuestItemsCount(player, RELICS) >= 1000)
{
htmltext = "31538-04.htm";
}
else if (hasQuestItems(player, ENTRANCE))
{
htmltext = "31538-06.htm";
}
else
{
htmltext = "31538-07.htm";
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if ((qs == null) || !qs.isStarted())
{
return;
}
final Player partyMember = qs.getPlayer();
giveItemRandomly(partyMember, npc, RELICS, 1, 0, 1, true);
if (getRandom(100) < 30)
{
giveItemRandomly(partyMember, npc, ENTRANCE, 1, 0, 1, true);
}
}
}