Gatekeeper's Offering
- ID
- 277
- Название
- Gatekeeper's Offering
- start_npcs_json
- [30576]
- npc_ids_json
- []
- constants_json
- {"STARSTONE":1572,"GATEKEEPER_CHARM":1658}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: []
- Источник
- game/data/scripts/quests/Q00277_GatekeepersOffering/Q00277_GatekeepersOffering.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
htmltext = (player.getLevel() < 15) ? "30576-01.htm" : "30576-02.htm";
Выдача предметов, адены и опыта: выражения из Java
rewardItems(player, GATEKEEPER_CHARM, 2); giveItems(player, STARSTONE, 1);
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[30576-01.htm] Gatekeeper Tamil: Thank you, but this is too dangerous for you. Don't you know? In order to collect starstones, you must defeat the graystone golems on the Immortal Plateau. But these golems are too strong for you. (This quest may only be undertaken by a character of level 15 and above.)
[30576-02.htm] Gatekeeper Tamil: The magic power I learned from the Ivory Tower of Oren allows me to control the door of space time. It is almost miraculous, being able to reach a town on the other side of the continent with only a few steps. But I am ashamed to admit that my understanding of Human magic is incomplete, and I cannot control the door of space time with my powers alone. I need the power of the totem spirit of the spider in order to use my teleport spell. The spider web spun by the totem spirit of the spider reaches all corners of the universe. Following the spider web lets anyone move to anywhere on the continent in a matter of seconds. But to receive the aid of the totem spirit of the spider, I must make periodic offerings. So every week, I offer the totem spirit Starstones, which entrap the powers of the stars. However, as long as I hold the position of Gatekeeper here, I cannot leave my post. I need someone's help to find starstones to offer the spider. Say you will help
[30576-03.htm] Gatekeeper Tamil: Thank you! I will not forget your kindness. But are you sure you know what is required? Every golem carries a starstone in its body. According to the Seers, the power of the stars contained within the starstone is the force that keeps the golems alive and moving. Anyway, if you defeat the graystone golems on the Immortal Plateau, you will be able to collect the precious mineral that I need. I need twenty of those. Be careful! The graystone golem may be slow, but its strength is great. You are placing yourself in great danger, so proceed with caution!
[30576-04.htm] Gatekeeper Tamil: That is not enough at all. I need at least twenty starstones. If I can't offer them to the totem spirit of the spider, the door of space and time that connects our village to the mainland will be closed! So please hurry. Defeat the graystone golems on the Immortal Plateau to obtain starstones. Be careful! They may be slow, but they are very strong and are hardly a force to be taken lightly. I will pray for your safe return!
[30576-05.htm] Gatekeeper Tamil: Welcome, young man! Well done! I am sure the totem spirit of the spider will be very satisfied with these starstones! It would be great if you could help me out again in the future. I'll give you a Gatekeeper's charm for your help. If you need to go to Gludio later, give me that charm. I will teleport you to Gludin free of charge!
Исходник условий и наград (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.Q00277_GatekeepersOffering;
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.QuestSound;
import org.l2jmobius.gameserver.mechanics.script.QuestState;
import org.l2jmobius.gameserver.mechanics.script.State;
public class Q00277_GatekeepersOffering extends Quest
{
// Item
private static final int STARSTONE = 1572;
// Reward
private static final int GATEKEEPER_CHARM = 1658;
public Q00277_GatekeepersOffering()
{
super(277, "Gatekeeper's Offering");
addStartNpc(30576); // Tamil
addTalkId(30576);
addKillId(20333); // Graystone Golem
}
@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("30576-03.htm"))
{
st.startQuest();
}
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() < 15) ? "30576-01.htm" : "30576-02.htm";
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = "30576-04.htm";
}
else
{
htmltext = "30576-05.htm";
takeItems(player, STARSTONE, -1);
rewardItems(player, GATEKEEPER_CHARM, 2);
st.exitQuest(true, true);
}
break;
}
}
return htmltext;
}
@Override
public void onKill(Npc npc, Player player, boolean isPet)
{
final QuestState st = getQuestState(player, false);
if ((st == null) || !st.isCond(1))
{
return;
}
if (getRandomBoolean())
{
giveItems(player, STARSTONE, 1);
if (getQuestItemsCount(player, STARSTONE) < 20)
{
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
else
{
st.setCond(2, true);
}
}
}
}