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,5 @@
<html><body>Captain Mathias:<br>
What now, traveler? I'm already harrowed and harassed as is. Being captain means living with constant doubt and suspicion, you know.<br>
It doesn't help that the orcs are a troublesome lot. Ever heard of what's been going on between the <font color="LEVEL">Noble Orcs</font> and <font color="LEVEL">Orc Supervia</font>?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 31340-02.htm">"Uh, no, but please do tell."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Captain Mathias:<br>
You know Noble Orcs, the orcs in the Town of Rune? Your friends. Well, the <font color="LEVEL">Orc Supervia</font> are a group that stood against these <font color="LEVEL">Noble Orcs</font>.<br>
They're the strongest of all Orcs, and founded <font color="LEVEL">Gainak</font> to build an Orc kingdom. Even an alliance of our Elmore Kingdom and the Noble Orcs barely held them in check, and it was with the help of Pa'agrio Lord Kakai that we were recently able to declare a ceasefire.<br>
The thing is...this ceasefire. I don't trust it.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 31340-03.htm">"Oh yeah? Tell me why."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Captain Mathias:<br>
The combat skill of the Orc Supervia is legendary. When they were fighting against the Noble Orcs, we saw how powerful they were firsthand... It was like the day when the Blackish Red Fog appeared.<br>
Even though a ceasefire has been declared, I think they're plotting something behind the scenes. Kakai the Lord of Flame agrees with me, and that's why the Flame Patrol is staying near Gainak permanently.<br>
According to their report, some strange energy has been felt near Gainak. So Kakai and the whole Town of Rune are watching for any movement there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 31340-04.htm">"Tell me about this strange energy."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
I'm afraid I know as little about it as you do. If you're interested, why don't you go to Gainak? And if you are going, can you deliver a message for me? I received a message from Kakai the other day, but I've been too busy to deliver it yet.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 31340-05.htm">Got it</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
When you get to <font color="LEVEL">Gainak</font>, you'll see the Flame Patrol, who are watching for any incidents outside Gainak. Look for <font color="LEVEL">Flame Patrol Vice Captain Tuska</font>, who's patrolling in the area. Tell him that he'll have to keep watch in nearby areas as well because things are getting more dangerous near Gainak. Also, tell him to maintain a high level of readiness until we recruit more reinforcements.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
Do you understand, or shall I repeat my instructions?<br>
Go to <font color="LEVEL">Gainak</font> and meet <font color="LEVEL">Flame Patrol Vice Captain Tuska</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
Traveler, be careful in these lands. I am working on a secret mission for King Astair of Elmore. While we are desperately in need of assistance, I will not send the unready to their deaths. Should you hone your skills, you know where to find me.<br>
(Only characters level 99 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
What brought you? It's not a place anyone can just drop by. I don't need cowards mucking things up around here.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 33839-02.html">"I've brought a message from Pa'agrio Lord Kakai."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
Kakai the Lord of Flame? If you are just using his name, I won't forgive you. Hand me the message and we shall see how bad of beating you're going to get.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10450_ADarkAmbition 33839-03.html">"It's some information about reinforcements."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
I see. Tensions are high these days, with suspicious folk walking around. Truce is well and good, but you never know.<br>
The Orc Superbia are being deceived. The many deaths they left in their ruthless wake cannot be Lord Pa'agrio's will.
</body></html>

View File

@@ -0,0 +1,130 @@
/*
* 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.Q10450_ADarkAmbition;
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;
/**
* A Dark Ambition (10450)
* @author St3eT
*/
public final class Q10450_ADarkAmbition extends Quest
{
// NPCs
private static final int MATHIAS = 31340;
private static final int TUSKA = 33839;
// Items
private static final int ELIXIR_LIFE = 30357; // Elixir of Life (R-grade)
private static final int ELIXIR_MANA = 30358; // Elixir of Mind (R-grade)
private static final int SSR = 34609; // Mysterious Soulshot (R-grade) - Event
private static final int BSSR = 34616; // Mysterious Blessed Spiritshot (R-grade) - Event
private static final int SOE = 37019; // Scroll of Escape: Gainak
// Misc
private static final int MIN_LEVEL = 99;
public Q10450_ADarkAmbition()
{
super(10450);
addStartNpc(MATHIAS);
addTalkId(MATHIAS, TUSKA);
addCondMinLevel(MIN_LEVEL, "31340-07.htm");
}
@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 "31340-02.htm":
case "31340-03.htm":
case "33839-02.html":
{
htmltext = event;
break;
}
case "31340-05.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "33839-03.html":
{
if (st.isCond(2))
{
giveItems(player, ELIXIR_LIFE, 50);
giveItems(player, ELIXIR_MANA, 50);
giveItems(player, SSR, 10000);
giveItems(player, BSSR, 10000);
giveItems(player, SOE, 1);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 15_436_575, 3_704);
}
st.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
if (npc.getId() == MATHIAS)
{
htmltext = "31340-01.htm";
}
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = npc.getId() == MATHIAS ? "31340-06.html" : "33839-01.html";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
}