Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
On your way here, did you see any researchers? I hope they are all right.<br>
(This quest is only for Ertheia characters.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
On your way here, did you see any researchers? I hope they are all right.<br>
(This quest is for characters Lv. 58 or above who have completed the "Traces of an Ambush " quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
It seems that the Ertheia had some kind of a magic device. And Embryo saw it and ambushed...the stolen device was...<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10784_TheBrokenDevice 33866-03.htm">"What happened to it?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Geographer Novain:<br>
So what happened to the device is...<br>
It says, "We could not find out how to operate the device. We will go to Silent Valley and test some things on the giants.<br>
It seems that they used the device without even knowing how to use it. Seems that they failed.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10784_TheBrokenDevice 33866-04.htm">"Failed?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Geographer Novain:<br>
The messages don't connect. But guessing from the context, there's something about the device later.<br>
It says they tried to operate the device on the giants, the device stopped working, and then it made a strange sound and started breaking. Then it says that they hurried out with it.<br>
It seems that they broke the device because no one knew how to work with it. Do you want to find a part of the device at least?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10784_TheBrokenDevice 33866-05.htm">"I do."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
Then go where the experiment took place. Perhaps you could find something.<br>
Go to <font color="LEVEL">Forsaken Plains</font> and kill <font color="LEVEL">Kranrot, Paliote, Yintzu, and Hamrut</font> to find <font color="LEVEL">20 Broken Magic Device Fragments</font>. Then I will cross reference with the text to see if it's what you're looking for.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Geographer Novain:<br>
You don't have enough yet. I need enough to verify.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Geographer Novain:<br>
Do you have it all yet?<br>
Then let me check if this is what you're looking for.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10784_TheBrokenDevice 33866-08.html">"All right."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Geographer Novain:<br>
This fragment looks nothing like what I've seen in the past. It must be what you're looking for.<br>
But I can't see any core parts in this. It seems that they moved the device somewhere....<br>
I will tell you if I find out anything else. That's all I have for now.
</body></html>

View File

@@ -0,0 +1,139 @@
/*
* This file is part of the L2J Mobius project.
*
* This program 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.
*
* This program 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.Q10784_TheBrokenDevice;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.Q10783_TracesOfAnAmbush.Q10783_TracesOfAnAmbush;
/**
* The Broken Device (10784)
* @author malyelfik
*/
public final class Q10784_TheBrokenDevice extends Quest
{
// NPC
private static final int NOVAIN = 33866;
// Monsters
private static final int[] MONSTERS =
{
20647, // Yintzu
20648, // Paliote
20649, // Hamrut
20650, // Kranrot
};
// Items
private static final int BROKE_MAGIC_DEVICE_FRAGMENT = 39723;
private static final int ENCHANT_ARMOR_B = 948;
// Misc
private static final int MIN_LEVEL = 58;
private static final int MAX_LEVEL = 61;
public Q10784_TheBrokenDevice()
{
super(10784);
addStartNpc(NOVAIN);
addTalkId(NOVAIN);
addKillId(MONSTERS);
addCondRace(Race.ERTHEIA, "33866-00.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33866-01.htm");
addCondCompletedQuest(Q10783_TracesOfAnAmbush.class.getSimpleName(), "33866-01.htm");
registerQuestItems(BROKE_MAGIC_DEVICE_FRAGMENT);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "33866-03.htm":
case "33866-04.htm":
break;
case "33866-05.htm":
qs.startQuest();
break;
case "33866-08.html":
{
if (qs.isCond(2))
{
giveItems(player, ENCHANT_ARMOR_B, 5);
giveStoryQuestReward(player, 40);
addExpAndSp(player, 6579090, 1578);
qs.exitQuest(false, true);
}
break;
}
default:
htmltext = null;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
htmltext = "33866-02.htm";
break;
case State.STARTED:
htmltext = (qs.isCond(1)) ? "33866-06.html" : "33866-07.html";
break;
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
giveItems(killer, BROKE_MAGIC_DEVICE_FRAGMENT, 1);
if (getQuestItemsCount(killer, BROKE_MAGIC_DEVICE_FRAGMENT) >= 20)
{
qs.setCond(2, true);
}
else
{
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return super.onKill(npc, killer, isSummon);
}
}