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>
It's unsettling to see all the chaos in the Kingdom of Elmore. I can't even imagine how distressed His Majesty is.<br>
Traveler, you've been to many places. In your travels, have you heard of <font color="LEVEL">Nerva Orcs</font>?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 31340-02.htm">"No, I haven't."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Mathias:<br>
Do you have any Orc friends? Have you met Kakai, the Lord of Flame? They are all <font color="LEVEL">Noble Orcs</font>, and their opponents are <font color="LEVEL">Orc Supervia</font>. They are the ones who are settled in Gainak.<br>
However, some folks refused to be part of Orc Supervia and left the group. They are called <font color="LEVEL">Nerva Orcs</font>.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 31340-03.htm">"What's happened to them?"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Captain Mathias:<br>
The Noble Orcs and Orc Supervia have called a ceasefire. But the Nerva Orcs who decided not to work for Orc Supervia still have a grudge, not just against Noble Orcs, but all other races that entered into a nonaggression treaty.<br>
They've settled in a place we call <font color="LEVEL">Raider's Crossroads</font>, and have been threating anyone who comes near them.<br>
Surely you've become quite skilled after all the battles you've seen. Would you be willing to help His Majesty in this?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 31340-04.htm">"I'll be happy to help."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Captain Mathias:<br>
You will pass by a place called <font color="LEVEL">Gainak</font> before you get to Raider's Crossroads. <font color="LEVEL">Flame Patrol Vice Captain Tuska</font> is deployed there under orders from Kakai the Lord of Flame. However, because that place is so far away from Kakai, they exchange letters through a guard from the Town of Rune. But the guard has been injured, and their communications have been cut off. I'd like you to deliver this letter to <font color="LEVEL">Flame Patrol Vice Captain Tuska</font> near <font color="LEVEL">Gainak</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Captain Mathias:<br>
Are you afraid that you'll end up like the guard who was injured? Is that why you haven't left yet?<br>
If that's not the reason, then hurry to <font color="LEVEL">Flame Patrol Vice Captain Tuska</font> near <font color="LEVEL">Gainak</font>.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Captain Mathias:<br>
It's so unsettling to see all the chaos in the Kingdom of Elmore. I can't even imagine how distressed His Majesty is.<br>
Traveler, I would advise you not to go through such a dangerous area.<br>
(Only characters above Lv. 97.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
What brings the likes of you to such a dangerous place? We keep our wits about us in the Flame Patrol. If you stick around here, you're liable to be hurt. Go back, now!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 33839-02.html">"I've brought a letter from Captain Mathias."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
Mathias, huh? Well, don't take my ribbing too seriously then. If I don't sound mean, I can't drive the cowards who don't belong here away. Not like you.<br>
Let's have a look... This is a letter from Kakai the Lord of Flame. I see. We cannot handle the situation on our own anymore.<br>
I am very happy that you will work with us strong <font color="LEVEL">Noble Orcs</font>.<br>
Now that you're in on this, I will give you a <font color="LEVEL">Reinforcements' Badge</font> as a token of partnership. Now, go meet <font color="LEVEL">Flame Patrol Warrior Bruener</font> at the entrance to Raider's Crossroads.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 33839-03.html">"How do I get to Raider's Crossroads?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
Through a <font color="LEVEL">Sayune</font>, that's how! You can walk too, of course, but who wants to do that?<br>
You'll see Bruener as soon as you get there.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Flame Patrol Vice Captain Tuska:<br>
Don't worry. Bruener won't be mean to you as long as you have the <font color="LEVEL">Reinforcements' Badge</font> I gave you.<br>
Hurry to <font color="LEVEL">Raider's Crossroads</font> through a <font color="LEVEL">Sayune</font>.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Flame Patrol Warrior Bruener:<br>
I've seen a lot of travelers lately. Why do they come to such a dangerous place?<br>
Anyway, you don't look like the type to wander in for no reason... What brings you here?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10445_AnImpendingThreat 33840-02.html">Show Reinforcements' Badge without saying a word</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Flame Patrol Warrior Bruener:<br>
You met Tuska? Wow! Now I have a comrade in arms! You have no idea how boring it is here.<br>
Thanks for coming all this way. You will keep working with me, right?<br>
I'll share what I have with you.<br>
If you continue to help me in the future, you'll get paid as usual!
</body></html>

View File

@@ -0,0 +1,176 @@
/*
* 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.Q10445_AnImpendingThreat;
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;
/**
* An Impending Threat (10445)
* @author St3eT
*/
public final class Q10445_AnImpendingThreat extends Quest
{
// NPCs
private static final int MATHIAS = 31340;
private static final int TUSKA = 33839;
private static final int BRUENER = 33840;
// Items
private static final int LETTER = 36681; // Curious Letter
private static final int BADGE = 36685; // Reinforcements' Badge
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 = 37017; // Scroll of Escape: Raider's Crossroads
// Misc
private static final int MIN_LEVEL = 97;
public Q10445_AnImpendingThreat()
{
super(10445);
addStartNpc(MATHIAS);
addTalkId(MATHIAS, TUSKA, BRUENER);
registerQuestItems(LETTER, BADGE);
addCondMinLevel(MIN_LEVEL, "31340-06.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-04.htm":
{
st.startQuest();
giveItems(player, LETTER, 1);
htmltext = event;
break;
}
case "33839-03.html":
{
if (st.isCond(1))
{
st.setCond(2);
takeItems(player, LETTER, 1);
giveItems(player, BADGE, 1);
htmltext = event;
}
break;
}
case "33840-02.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, 100_506_183, 241_212);
}
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:
{
switch (npc.getId())
{
case MATHIAS:
{
if (st.isCond(1))
{
htmltext = "31340-05.html";
}
break;
}
case TUSKA:
{
if (st.isCond(1))
{
htmltext = "33839-01.html";
}
else if (st.isCond(2))
{
htmltext = "33839-04.html";
}
break;
}
case BRUENER:
{
if (st.isCond(2))
{
htmltext = "33840-01.html";
}
break;
}
}
break;
}
case State.COMPLETED:
{
if (npc.getId() == MATHIAS)
{
htmltext = getAlreadyCompletedMsg(player);
}
break;
}
}
return htmltext;
}
}