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>
(Only characters Lv. 58 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
You wanted to know where the Ertheia delegation went? I had warned them that the Forsaken Plains were very dangerous. I advised them to take a safer path. But they didn't listen.<br>
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10783_TracesOfAnAmbush 33866-03.htm">"So where did they go?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
So you too, huh? If you're so sure, I won't stop you. What did you want to know?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10783_TracesOfAnAmbush 33866-04.htm">"Where was the Ertheia delegation staying?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Geographer Novain:<br>
It's about over there. They didn't come here often. I'm worried about Embryo appearing more frequently.<br>
You're going to go there anyway no matter what I say, right? Then can you do me a favor on the way there?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10783_TracesOfAnAmbush 33866-05.htm">"What is it?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
It's not difficult. You will have to do it if you're looking for the delegation anyway. When you're hunting the monsters on Forsaken Plains, you will come across <font color="LEVEL">Embryo Predators</font>. Get those <font color="LEVEL">Embryo Predators</font> and collect <font color="LEVEL">10 Missive Scraps</font>. I'm trying to find out what Embryo is planning.<br>
It's likely that the Ertheia delegation was attacked by an Embryo Predator. It's going to help your investigation anyway. I will try to find out about the delegation as well.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Geographer Novain:<br>
You don't have enough Missive Scraps. I'm not done yet either. You can come back when you have enough Missive Scraps.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
Did you get them all?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10783_TracesOfAnAmbush 33866-08.html">"Yes."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
Thank you. I went back on my memories, and I remembered the delegation... Wait ,what's this saying?<br>
Can you wait one sec? There's a new piece of information here. I think this has to do with the delegation. I will tell you after looking into it.
</body></html>

View File

@@ -0,0 +1,166 @@
/*
* 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.Q10783_TracesOfAnAmbush;
import com.l2jmobius.gameserver.enums.ChatType;
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 com.l2jmobius.gameserver.network.NpcStringId;
/**
* Traces of an Ambush (10783)
* @author malyelfik
*/
public final class Q10783_TracesOfAnAmbush extends Quest
{
// NPC
private static final int NOVAIN = 33866;
// Monsters
private static final int EMBRYO_PREDATOR = 27539;
private static final int[] MONSTERS =
{
20679, // Marsh Stalker
20680, // Marsh Drake
21017, // Fallen Orc
21018, // Ancient Gargoyle
21019, // Fallen Orc Archer
21020, // Fallen Orc Shaman
21021, // Sharp Talon Tiger
21022, // Fallen Orc Captain
21258, // Fallen Orc Shaman
21259, // Fallen Orc Shaman
};
// Items
private static final int MISSIVE_SCRAPS = 39722;
private static final int ENCHANT_ARMOR_B = 948;
// Messages
private static final NpcStringId[] MESSAGES =
{
NpcStringId.I_WILL_GIVE_YOU_DEATH,
NpcStringId.BACK_FOR_MORE_HUH,
NpcStringId.YOU_LITTLE_PUNK_TAKE_THAT
};
// Misc
private static final int MIN_LEVEL = 58;
private static final int MAX_LEVEL = 61;
private static final int SPAWN_RATE = 70;
private static final int DROP_RATE = 80;
public Q10783_TracesOfAnAmbush()
{
super(10783);
addStartNpc(NOVAIN);
addTalkId(NOVAIN);
addKillId(MONSTERS);
addKillId(EMBRYO_PREDATOR);
addCondRace(Race.ERTHEIA, "33866-00.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33866-01.htm");
registerQuestItems(MISSIVE_SCRAPS);
}
@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":
{
giveItems(player, ENCHANT_ARMOR_B, 5);
giveStoryQuestReward(player, 34);
addExpAndSp(player, 5482574, 1315);
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))
{
if (npc.getId() == EMBRYO_PREDATOR)
{
if (getRandom(100) < DROP_RATE)
{
giveItems(killer, MISSIVE_SCRAPS, 1);
if (getQuestItemsCount(killer, MISSIVE_SCRAPS) >= 10)
{
qs.setCond(2, true);
}
else
{
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
else if (getRandom(100) < SPAWN_RATE)
{
final L2Npc mob = addSpawn(EMBRYO_PREDATOR, npc, false, 120000);
addAttackPlayerDesire(mob, killer);
mob.broadcastSay(ChatType.NPC_GENERAL, MESSAGES[getRandom(MESSAGES.length)]);
}
}
return super.onKill(npc, killer, isSummon);
}
}