This commit is contained in:
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-01.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-01.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
When I first came here, these barracks were full of Dwarves... Now they're deserted!<br>
|
||||
That is, of course, except for Yumi and me!<br>
|
||||
Yumi's on some sort of research mission, and I can't just leave her alone!<br>
|
||||
You look like a strong-enough fellow... Are you looking for work?<br>
|
||||
<a action="bypass -h Quest Q00647_InfluxOfMachines 32069-03.htm">"What kind of work?"</a>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-02.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-02.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
The job is to take care of these Golems.<br>
|
||||
Yumi has been flying solo on this, but she's burning herslef out.<br>
|
||||
I'd like to hire you..., but you don't look like you're ready for this.<br>
|
||||
Come back when you are prepared.<br>
|
||||
(Only characters of level 70 and above are permitted to take on this quest.)
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-03.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-03.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
The job is to take care of these Golems.<br>
|
||||
Yumi's been doing it alone, but she needs help, someone she can rely on.<br>
|
||||
Any Golems belonging to the Horrifying Golem Army are fine.<br>
|
||||
You will be dealing with Guard Golems inside the building or Jackhammer Golems in the Strip Mines. When you collect <font color="LEVEL">500 fragments</font> from them I'll trade you for some items out of the Collector Guild.<br>
|
||||
Good luck golem smasher!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
Your job is to destroy all the Golems in the Horrifying Golem Army, including the Ginzu Golems and the Cannon Golems in the Strip Mine. Bring me <font color="LEVEL">500 Golem Shards</font> and you'll be well rewarded!<br>
|
||||
Good luck!
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-05.html
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-05.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
You've brought back 500 Golem Shards!<br>
|
||||
I had no idea you could get the job done so quickly!<br>
|
||||
I suppose I should've hired someone like you long ago...<br>
|
||||
Now, give me the Shards...<br>
|
||||
<a action="bypass -h Quest Q00647_InfluxOfMachines 32069-06.html">"Here are the Shards."</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-06.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-06.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
Good job! Collecting 500 Golem Shards is never an easy task!<br>
|
||||
Please accept this reward...<br>
|
||||
What's that? It's not enough?! You must not have any idea what this paper is worth!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/32069-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Collector Gutenhagen:<br>
|
||||
Hey, what happened to the Golem Shards?<br>
|
||||
You had them, but when I went to pick them up, they were gone! This is unbelievable! Of course you realize that I can't give you a reward if you don't actually give me the Shards!
|
||||
</body></html>
|
167
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/Q00647_InfluxOfMachines.java
vendored
Normal file
167
trunk/dist/game/data/scripts/quests/Q00647_InfluxOfMachines/Q00647_InfluxOfMachines.java
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* 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.Q00647_InfluxOfMachines;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Influx of Machines (647)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00647_InfluxOfMachines extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int GUTENHAGEN = 32069;
|
||||
// Monsters
|
||||
private static final Map<Integer, Integer> MOBS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
MOBS.put(22801, 280); // Cruel Pincer Golem
|
||||
MOBS.put(22802, 227); // Cruel Pincer Golem
|
||||
MOBS.put(22803, 286); // Cruel Pincer Golem
|
||||
MOBS.put(22804, 288); // Horrifying Jackhammer Golem
|
||||
MOBS.put(22805, 235); // Horrifying Jackhammer Golem
|
||||
MOBS.put(22806, 295); // Horrifying Jackhammer Golem
|
||||
MOBS.put(22807, 273); // Scout-type Golem No. 28
|
||||
MOBS.put(22808, 143); // Scout-type Golem No. 2
|
||||
MOBS.put(22809, 629); // Guard Golem
|
||||
MOBS.put(22810, 465); // Micro Scout Golem
|
||||
MOBS.put(22811, 849); // Great Chaos Golem
|
||||
MOBS.put(22812, 463); // Boom Golem
|
||||
}
|
||||
// Item
|
||||
private static final int BROKEN_GOLEM_FRAGMENT = 15521;
|
||||
private static final int[] RECIPES =
|
||||
{
|
||||
6881, // Recipe: Forgotten Blade (60%)
|
||||
6883, // Recipe: Basalt Battlehammer (60%)
|
||||
6885, // Recipe: Imperial Staff (60%)
|
||||
6887, // Recipe: Angel Slayer (60%)
|
||||
6891, // Recipe: Dragon Hunter Axe (60%)
|
||||
6893, // Recipe: Saint Spear (60%)
|
||||
6895, // Recipe: Demon Splinter (60%)
|
||||
6897, // Recipe: Heavens Divider (60%)
|
||||
6899, // Recipe: Arcana Mace (60%)
|
||||
7580, // Recipe: Draconic Bow (60%)
|
||||
};
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 70;
|
||||
private static final int FRAGMENT_COUNT = 500;
|
||||
|
||||
public Q00647_InfluxOfMachines()
|
||||
{
|
||||
super(647, Q00647_InfluxOfMachines.class.getSimpleName(), "Influx of Machines");
|
||||
addStartNpc(GUTENHAGEN);
|
||||
addTalkId(GUTENHAGEN);
|
||||
addKillId(MOBS.keySet());
|
||||
registerQuestItems(BROKEN_GOLEM_FRAGMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "32069-03.htm":
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
case "32069-06.html":
|
||||
if (st.isCond(2) && (st.getQuestItemsCount(BROKEN_GOLEM_FRAGMENT) >= FRAGMENT_COUNT))
|
||||
{
|
||||
st.giveItems(RECIPES[getRandom(RECIPES.length)], 1);
|
||||
st.exitQuest(true, true);
|
||||
htmltext = event;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "32069-07.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance member = getRandomPartyMember(player, 1);
|
||||
if (member != null)
|
||||
{
|
||||
final QuestState st = getQuestState(member, false);
|
||||
if (st.isCond(1) && (getRandom(1000) < MOBS.get(npc.getId())))
|
||||
{
|
||||
st.giveItems(BROKEN_GOLEM_FRAGMENT, 1);
|
||||
if (st.getQuestItemsCount(BROKEN_GOLEM_FRAGMENT) >= FRAGMENT_COUNT)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
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 (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32069-01.htm" : "32069-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "32069-04.html";
|
||||
}
|
||||
else if (st.isCond(2) && (st.getQuestItemsCount(BROKEN_GOLEM_FRAGMENT) >= FRAGMENT_COUNT))
|
||||
{
|
||||
htmltext = "32069-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user