To the Primeval Isle
- ID
- 110
- Название
- To the Primeval Isle
- start_npcs_json
- [31338]
- npc_ids_json
- [31338,32113]
- constants_json
- {"ANTON":31338,"MARQUEZ":32113,"ANCIENT_BOOK":8777}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00110_ToThePrimevalIsle/Q00110_ToThePrimevalIsle.java
NPC квеста
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 75) ? "31338-00.htm" : "31338-01.htm";
Выдача предметов, адены и опыта: выражения из Java
giveItems(player, ANCIENT_BOOK, 1); giveAdena(player, 169380, true);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[31338-00.htm] Spellbook Seller Anton: Come back when you are more experienced! (This quest may only be undertaken by a character of level 75 and above.)
[31338-01.htm] Spellbook Seller Anton: Have you heard of the book entitled "Traces of Living Beings in Ancient Times?" While clearing out the library's underground warehouse one day, I discovered a very old, very worn-out book filed with snatches of some ancient language. Believe me when I tell you that my years of working here have made me pretty familiar with most of the ancient tongues, but this language is totally strange to me. I hope to be able to eventually translate it, but right now it has me completely stymied! In any event, I placed it on my shelf and, to my chagrin, eventually forgot about it. But recently I have heard that it may be a very valuable tome -- very valuable indeed! "Ask why it is valuable."
[31338-01a.htm] Spellbook Seller Anton: A few days ago, Clark -- the most avid reader in all Rune Town -- stopped by andasket to see all the books I had cleared out from the underground warehouse. He seemed to be knowledgeable about the subject, so I showed this ancient book to him. You should have seen Clark's face! He cried out and grasped the book to him as though he was embracing a long-lost friend. He told me that, long ago, he was a member of the original Primeval Isle Expedition and a close friend of the expedition's leader, Captain Marquez. This book, he told me, is the only one of its kind. It contains much of the mythology and history of the Primeval Isle. Marquez himself has searched for it for years, but had all but given up hope of ever finding it. "What an amazing coincidence!"
[31338-01b.htm] Spellbook Seller Anton: You're right. It is amazing, isn't it? Clark told Marquez about my discovery, and Marquez wrote to me asking that he be allowed to be obtain the book to assist the writing of his own history of the island. In its wisdom, the fathers of our library decided that the interests of scholarship would be best served by loaning the book to Marquez. But we need someone, preferably an adventurer, willing to transport it to him on Primeval Isle. I don't think the task should be especially difficult, but of course anything so unique and valuable is bount to attract the attention of...well, less savory sorts of people. That's why we want someone with the skill to handle any trouble that may come along. What do you think? Would you like to do it? "Say that you will"
[31338-01c.htm] Spellbook Seller Anton: Please take that book to Marquez at the wharf on Primeval Isle. I know that you'll enjoy meeting him. An old adventurer himself, he always has time to talk to a young up-and-comer such as yourself.
[31338-02.htm] Spellbook Seller Anton: Excellent! Excellent! Marquez will be so pleased! Let me fetch the book for you so you can take it to Marquez. You will find him in the front area of the wharf on Primeval Isle. Obviously, you'll need to take a ship from Rune Port to reach the island. May your journey be uneventful!
[32113-01.htm] Marquez: It doesn't look as though you are here to travel. Do you have anything else to say to me? "Tell him that you've brought the book about primitive creatures."
[32113-02.htm] Marquez: Oh, you're the gutsy one Anton mentioned! Ha-ha-ha! Perhaps you haven't heard of me, though? At first, my sole purpose in founding this place was to obtain freedom and wealth. But I was soon attracted to the innocence and mystery of the island itself. I led an expedition deep into the island's interior, fascinated by all we encountered. It was not without its perils, though -- we were attacked by those powerful dinosaurs and the Elrokians themeselves. Many of our group lost their lives. But some good did come from our efforts -- we estabilished ties of friendship with the Elrokians. I know that I am too old now to venture again into the wild interior, but the island's mystery still quickens my heart. "Tell him that he still looks like an explorer."
[32113-02a.htm] Marquez: Ha ha! Thank you for saying so. But my aching body knows the truth; those days are ended for me. Lately I have at least tried to pass my knowledge to younger, stronger adventures by writing an account of my experiences on the island. I started by recounting my own experiences and stories I learned from the natives. But then I heard of an ancient book detailing the history of Primeval Isle, and I have searched for it for years now without success. I was ready to give up...until Clark sent me a message that he has found it. Ah, I see by your expression that you are as curious about its contents as I am! The ancient language is no dubt foreign to you, but I can translate a few passages if you are interested in hearing them. Shall I do so? "Tell him that you are interested in hearing the translation."
[32113-03.htm] Marquez: Excellent! I see in you the spirit of my younger days! Very well, let me begin: In the days of old, when the circle of the gods was broken, countless races were spawned from that circle. The greatest of them were the gods themselves; the next greatest were the Giants. And the gods gave the Giants authority to rule over the world. All scholars know this story, but in these days men wonder what has become of all creatures brought forth into the world at the breaking of the circle. An interesting beginnig, eh? Clearly this was a learned author; perhaps I will discover in its pages new knowledge about ancient Primeval Isle. I can hardly wait to begin my translation! Thank you for bringing this prize to me.
Исходник условий и наград (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.Q00110_ToThePrimevalIsle;
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 Q00110_ToThePrimevalIsle extends Quest
{
// NPCs
private static final int ANTON = 31338;
private static final int MARQUEZ = 32113;
// Item
private static final int ANCIENT_BOOK = 8777;
public Q00110_ToThePrimevalIsle()
{
super(110, "To the Primeval Isle");
registerQuestItems(ANCIENT_BOOK);
addStartNpc(ANTON);
addTalkId(ANTON, MARQUEZ);
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
if (event.equals("31338-02.htm"))
{
st.startQuest();
giveItems(player, ANCIENT_BOOK, 1);
}
else if (event.equals("32113-03.htm") && hasQuestItems(player, ANCIENT_BOOK))
{
takeItems(player, ANCIENT_BOOK, 1);
giveAdena(player, 169380, true);
st.exitQuest(false, true);
}
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() < 75) ? "31338-00.htm" : "31338-01.htm";
break;
}
case State.STARTED:
{
switch (npc.getId())
{
case ANTON:
{
htmltext = "31338-01c.htm";
break;
}
case MARQUEZ:
{
htmltext = "32113-01.htm";
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}