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>Dwarf Explorer Droph:<br>
Did you feel it too? Something has happened in this Giant's Cave!<br>
I spent a long time exploring this place without success.<br>
Finally I discovered its secret...<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-03.htm">"What is it?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dwarf Explorer Droph:<br>
Did you feel it too? Something has happened in this Giant's Cave!<br>
This is far too dangerous a place for someone like you -- you better leave at once!<br>
(Only characters who are level 79 or higher may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dwarf Explorer Droph:<br>
There is a Raid Monster named <font color="LEVEL">Hekaton Prime</font> in the deep substratum of this Giants' Cave. In fact, it is the central core that controls this area!<br>
If we can expel it, our exploration will be much easier. Doing so is beyond my power, though.<br>Perhaps you have some equally powerful friends who would be willing to help you do it? I'll happily pay you for your work!<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-04.html">Accept.</a></body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Dwarf Adventurer Droph:<br>
Good decision! I'll fill you in on the information then, aye?<br>
This Hekaton Prime does not show itself often: it's a controling unit that prefers to work at the back, see? He has three monsters... that's <font color="LEVEL">Gorgos, the Last Titan Utenes, and Giant Marpanak</font>, and each guard Hekaton Prime's cave.<br>
To capture Hekaton Prime, you need to take care of the three monsters first. Capture these monsters and collect the <font color="LEVEL">Cave Exploration Text</font>1 to 3. I'll then translate them and summon Hekaton Prime for you.<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05.html">"Tell me the about the monsters I need to capture."</a><br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-06.html">"I'll get started now."</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dwarf Explorer Droph:<br>
You have collected all 3 <font color="LEVEL">Cave Exploration Texts </font>! Ah, now we can summon Hekaton Prime using them.<br>
Are you ready?<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants spawn">Summon Hekaton Prime.</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Dwarf Adventurer Droph:<br>
They are the right-hand creatures of Hekaton Prime: Gorgos, the Last Titan Utenes, and the Giant Marpanak. If you want to know where they are, I'd be more than willing to help. Which would you like to face first?<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05a.html">"Where's the Gorgos?"</a><br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05b.html">"I want Utenes."</a><br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05c.html">"Where's the Giant Marpanak?"</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dwarf Explorer Droph:<br>
Gorgolos is a mutated creature originally created to defeat the servants of Einhasad. I will mark its location on your map.<br>
Once you defeat it, bring me the <font color="LEVEL">Cave Exploration Text 1</font>, which details the origins of the cave.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dwarf Adventurer Droph:<br>
Are you talking about the Last Titan, Utenes? It spends its days hiding deep inside the cave and while it isn't physically different from other Titans, it knows a great many secrets. I'll mark its location on the map.<br>
Once you capture the monster, you'll be free to look for the report that contains the information on the ancient giants: the <font color="LEVEL">Cave Exploration Text 2 Sheet</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dwarf Explorer Droph:<br>
The Giant Marpanak was cloned from the ancient Giants, created by the wizards of the Ivory Tower with one purpose: to fight and assert the wizards' authority.<br>
I will mark his location on your map, but once you defeat him you must remember to bring me the <font color="LEVEL">Cave Exploration Text 3</font>, which reveals the truth behind Hekaton Prime.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dwarf Explorer Droph:<br>
Then there is nothing more I can tell you. Farewell and good luck!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Dwarf Explorer Droph:<br>
You must defeat Gorgolos, last Giant ???? and Giant ????? before facing Hekaton Prime. If you want to know where they are, I am more than willing to tell you. Which one are you interested in?<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05a.html">Gorgolos</a><br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05b.html">Last Giant ????</a><br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants 32711-05c.html">Giant ?????</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dwarf Explorer Droph:<br>
You have collected all 3 <font color="LEVEL">Cave Exploration Texts </font>! Ah, now we can summon Hekaton Prime using them.<br>
Are you ready?<br>
<a action="bypass -h Quest Q00307_ControlDeviceOfTheGiants spawn">Summon Hekaton Prime.</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Dwarf Explorer Droph:<br>
Well, I have activated the necessary equipment. Behold, Hekaton Prime approaches!<br>
You and your colleagues must defeat him. If 2 of you can do so without help, you will be richly rewarded.<br>
Good luck!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Dwarf Explorer Droph:<br>
You've brought what I asked for, but it is still too early to summon Hekaton Prime. We must wait a little longer...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Dwarf Explorer Droph:<br>
Well done. This is my supply prepared for those who have done a great job in catching Hekaton Prime.<br>
If you open it, you will be able to obtain the ancient Adena which has been collected in the Giant's cave by our dwarf explorers for a very long time.
</body></html>

View File

@@ -0,0 +1,208 @@
/*
* 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.Q00307_ControlDeviceOfTheGiants;
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;
import com.l2jserver.gameserver.network.serverpackets.RadarControl;
/**
* Control Device of the Giants (307)
* @author Gladicek, malyelfik
*/
public class Q00307_ControlDeviceOfTheGiants extends Quest
{
// NPC
private final static int DROPH = 32711;
// RB
private final static int GORGOLOS = 25681;
private final static int LAST_TITAN_UTENUS = 25684;
private final static int GIANT_MARPANAK = 25680;
private final static int HEKATON_PRIME = 25687;
// Items
private final static int SUPPORT_ITEMS = 14850;
private final static int CET_1_SHEET = 14851;
private final static int CET_2_SHEET = 14852;
private final static int CET_3_SHEET = 14853;
// Misc
private final static int RESPAWN_DELAY = 3600000; // 1 hour
private static L2Npc hekaton;
public Q00307_ControlDeviceOfTheGiants()
{
super(307, Q00307_ControlDeviceOfTheGiants.class.getSimpleName(), "Control Device of the Giants");
addStartNpc(DROPH);
addTalkId(DROPH);
addKillId(GORGOLOS, LAST_TITAN_UTENUS, GIANT_MARPANAK, HEKATON_PRIME);
}
@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 "32711-04.html":
if (player.getLevel() >= 79)
{
st.startQuest();
htmltext = (st.hasQuestItems(CET_1_SHEET, CET_2_SHEET, CET_3_SHEET)) ? "32711-04a.html" : "32711-04.html";
}
break;
case "32711-05a.html":
player.sendPacket(new RadarControl(0, 2, 186214, 61591, -4152));
break;
case "32711-05b.html":
player.sendPacket(new RadarControl(0, 2, 187554, 60800, -4984));
break;
case "32711-05c.html":
player.sendPacket(new RadarControl(0, 2, 193432, 53922, -4368));
break;
case "spawn":
if (!hasQuestItems(player, CET_1_SHEET, CET_2_SHEET, CET_3_SHEET))
{
return getNoQuestMsg(player);
}
else if ((hekaton != null) && !hekaton.isDead())
{
return "32711-09.html";
}
String respawn = loadGlobalQuestVar("Respawn");
long remain = (!respawn.isEmpty()) ? Long.parseLong(respawn) - System.currentTimeMillis() : 0;
if (remain > 0)
{
return "32711-09a.html";
}
st.takeItems(CET_1_SHEET, 1);
st.takeItems(CET_2_SHEET, 1);
st.takeItems(CET_3_SHEET, 1);
hekaton = addSpawn(HEKATON_PRIME, 191777, 56197, -7624, 0, false, 0);
htmltext = "32711-09.html";
break;
case "32711-03.htm":
case "32711-05.html":
case "32711-06.html":
break;
default:
htmltext = null;
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final L2PcInstance partyMember = getRandomPartyMember(player, 1);
if (partyMember == null)
{
return super.onKill(npc, player, isSummon);
}
final QuestState st = getQuestState(partyMember, false);
switch (npc.getId())
{
case GORGOLOS:
{
st.giveItems(CET_1_SHEET, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
case LAST_TITAN_UTENUS:
{
st.giveItems(CET_2_SHEET, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
case GIANT_MARPANAK:
{
st.giveItems(CET_3_SHEET, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
break;
}
case HEKATON_PRIME:
{
if (player.isInParty())
{
for (L2PcInstance pl : player.getParty().getMembers())
{
final QuestState qs = getQuestState(pl, false);
if ((qs != null) && qs.isCond(1))
{
qs.setCond(2, true);
}
}
saveGlobalQuestVar("Respawn", Long.toString(System.currentTimeMillis() + RESPAWN_DELAY));
}
break;
}
}
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 (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= 79) ? "32711-01.htm" : "32711-02.htm";
break;
}
case State.STARTED:
{
if ((hekaton != null) && !hekaton.isDead())
{
htmltext = "32711-09.html";
}
else if (st.isCond(1))
{
htmltext = (!hasQuestItems(player, CET_1_SHEET, CET_2_SHEET, CET_3_SHEET)) ? "32711-07.html" : "32711-08.html";
}
else if (st.isCond(2))
{
st.giveItems(SUPPORT_ITEMS, 1);
st.exitQuest(true, true);
htmltext = "32711-10.html";
}
break;
}
}
return htmltext;
}
}