Skip to content
Snippets Groups Projects
Commit 55da2a93 authored by Adry_85's avatar Adry_85
Browse files

BETA: Retail-like quest '''In Search of Fragments of Dimension''' (634).

parent 4a9c1748
No related branches found
No related tags found
No related merge requests found
Showing
with 208 additions and 6 deletions
<html><body>Dimensional Gate Keeper:<br>
Your passion and conviction are apparent. The Contract between us is official!<br>
This Contract will help you to recognize the Dimensional Fragment. You're bound to experience numerous setbacks and obstacles in the future. I trust that your wisdom and courage will see you safely through your quest.<br>
You'll find the Dimensional Fragment very useful in the Dimensional Gap zone.
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
<html><body>Dimensional Gate Keeper:<br>
Sorry, but you're not ready to fight alongside us yet. Your enthusiasm is great, but your skills are lacking.
</body></html>
\ No newline at end of file
<html><body>Dimensional Gate Keeper:<br>
Have you found any dimension fragments? The more fragments you find, the longer you'll be allowed to stay in the Dimensional Gap. Dimension fragments are watched over by the guardians of ancient magic.<br>
If you begin to feel overwhelmed by your mission and want to take a break, just let me know! You always have that option!<br>
<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-05.html">"Who are the guardians of ancient magic?"</a><br>
<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-06.html">"I want to continue."</a><br>
<a action="bypass -h Quest Q00634_InSearchOfFragmentsOfDimension 31494-07.html">"I want to take a break."</a>
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
The guardians of ancient magic are<font color="LEVEL"> undead and demons</font> summoned by ancient shamans. They worship the goddess of death to protect their sacred area from the crusaders of light.<br>
They're known as<font color="LEVEL"> lookouts, watchers, guards, monks, prefects, seers, archons, inquisitors, guardians, sages, royal guards, and preachers.</font>
<html><body>Dimensional Gate Keeper:<br>
The guardians of ancient magic are <font color="LEVEL">undead and demons</font> summoned by ancient shamans. They worship the goddess of death to protect their sacred area from the crusaders of light.<br>
They're known as <font color="LEVEL">lookouts, watchers, guards, monks, prefects, seers, archons, inquisitors, guardians, sages, royal guards, and preachers</font>.
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
<html><body>Dimensional Gate Keeper:<br>
It's very gratifying to see such burning ambition and passion! You're a natural!
</body></html>
\ No newline at end of file
<html><body>Dimension Keeper:<br>
<html><body>Dimensional Gate Keeper:<br>
Your burning passion has been a great help, and now others are starting to follow your excellent example!
</body></html>
\ No newline at end of file
/*
* 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.Q00634_InSearchOfFragmentsOfDimension;
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;
/**
* In Search of Fragments of Dimension (634)
* @author Adry_85
*/
public final class Q00634_InSearchOfFragmentsOfDimension extends Quest
{
// NPCs
private static final int[] DIMENSIONAL_GATE_KEEPER =
{
31494,
31495,
31496,
31497,
31498,
31499,
31500,
31501,
31502,
31503,
31504,
31505,
31506,
31507
};
// Item
private static final int DIMENSIONAL_FRAGMENT = 7079;
// Misc
private static final int MIN_LEVEL = 20;
// Monsters
private static final int[] MOBS =
{
21208, // Hallowed Watchman
21209, // Hallowed Seer
21210, // Vault Guardian
21211, // Vault Seer
21212, // Hallowed Sentinel
21213, // Hallowed Monk
21214, // Vault Sentinel
21215, // Vault Monk
21216, // Overlord of the Holy Lands
21217, // Hallowed Priest
21218, // Vault Overlord
21219, // Vault Priest
21220, // Sepulcher Archon
21221, // Sepulcher Inquisitor
21222, // Sepulcher Archon
21223, // Sepulcher Inquisitor
21224, // Sepulcher Guardian
21225, // Sepulcher Sage
21226, // Sepulcher Guardian
21227, // Sepulcher Sage
21228, // Sepulcher Guard
21229, // Sepulcher Preacher
21230, // Sepulcher Guard
21231, // Sepulcher Preacher
21232, // Barrow Guardian
21233, // Barrow Seer
21234, // Grave Guardian
21235, // Grave Seer
21236, // Barrow Sentinel
21237, // Barrow Monk
21238, // Grave Sentinel
21239, // Grave Monk
21240, // Barrow Overlord
21241, // Barrow Priest
21242, // Grave Overlord
21243, // Grave Priest
21244, // Crypt Archon
21245, // Crypt Inquisitor
21246, // Tomb Archon
21247, // Tomb Inquisitor
21248, // Crypt Guardian
21249, // Crypt Sage
21250, // Tomb Guardian
21251, // Tomb Sage
21252, // Crypt Guard
21253, // Crypt Preacher
21254, // Tomb Guard
21255, // Tomb Preacher
21256, // Underground Werewolf
};
public Q00634_InSearchOfFragmentsOfDimension()
{
super(634, Q00634_InSearchOfFragmentsOfDimension.class.getSimpleName(), "In Search of Fragments of Dimension");
addStartNpc(DIMENSIONAL_GATE_KEEPER);
addTalkId(DIMENSIONAL_GATE_KEEPER);
addKillId(MOBS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "31494-02.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "31494-05.html":
case "31494-06.html":
{
if (qs.isStarted())
{
htmltext = event;
}
break;
}
case "31494-07.html":
{
if (qs.isStarted())
{
qs.exitQuest(true, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(player, -1, 3, npc);
if (qs != null)
{
final int i0 = (int) ((0.15 * npc.getLevel()) + 1.6);
if (getRandom(100) < 10)
{
giveItemRandomly(qs.getPlayer(), npc, DIMENSIONAL_FRAGMENT, i0, 0, 1.0, true);
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs.isCreated())
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "31494-01.htm" : "31494-03.htm";
}
else if (qs.isStarted())
{
htmltext = "31494-04.html";
}
return htmltext;
}
}
......@@ -306,6 +306,7 @@ import quests.Q00628_HuntGoldenRam.Q00628_HuntGoldenRam;
import quests.Q00629_CleanUpTheSwampOfScreams.Q00629_CleanUpTheSwampOfScreams;
import quests.Q00631_DeliciousTopChoiceMeat.Q00631_DeliciousTopChoiceMeat;
import quests.Q00633_InTheForgottenVillage.Q00633_InTheForgottenVillage;
import quests.Q00634_InSearchOfFragmentsOfDimension.Q00634_InSearchOfFragmentsOfDimension;
import quests.Q00635_IntoTheDimensionalRift.Q00635_IntoTheDimensionalRift;
import quests.Q00636_TruthBeyond.Q00636_TruthBeyond;
import quests.Q00637_ThroughOnceMore.Q00637_ThroughOnceMore;
......@@ -671,6 +672,7 @@ public class QuestMasterHandler
Q00629_CleanUpTheSwampOfScreams.class,
Q00631_DeliciousTopChoiceMeat.class,
Q00633_InTheForgottenVillage.class,
Q00634_InSearchOfFragmentsOfDimension.class,
Q00635_IntoTheDimensionalRift.class,
Q00636_TruthBeyond.class,
Q00637_ThroughOnceMore.class,
......
UPDATE character_quests SET name='Q00634_InSearchOfFragmentsOfDimension' WHERE name='634_InSearchofDimensionalFragments';
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment