In the Dimensional Rift
- ID
- 635
- Название
- In the Dimensional Rift
- start_npcs_json
- []
- npc_ids_json
- []
- constants_json
- {"DIMENSION_FRAGMENT":7079,"MAX_QUEST":23}
- Статус разбора
- metadata_only; dynamic Java conditions/rewards retained in source; unresolved starts: ["i"]
- Источник
- game/data/scripts/quests/Q00635_IntoTheDimensionalRift/Q00635_IntoTheDimensionalRift.java
NPC квеста
Записей нет.
Условия уровней: выражения из Java
if (player.getLevel() < 20)
Выдача предметов, адены и опыта: выражения из Java
Явные выражения не найдены; проверьте исходник и диалоги.
Квесты содержат динамические условия Java. Выражения выдачи включают промежуточные предметы, варианты и случайные награды; это не гарантированная награда. Константы приведены выше. Полные условия — в исходнике.
Тексты квеста
[1.htm] Dimension Keeper: I respect your burning desire for justice, however, the devils of purgatory who are trying to slip in through the dimension gap are wily foes! You're obviously committed to our cause, but you're not yet ready for the fight! Why don't you come back when you've improved your skills a bit? (Only characters of level 20 or above may undertake this quest.)
[1a.htm] Dimension Keeper: Dimension gaps are unstable places, where time and space are not what they seem. You may find yourself thrown out of one before you even realize you're there! If you expect to stay for any period of time there, you'll need to sign a Contract which allows us to constantly monitor your situation. Otherwise, you could be lost in the gap for eternity, never to see the light of this world again! Oh, I see that you have too many prior commitments to enter into a Contract with us at this time.
[3.htm] Dimension Keeper: Your sense of justice and fair play are commendable, but the dimension gap is no place for the unprepared! Because the place has time and space twisted, I cannot let you in without the dimension fragment. "Where can I find a dimension fragment?"
[4.htm] Dimension Keeper: You have a dimension fragment, don't you? Well, that's not the only thing you're going to need! The space warp is completely unpredictable! If you expect to defeat the devils, you'll have to release your preconceptions of what time and space are! I'll try to make this as simple as I can... Will you fight as hard as you can against those damn invading devils that are slipping through the dimension gap? If you are truly resolved to this battle, I'll let you enter immediately! But remember! If you break the Contract without my prior consent, I can keep you from ever leaving the dimension gap! If you intend to quit, you'd better speak up now! Got it? Now, tell me! Will you help? "I'll do it!"
[5.htm] Dimension Keeper: First, I'll send you to the waiting room, a safe space we created. While there, speak with the Keeper of the Gap. He'll allow you to enter the dimension gap. However, they are classified based on the place that they manage. Level 30's are managed by Recruits, Level 40's by Privates, Level 50's by Officers, Level 60's by Captains, Level 70's by Commanders, and the higher levels by Heroes. Don't forget this, and visit a keeper of the gap appropriate for your level. Well, good luck to you.
[5a.htm] Dimension Keeper: As you may already know, first I'll send you to a safe waiting place. Speak with the Rift Post there, they'll let you inside. They're classified depending on where their responsibilities lie. The level 30 force is managed by Recruits, level 40 by Privates, level 50 by Officers, level 60 by Generals, level 70 by Commanders and higher-force Heroes. Take heed and visit the manager most suitable for you. Good luck!
[6.htm] Dimension Keeper: At one time, these catacombs and necropolises existed in another dimension, before the seals that bound them were broken. The moment the seal was broken, it shattered into thousands of pieces and scattered throughout the area. The pieces of the seal are called dimension fragments. If you want one, you'll need to enter into another Contract with me. Based on our investigation, others are currently collecting dimension fragments. They are the guardians of ancient magic. I'll tell you more when we sign the Contract.
[7.htm] Rift Post: I'll send you to your fate. I hope to see you again.
Исходник условий и наград (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.Q00635_IntoTheDimensionalRift;
import org.l2jmobius.gameserver.entity.Location;
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;
/**
* @author Mobius
* @note Based on python script
*/
public class Q00635_IntoTheDimensionalRift extends Quest
{
// Item
private static final int DIMENSION_FRAGMENT = 7079;
// Locations
private static final Location[] COORD =
{
new Location(-41572, 209731, -5087), // Necropolis of Sacrifice
new Location(-52872, -250283, -7908), // Catacomb of the Heretic
new Location(45256, 123906, -5411), // Pilgrim's Necropolis
new Location(46192, 170290, -4981), // Catacomb of the Branded
new Location(111273, 174015, -5437), // Necropolis of Worship
new Location(-20604, -250789, -8165), // Catacomb of Apostate
new Location(-21726, 77385, -5171), // Patriot's Necropolis
new Location(140405, 79679, -5427), // Catacomb of the Witch
new Location(-52366, 79097, -4741), // Necropolis of Devotion (ex Ascetics)
new Location(118311, 132797, -4829), // Necropolis of Martyrdom
new Location(172185, -17602, -4901), // Disciple's Necropolis
new Location(83000, 209213, -5439), // Saint's Necropolis
new Location(-19500, 13508, -4901), // Catacomb of Dark Omens
new Location(113865, 84543, -6541), // Catacomb of the Forbidden Path
};
// Misc
private static final int MAX_QUEST = 23; // How many quest slots you need to have in order to enter be able to take another quests within the Rift.
public Q00635_IntoTheDimensionalRift()
{
super(635, "In the Dimensional Rift");
for (int i = 31494; i <= 31508; i++)
{
addTalkId(i);
addStartNpc(i);
}
for (int i = 31488; i <= 31494; i++)
{
addTalkId(i);
}
}
@Override
public String onEvent(String event, Npc npc, Player player)
{
String htmltext = event;
final QuestState qs = player.getQuestState(getName());
if (qs == null)
{
return htmltext;
}
final int id = qs.getInt("id");
final int count = qs.getInt("count");
if (event.equals("TELEPORT"))
{
if (id > 0)
{
if (count > 0)
{
htmltext = "5a.htm";
}
qs.set("count", String.valueOf(count + 1));
qs.setState(State.STARTED);
qs.setCond(1);
qs.getPlayer().teleToLocation(-114790, -180576, -6781);
}
else
{
htmltext = "What are you trying to do?";
qs.exitQuest(true);
}
}
else if (event.equals("6.htm"))
{
qs.exitQuest(true);
}
return htmltext;
}
@Override
public String onTalk(Npc npc, Player player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
final int npcId = npc.getId();
int id = qs.getInt("id");
if ((npcId >= 31494) && (npcId <= 31508))
{
if (player.getLevel() < 20)
{
qs.exitQuest(true);
htmltext = "1.htm";
}
else if (player.getAllActiveQuests().size() > MAX_QUEST)
{
qs.exitQuest(true);
htmltext = "1a.htm";
}
else if (getQuestItemsCount(player, DIMENSION_FRAGMENT) <= 0)
{
htmltext = "3.htm";
}
else
{
qs.setState(State.CREATED);
id = (npcId - 31493);
qs.set("id", String.valueOf(id));
htmltext = "4.htm";
}
}
else if (qs.getState() == State.STARTED)
{
if (id > 0)
{
player.teleToLocation(COORD[id], false);
qs.unset("cond");
qs.setState(State.CREATED);
htmltext = "7.htm";
}
else
{
htmltext = "Where?";
qs.exitQuest(true);
}
}
return htmltext;
}
}