This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<html><body>Priest Glyvka:<br>
Our order steadfastly obeys Einhasad's will even in the face of persecution and chaos.<br>
We share with the nobility the desire to preserve order wherever possible.<br>
I ask you, adventurer: in obedience to the goddess, are you willing to prove yourself a servant of order?<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-03.htm">"Yes, I am ready."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priest Glyvka:<br>
You are not yet ready to serve Einhasad in the war against chaos.<br>
(Only characters level 35 and above are permitted to undertake this quest.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Priest Glyvka:<br>
Then listen carefully...<br>
North of Dion Village lie the Cruma Marshlands.<br>
It is said that once the Cruma was a gigantic creature that was born at the creation of the world. None of its remains exist anymore, however.<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-05.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Priest Glyvka:<br>
Then listen carefully...<br>
North of Dion Village lie the Cruma Marshlands.<br>
It is said that once the Cruma was a gigantic creature that was born at the creation of the world. None of its remains exist anymore, however.<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-05.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priest Glyvka:<br>
When the Giants rebelled against the goddess, they captured Cruma and imprisoned it in order to experiment on it.<br>
Bound with massive steel chains, the Cruma could only move across a very limited area. Over time, it wore down the earth in that spot and water seeped in, resulting in the marshlands visible today.<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-06.html">"What am I supposed to do?"</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Priest Glyvka:<br>
Patience...<br>
The monsters who inhabit the Cruma Marshlands were also the twisted creations of the Giants' so-called science.<br>
Abandoned and isolated, there must be a large number of them by now. These creatures by their very existence are violations of the order established by Einhasad. They must be destroyed!<br>
We also know of traitors who wish to acquire the secret knowledge of the Giants for themselves and use it against the servants of order.<br>
Your mission is to vanquish both the monsters bred from the chaos of the Cruma Marshlands and the traitors who have been seduced by the Giants' ancient heresy.<br>
<font color="LEVEL">Spellbook Seller Rouke</font> will give you more details.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Priest Glyvka:<br>
Seek out <font color="LEVEL">Luke, the spellbook seller</font>, and then vanquish both the monsters bred from the chaos of the Cruma Marshlands and the apostates who have been seduced by the Giants' ancient heresy.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Priest Glyvka:<br>
You have successfully accomplished your mission? Einhasad be praised!<br>
Now you have become the feet of our Temple.<br>
Listen carefully to what I am about to tell you...<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-09.html">Keep listening.</a>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Priest Glyvka:<br>
We serve Einhasad, the goddess of light, order and power.<br>
Eons ago, Einhasad imprisoned Shilen, the evil goddess of death. She also destroyed the Giants, who in their arrogance and corruption sought to dethrone the gods themselves.<br>
The people of this continent long served Einhasad in faithfulness and righteousness.<br>
Recently, however, we have encountered signs that Shilen's influence is again growing: groups of disciples devoted to preparing her return, and hordes of monsters that have invaded the peaceful regions of our land.<br>
In this age of rival warlords and ambitious adventurers, the chaos necessary for evil to prevail is all too prevalent.<br>
It is our task to use all our resources to preserve order and carry out Einhasad's will.<br>
<a action="bypass -h Quest Q00134_TempleMissionary 30067-10.html">"I understand. I will help as much as I can."</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Priest Glyvka:<br>
Then accept this badge, which shows that you are the feet of our Temple. Other citizens should learn from your example...<br><br>
If you also become <font color="LEVEL">the hands of the association, you will be awarded the title of the limbs of the association</font>...<br>
To become <font color="LEVEL">the hands of the Temple, seek out Priest Shegfield</font>.<br><br>
You can be made the <font color="LEVEL">limbs of the Temple by High Priest Sylvain</font>...<br>
If you aspire to that level, you will have a place in our council and will be involved in important decisions.<br><br>
Congratulations on your achievement as the feet of our association. I know you will well repay our trust...
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Spellbook Seller Rouke:<br>
I'm sorry.<br>
I don't know why you wanted to see me, adventurer. But I don't think I can help you...<br>
Go speak to Priestess Glyvka.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Spellbook Seller Rouke:<br>
You are here on behalf of the Temple, eh?<br>
Very well. I will explain what you must do to defeat the monsters and traitors in the Cruma Marshlands. Listen carefully!<br>
<a action="bypass -h Quest Q00134_TempleMissionary 31418-03.html">Listen.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Spellbook Seller Rouke:<br>
You can obtain the <font color="LEVEL">Giants' Experimental Tools Fragments</font> by defeating the <font color="LEVEL">Marsh Stakatos, Stinger Wasps, Marsh Stakato Workers, Toad Lords, Marsh Stakato Soldiers, Marsh Spiders and Marsh Stakato Drones</font> in the <font color="LEVEL">Cruma Marshlands</font>.<br>
If you bring me <font color="LEVEL">10 Giants' Experimental Tool Fragments</font>, I will re-assemble them into the <font color="LEVEL">Giants' Experimental Tool</font>.<br>
If you then fight the monsters while wearing this, the traitors who are attracted to the device will appear.<br>
Defeat them and bring me <font color="LEVEL">3 research papers concerning the Giants' technology</font>...<br>
The Giants' Experimental Tools are easily broken, so you had better be sure to carry a sufficient number of them.¨
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Spellbook Seller Rouke:<br>
You can obtain the <font color="LEVEL">pieces from the Giant's Experimental Tools</font> by defeating the <font color="LEVEL">Marsh Stakatos, Stinger Wasps, Marsh Stakato Workers, Toad Lords, Marsh Stakato Soldiers, Marsh Spiders and Marsh Stakato Drones</font> in the <font color="LEVEL">Cruma Marshlands</font>.<br>
If you bring me <font color="LEVEL">10 Giant's Experimental Tool Fragments</font>, I will re-assemble them into the <font color="LEVEL">Giant's Experimental Tool</font>.<br>If you then fight the monsters while wearing this, the traitors who are attracted to the device will appear.<br>
Defeat them and bring me <font color="LEVEL">3 research papers concerning the Giants' technology</font>. Then you will have done your duty.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Spellbook Seller Rouke:<br>
Excellent, you've gathered the <font color="LEVEL">Giants' Experimental Tool Fragments</font> I need. Now take this fully operational <font color="LEVEL">Giant's Experimental Tool</font>.<br>
If you fight the monsters while this tool is in your inventory, the traitors will appear, as they are drawn to the tool.<br>
Defeat them and bring me <font color="LEVEL">3 research papers concerning the Giants' technology</font>...<br>
The Giants' Experimental Tools are easily broken, so you had better be sure to carry a sufficient number of them.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Spellbook Seller Rouke:<br>
Oh, you've gathered all the research papers on the Giants' technology...<br>
The Temple will be very pleased; they are keenly interested in the lost technology of the Giants...<br>
<a action="bypass -h Quest Q00134_TempleMissionary 31418-07.html">"What are you talking about? The Temple of Einhasad, the goddess of order, is interested in the chaos-spawned technology of the Giants?"</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Spellbook Seller Rouke:<br>
Uh...perhaps I've said too much.<br>
I do not know why the Temple is interested in the ancient Giants' technology.<br>
Perhaps it is simply in order to keep it away from the traitors, or to counter its effects should it fall into the wrong hands.<br>
How can I understand the subtle strategies of the Temple's leaders?<br>
In any case, please pass this report to Priestess Glyvka.<br>
<a action="bypass -h Quest Q00134_TempleMissionary 31418-08.html">Receive the report from Rouke.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Spellbook Seller Rouke:<br>
The report also mentions your help in this matter, adventurer.<br>
If you give this to Priestess Glyvka, I am sure she will express her thanks...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Spellbook Seller Rouke:<br>
If you give this report to Priestess Glyvka, adventurer, she will judge your worthiness.
</body></html>

View File

@@ -0,0 +1,256 @@
/*
* 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.Q00134_TempleMissionary;
import java.util.HashMap;
import java.util.Map;
import com.l2jserver.gameserver.enums.QuestSound;
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;
import com.l2jserver.gameserver.model.quest.State;
/**
* Temple Missionary (134)
* @author malyelfik
*/
public class Q00134_TempleMissionary extends Quest
{
// NPCs
private static final int GLYVKA = 30067;
private static final int ROUKE = 31418;
// Items
private static final int GIANTS_EXPERIMENTAL_TOOL_FRAGMENT = 10335;
private static final int GIANTS_EXPERIMENTAL_TOOL = 10336;
private static final int GIANTS_TECHNOLOGY_REPORT = 10337;
private static final int ROUKES_REPOT = 10338;
private static final int BADGE_TEMPLE_MISSIONARY = 10339;
// Monsters
private static final int CRUMA_MARSHLANDS_TRAITOR = 27339;
private static final Map<Integer, Integer> MOBS = new HashMap<>();
static
{
MOBS.put(20157, 78); // Marsh Stakato
MOBS.put(20229, 75); // Stinger Wasp
MOBS.put(20230, 86); // Marsh Stakato Worker
MOBS.put(20231, 83); // Toad Lord
MOBS.put(20232, 81); // Marsh Stakato Soldier
MOBS.put(20233, 95); // Marsh Spider
MOBS.put(20234, 96); // Marsh Stakato Drone
}
// Misc
private static final int MIN_LEVEL = 35;
private static final int MAX_REWARD_LEVEL = 41;
private static final int FRAGMENT_COUNT = 10;
private static final int REPORT_COUNT = 3;
public Q00134_TempleMissionary()
{
super(134, Q00134_TempleMissionary.class.getSimpleName(), "Temple Missionary");
addStartNpc(GLYVKA);
addTalkId(GLYVKA, ROUKE);
addKillId(CRUMA_MARSHLANDS_TRAITOR);
addKillId(MOBS.keySet());
registerQuestItems(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT, GIANTS_EXPERIMENTAL_TOOL, GIANTS_TECHNOLOGY_REPORT, ROUKES_REPOT);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "30067-05.html":
case "30067-09.html":
case "31418-07.html":
break;
case "30067-03.htm":
st.startQuest();
break;
case "30067-06.html":
st.setCond(2, true);
break;
case "31418-03.html":
st.setCond(3, true);
break;
case "31418-08.html":
st.setCond(5, true);
st.giveItems(ROUKES_REPOT, 1);
st.unset("talk");
break;
case "30067-10.html":
st.giveItems(BADGE_TEMPLE_MISSIONARY, 1);
st.giveAdena(15100, true);
if (player.getLevel() < MAX_REWARD_LEVEL)
{
st.addExpAndSp(30000, 2000);
}
st.exitQuest(false, true);
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance member = getRandomPartyMember(player, 3);
if (member == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(member, false);
if (npc.getId() == CRUMA_MARSHLANDS_TRAITOR)
{
st.giveItems(GIANTS_TECHNOLOGY_REPORT, 1);
if (st.getQuestItemsCount(GIANTS_TECHNOLOGY_REPORT) >= REPORT_COUNT)
{
st.setCond(4, true);
}
else
{
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
else
{
if (st.hasQuestItems(GIANTS_EXPERIMENTAL_TOOL))
{
st.takeItems(GIANTS_EXPERIMENTAL_TOOL, 1);
if (getRandom(100) != 0)
{
addSpawn(CRUMA_MARSHLANDS_TRAITOR, npc.getX() + 20, npc.getY() + 20, npc.getZ(), npc.getHeading(), false, 60000);
}
}
else if (getRandom(100) < MOBS.get(npc.getId()))
{
st.giveItems(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
switch (npc.getId())
{
case GLYVKA:
switch (st.getState())
{
case State.CREATED:
htmltext = (player.getLevel() >= MIN_LEVEL) ? "30067-01.htm" : "30067-02.htm";
break;
case State.STARTED:
switch (st.getCond())
{
case 1:
htmltext = "30067-04.html";
break;
case 2:
case 3:
case 4:
htmltext = "30067-07.html";
break;
case 5:
if (st.isSet("talk"))
{
htmltext = "30067-09.html";
}
else
{
st.takeItems(ROUKES_REPOT, -1);
st.set("talk", "1");
htmltext = "30067-08.html";
}
break;
}
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
break;
case ROUKE:
if (st.isStarted())
{
switch (st.getCond())
{
case 1:
htmltext = "31418-01.html";
break;
case 2:
htmltext = "31418-02.html";
break;
case 3:
if ((st.getQuestItemsCount(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT) < FRAGMENT_COUNT) && (st.getQuestItemsCount(GIANTS_TECHNOLOGY_REPORT) < REPORT_COUNT))
{
htmltext = "31418-04.html";
}
else if (st.getQuestItemsCount(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT) >= FRAGMENT_COUNT)
{
final int count = (int) (st.getQuestItemsCount(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT) / 10);
st.takeItems(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT, count * 10);
st.giveItems(GIANTS_EXPERIMENTAL_TOOL, count);
htmltext = "31418-05.html";
}
break;
case 4:
if (st.isSet("talk"))
{
htmltext = "31418-07.html";
}
else if (st.getQuestItemsCount(GIANTS_TECHNOLOGY_REPORT) >= REPORT_COUNT)
{
st.takeItems(GIANTS_EXPERIMENTAL_TOOL_FRAGMENT, -1);
st.takeItems(GIANTS_EXPERIMENTAL_TOOL, -1);
st.takeItems(GIANTS_TECHNOLOGY_REPORT, -1);
st.set("talk", "1");
htmltext = "31418-06.html";
}
break;
case 5:
htmltext = "31418-09.html";
break;
}
}
break;
}
return htmltext;
}
}