Addition of quest 594 and 595.
Contributed by Dmitri.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
585 Can't Go Against the Time
|
||||
586 Mutated Creatures
|
||||
591 Great Ambitions
|
||||
594 Basic Mission: Dimensional Rift
|
||||
595 Special Mission: Raider's Crossroads
|
||||
596 Special Mission: Defeat Baylor
|
||||
599 Demons and Dimensional Energy
|
||||
655 A Grand Plan for Taming Wild Beasts
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
You are the one that the Adventure Guild sent, huh? Do you want to cooperate? No reason to say no.<br>
|
||||
<font color="LEVEL">(To receive "Dimensional Rift", you have to complete Beloa quest "Exploring the Dimension - 30-day Search Operation.)</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34227-02.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Complete Beloa daily quest. The necessary quest: <font color="LEVEL">Exploring the Dimension - 30-day Search Operation</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Complete Beloa daily quest. The necessary quest: <font color="LEVEL">Exploring the Dimension - 30-day Search Operation</font>.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-02.htm">"Sure, no problem!"</button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Herphah thought the best way for you to grow was to carry out missions with us.<br>
|
||||
I agree with her. If you accomplish the missions I give you, I'm sure you'll quickly become more powerful.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-03.htm">"Go on."</button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I know that you're confused. But, you'll understand soon. If you accept the mission, I'll explain right away.<br>
|
||||
Are you interested in further righteous work?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-04.htm">"Alright."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You have to accomplish the task at <font color="LEVEL">Dimensional Rift</font> on <font color="LEVEL">Aden</font>. To do so, you need to move to the Dimensional Rift and talk to Beloa.<br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
The mission I'll give you is to help the task at <font color="LEVEL">Dimensional Rift</font> on <font color="LEVEL">Aden</font>.<br>
|
||||
But first, you need to learn how get there.<br>
|
||||
If you successfully arrive at the ruins, meet Beloa and listen to him.<br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Welcome back! So, did you do a good job?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-07.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!
|
||||
</body></html>
|
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* 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.Q00594_BasicMissionDimensionalRift;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Basic Mission: Dimensional Rift (594)
|
||||
* @URL https://l2wiki.com/Basic_Mission:_Dimensional_Rift
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00594_BasicMissionDimensionalRift extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int PENNY = 34413;
|
||||
private static final int BELOA = 34227;
|
||||
// Rewards
|
||||
private static final int SCROLL_OF_ESCAPE_DIMENSIONAL_RIFT = 80312;
|
||||
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 95;
|
||||
private static final int MAX_LEVEL = 99;
|
||||
|
||||
public Q00594_BasicMissionDimensionalRift()
|
||||
{
|
||||
super(594);
|
||||
addStartNpc(PENNY);
|
||||
addTalkId(PENNY, BELOA);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34413-02.htm":
|
||||
case "34413-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34227-02.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-07.html":
|
||||
{
|
||||
// Rewards
|
||||
giveItems(player, SCROLL_OF_ESCAPE_DIMENSIONAL_RIFT, 1);
|
||||
addExpAndSp(player, 896549940, 896535);
|
||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 130); // add FP points to ADVENTURE_GUILD Faction
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == PENNY)
|
||||
{
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case PENNY:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34413-04.htm";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "33509-05.html";
|
||||
}
|
||||
else if (qs.getCond() == 3)
|
||||
{
|
||||
htmltext = "34413-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BELOA:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34227-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q00926_30DaySearchOperation");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
|
||||
htmltext = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34227-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
|
||||
{
|
||||
if (qs.isNowAvailable())
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Penny:<br>
|
||||
I don't understand why someone like you is interested in this mission?<br>
|
||||
(Only characters above Lv.95-99.)
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
hello wanderer. You need to complete one quest.<br>
|
||||
The necessary quest: An Impending Threat.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 31340-02.html">"I'm listening to"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
as soon as you complete the task, come back to me<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 31340-03.html">"What's that?"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
you need to complete the task <font color="LEVEL">An Impending Threat</font>.<br>
|
||||
Anyway, there's no other option. Go and check the missions.<br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
you need to complete the task <font color="LEVEL">An Impending Threat</font>.<br>
|
||||
Anyway, there's no other option. Go and check the missions.<br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Bruener:<br>
|
||||
I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.<br>
|
||||
<font color="LEVEL">(To complete the "Special Mission: Raider's Crossroads", you must complete the "Operation Roaring Flame".)</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-02.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Bruener:<br>
|
||||
Go and complete the main task. I hope for you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-03.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Bruener:<br>
|
||||
how to complete the quest: <font color="LEVEL">Operation Roaring Flame</font> come back to me.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Bruener:<br>
|
||||
hello traveler. You have already completed the quest <font color="LEVEL">Operation Roaring Flame</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-05.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Bruener:<br>
|
||||
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
|
||||
Don't tell me you're going to walk all the way up there. I know a better way.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads usescroll">"Go on Aden."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-02.htm">"Sure, no problem!"</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-03.htm">"Go on."</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You need to know how to get into the quest area. Talk to Captain Mathias in Rune Township. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-04.htm">"Alright."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You have already collected everything you need to know about the mission. You should be able to start a mission right away without further explanation.<br>
|
||||
But if you want to listen to the explanation again, I'd be happy to tell you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-05.html">"Receive the mission."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Good choice. Now, go to <font color="LEVEL">Captain Mathias</font> at the <font color="LEVEL">Rune Township</font> and do the mission that she gives you. When the mission is done, come back to me.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-06.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You must learn how to get to the mission area. Speak with Captain Mathias in Rune<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-07.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I hope you can help us.<br>
|
||||
go and fulfill the request of Priest <font color="LEVEL">Captain Mathias</font> in <font color="LEVEL">Rune Township</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-08.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I hope you can help us.<br>
|
||||
go and fulfill the request of <font color="LEVEL">Captain Mathias</font> in <font color="LEVEL">Rune Township</font>.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Welcome back! So, did you do a good job?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-10.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!.<br>
|
||||
</body></html>
|
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* 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.Q00595_SpecialMissionRaidersCrossroads;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Special Mission: Raider's Crossroads (595)
|
||||
* @URL https://l2wiki.com/Special_Mission:_Raider%27s_Crossroads
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00595_SpecialMissionRaidersCrossroads extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int PENNY = 34413;
|
||||
private static final int BRUENER = 33840;
|
||||
private static final int MATHIAS = 31340;
|
||||
// Rewards
|
||||
private static final int SCROLL_OF_ESCAPE_RAIDERS_CROSSROADS = 37017;
|
||||
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 97;
|
||||
private static final int MAX_LEVEL = 99;
|
||||
// Location
|
||||
private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213);
|
||||
|
||||
public Q00595_SpecialMissionRaidersCrossroads()
|
||||
{
|
||||
super(593);
|
||||
addStartNpc(PENNY);
|
||||
addTalkId(PENNY, BRUENER, MATHIAS);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34413-02.htm":
|
||||
case "34413-03.htm":
|
||||
case "34413-06.html":
|
||||
case "34413-07.html":
|
||||
case "31340-02.html":
|
||||
case "33840-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-08.html": // PENNY
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31340-03.html": // MATHIAS
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33840-03.html": // BRUENER
|
||||
{
|
||||
qs.setCond(5, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33840-05.html": // BRUENER
|
||||
{
|
||||
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "usescroll":
|
||||
{
|
||||
// TODO: force player to use item SCROLL_OF_ESCAPE_TOWN_OF_ADEN
|
||||
player.teleToLocation(TOWN_OF_ADEN); // Town of Aden near Npc Penny - temp solution
|
||||
takeItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, -1); // remove SOE - temp solution
|
||||
break;
|
||||
}
|
||||
case "34413-10.html":
|
||||
{
|
||||
// Rewards
|
||||
giveItems(player, SCROLL_OF_ESCAPE_RAIDERS_CROSSROADS, 1);
|
||||
addExpAndSp(player, 2692129950L, 5384220);
|
||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 250); // add FP points to ADVENTURE_GUILD Faction
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == PENNY)
|
||||
{
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case PENNY:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34413-05.html";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "34413-08.html";
|
||||
}
|
||||
else if (qs.getCond() == 6)
|
||||
{
|
||||
htmltext = "34413-09.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MATHIAS:
|
||||
{
|
||||
if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "31340-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 3)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q10445_AnImpendingThreat");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
htmltext = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31340-03.html";
|
||||
}
|
||||
}
|
||||
else if (qs.getCond() == 4)
|
||||
{
|
||||
htmltext = "31340-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BRUENER:
|
||||
{
|
||||
if (qs.getCond() == 4)
|
||||
{
|
||||
htmltext = "33840-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 5)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q00778_OperationRoaringFlame");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
htmltext = "33840-04.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33840-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (qs.isNowAvailable())
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Penny:<br>
|
||||
I don't understand why someone like you is interested in this mission?<br>
|
||||
(Only characters above Lv.97-99.)
|
||||
</body></html>
|
@@ -142,6 +142,8 @@ import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash;
|
||||
import quests.Q00589_ASecretChange.Q00589_ASecretChange;
|
||||
import quests.Q00590_ToEachTheirOwn.Q00590_ToEachTheirOwn;
|
||||
import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple;
|
||||
import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift;
|
||||
import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads;
|
||||
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
|
||||
import quests.Q00617_GatherTheFlames.Q00617_GatherTheFlames;
|
||||
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
|
||||
@@ -498,8 +500,6 @@ import quests.not_done.Q00579_BasicMissionBlazingSwamp;
|
||||
import quests.not_done.Q00585_CantGoAgainstTheTime;
|
||||
import quests.not_done.Q00586_MutatedCreatures;
|
||||
import quests.not_done.Q00591_GreatAmbitions;
|
||||
import quests.not_done.Q00594_BasicMissionDimensionalRift;
|
||||
import quests.not_done.Q00595_SpecialMissionRaidersCrossroads;
|
||||
import quests.not_done.Q00596_SpecialMissionDefeatBaylor;
|
||||
import quests.not_done.Q00599_DemonsAndDimensionalEnergy;
|
||||
import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts;
|
||||
@@ -724,8 +724,8 @@ public class QuestMasterHandler
|
||||
Q00590_ToEachTheirOwn.class,
|
||||
Q00591_GreatAmbitions.class, // TODO: Not done.
|
||||
Q00593_BasicMissionPaganTemple.class,
|
||||
Q00594_BasicMissionDimensionalRift.class, // TODO: Not done.
|
||||
Q00595_SpecialMissionRaidersCrossroads.class, // TODO: Not done.
|
||||
Q00594_BasicMissionDimensionalRift.class,
|
||||
Q00595_SpecialMissionRaidersCrossroads.class,
|
||||
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
|
||||
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class,
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00594_BasicMissionDimensionalRift extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34413;
|
||||
|
||||
public Q00594_BasicMissionDimensionalRift()
|
||||
{
|
||||
super(594);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00595_SpecialMissionRaidersCrossroads extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34413;
|
||||
|
||||
public Q00595_SpecialMissionRaidersCrossroads()
|
||||
{
|
||||
super(595);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
@@ -43,8 +43,6 @@
|
||||
586 Mutated Creatures
|
||||
591 Great Ambitions
|
||||
592 Snow's Plea - Monsters from Three Areas
|
||||
594 Basic Mission: Dimensional Rift
|
||||
595 Special Mission: Raider's Crossroads
|
||||
596 Special Mission: Defeat Baylor
|
||||
599 Demons and Dimensional Energy
|
||||
655 A Grand Plan for Taming Wild Beasts
|
||||
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
You are the one that the Adventure Guild sent, huh? Do you want to cooperate? No reason to say no.<br>
|
||||
<font color="LEVEL">(To receive "Dimensional Rift", you have to complete Beloa quest "Exploring the Dimension - 30-day Search Operation.)</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34227-02.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Complete Beloa daily quest. The necessary quest: <font color="LEVEL">Exploring the Dimension - 30-day Search Operation</font>.
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Quartermaster:<br>
|
||||
Complete Beloa daily quest. The necessary quest: <font color="LEVEL">Exploring the Dimension - 30-day Search Operation</font>.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-02.htm">"Sure, no problem!"</button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Herphah thought the best way for you to grow was to carry out missions with us.<br>
|
||||
I agree with her. If you accomplish the missions I give you, I'm sure you'll quickly become more powerful.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-03.htm">"Go on."</button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I know that you're confused. But, you'll understand soon. If you accept the mission, I'll explain right away.<br>
|
||||
Are you interested in further righteous work?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-04.htm">"Alright."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You have to accomplish the task at <font color="LEVEL">Dimensional Rift</font> on <font color="LEVEL">Aden</font>. To do so, you need to move to the Dimensional Rift and talk to Beloa.<br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
The mission I'll give you is to help the task at <font color="LEVEL">Dimensional Rift</font> on <font color="LEVEL">Aden</font>.<br>
|
||||
But first, you need to learn how get there.<br>
|
||||
If you successfully arrive at the ruins, meet Beloa and listen to him.<br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Welcome back! So, did you do a good job?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00594_BasicMissionDimensionalRift 34413-07.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!
|
||||
</body></html>
|
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* 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.Q00594_BasicMissionDimensionalRift;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Basic Mission: Dimensional Rift (594)
|
||||
* @URL https://l2wiki.com/Basic_Mission:_Dimensional_Rift
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00594_BasicMissionDimensionalRift extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int PENNY = 34413;
|
||||
private static final int BELOA = 34227;
|
||||
// Rewards
|
||||
private static final int SCROLL_OF_ESCAPE_DIMENSIONAL_RIFT = 80312;
|
||||
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 95;
|
||||
private static final int MAX_LEVEL = 99;
|
||||
|
||||
public Q00594_BasicMissionDimensionalRift()
|
||||
{
|
||||
super(594);
|
||||
addStartNpc(PENNY);
|
||||
addTalkId(PENNY, BELOA);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34413-02.htm":
|
||||
case "34413-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34227-02.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-07.html":
|
||||
{
|
||||
// Rewards
|
||||
giveItems(player, SCROLL_OF_ESCAPE_DIMENSIONAL_RIFT, 1);
|
||||
addExpAndSp(player, 896549940, 896535);
|
||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 130); // add FP points to ADVENTURE_GUILD Faction
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == PENNY)
|
||||
{
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case PENNY:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34413-04.htm";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "33509-05.html";
|
||||
}
|
||||
else if (qs.getCond() == 3)
|
||||
{
|
||||
htmltext = "34413-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BELOA:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34227-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q00926_30DaySearchOperation");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
|
||||
htmltext = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "34227-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
|
||||
{
|
||||
if (qs.isNowAvailable())
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Penny:<br>
|
||||
I don't understand why someone like you is interested in this mission?<br>
|
||||
(Only characters above Lv.95-99.)
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
hello wanderer. You need to complete one quest.<br>
|
||||
The necessary quest: An Impending Threat.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 31340-02.html">"I'm listening to"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
as soon as you complete the task, come back to me<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 31340-03.html">"What's that?"</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
you need to complete the task <font color="LEVEL">An Impending Threat</font>.<br>
|
||||
Anyway, there's no other option. Go and check the missions.<br>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
you need to complete the task <font color="LEVEL">An Impending Threat</font>.<br>
|
||||
Anyway, there's no other option. Go and check the missions.<br>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Bruener:<br>
|
||||
I asked the Adventure Guild to send an adventurer but didn't expect they would send you. I'd like to see how good you are.<br>
|
||||
<font color="LEVEL">(To complete the "Special Mission: Raider's Crossroads", you must complete the "Operation Roaring Flame".)</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-02.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Bruener:<br>
|
||||
Go and complete the main task. I hope for you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-03.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Bruener:<br>
|
||||
how to complete the quest: <font color="LEVEL">Operation Roaring Flame</font> come back to me.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Bruener:<br>
|
||||
hello traveler. You have already completed the quest <font color="LEVEL">Operation Roaring Flame</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 33840-05.html">"Go on."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Bruener:<br>
|
||||
You completed all the missions I gave you, meaning that you also completed those of the Adventure Guildsman. Are you going back to the Town of Aden? How?<br>
|
||||
Don't tell me you're going to walk all the way up there. I know a better way.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads usescroll">"Go on Aden."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Your're the one that Hephah has sent, right? If not, you should go meet Herphah and receive a mission from her before you continue. If you think it doesn't matter, I can continue anyway. Do you want me to continue?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-02.htm">"Sure, no problem!"</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Herphah wants you to do some missions, and I'll chose an appropriate mission depending on your relationship with us at the Adventure Guild.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-03.htm">"Go on."</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You need to know how to get into the quest area. Talk to Captain Mathias in Rune Township. If successful, our Adventure Guild will give you additional rewards on top of the mission payment and your relationship with our faction will grow even stronger.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-04.htm">"Alright."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You have already collected everything you need to know about the mission. You should be able to start a mission right away without further explanation.<br>
|
||||
But if you want to listen to the explanation again, I'd be happy to tell you.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-05.html">"Receive the mission."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Good choice. Now, go to <font color="LEVEL">Captain Mathias</font> at the <font color="LEVEL">Rune Township</font> and do the mission that she gives you. When the mission is done, come back to me.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-06.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
You must learn how to get to the mission area. Speak with Captain Mathias in Rune<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-07.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,5 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I hope you can help us.<br>
|
||||
go and fulfill the request of Priest <font color="LEVEL">Captain Mathias</font> in <font color="LEVEL">Rune Township</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-08.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
I hope you can help us.<br>
|
||||
go and fulfill the request of <font color="LEVEL">Captain Mathias</font> in <font color="LEVEL">Rune Township</font>.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Welcome back! So, did you do a good job?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00595_SpecialMissionRaidersCrossroads 34413-10.html">"Yes, I did."</Button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Adventure Guildsman Penny:<br>
|
||||
Thanks, you've done a great job! I'm sure eveyone in the Adventure Guild will know your name now. If there is another opportunity, we'd love for you to help us again. Good luck and farewell!.<br>
|
||||
</body></html>
|
@@ -0,0 +1,230 @@
|
||||
/*
|
||||
* 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.Q00595_SpecialMissionRaidersCrossroads;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Faction;
|
||||
import org.l2jmobius.gameserver.enums.QuestType;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Special Mission: Raider's Crossroads (595)
|
||||
* @URL https://l2wiki.com/Special_Mission:_Raider%27s_Crossroads
|
||||
* @author Dmitri
|
||||
*/
|
||||
public class Q00595_SpecialMissionRaidersCrossroads extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int PENNY = 34413;
|
||||
private static final int BRUENER = 33840;
|
||||
private static final int MATHIAS = 31340;
|
||||
// Rewards
|
||||
private static final int SCROLL_OF_ESCAPE_RAIDERS_CROSSROADS = 37017;
|
||||
private static final int SCROLL_OF_ESCAPE_TOWN_OF_ADEN = 48413;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 97;
|
||||
private static final int MAX_LEVEL = 99;
|
||||
// Location
|
||||
private static final Location TOWN_OF_ADEN = new Location(146632, 26760, -2213);
|
||||
|
||||
public Q00595_SpecialMissionRaidersCrossroads()
|
||||
{
|
||||
super(593);
|
||||
addStartNpc(PENNY);
|
||||
addTalkId(PENNY, BRUENER, MATHIAS);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "nolevel.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "34413-02.htm":
|
||||
case "34413-03.htm":
|
||||
case "34413-06.html":
|
||||
case "34413-07.html":
|
||||
case "31340-02.html":
|
||||
case "33840-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "34413-08.html": // PENNY
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31340-03.html": // MATHIAS
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33840-03.html": // BRUENER
|
||||
{
|
||||
qs.setCond(5, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33840-05.html": // BRUENER
|
||||
{
|
||||
giveItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, 1);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "usescroll":
|
||||
{
|
||||
// TODO: force player to use item SCROLL_OF_ESCAPE_TOWN_OF_ADEN
|
||||
player.teleToLocation(TOWN_OF_ADEN); // Town of Aden near Npc Penny - temp solution
|
||||
takeItems(player, SCROLL_OF_ESCAPE_TOWN_OF_ADEN, -1); // remove SOE - temp solution
|
||||
break;
|
||||
}
|
||||
case "34413-10.html":
|
||||
{
|
||||
// Rewards
|
||||
giveItems(player, SCROLL_OF_ESCAPE_RAIDERS_CROSSROADS, 1);
|
||||
addExpAndSp(player, 2692129950L, 5384220);
|
||||
addFactionPoints(player, Faction.ADVENTURE_GUILD, 250); // add FP points to ADVENTURE_GUILD Faction
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(Npc npc, PlayerInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == PENNY)
|
||||
{
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case PENNY:
|
||||
{
|
||||
if (qs.getCond() == 1)
|
||||
{
|
||||
htmltext = "34413-05.html";
|
||||
}
|
||||
else if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "34413-08.html";
|
||||
}
|
||||
else if (qs.getCond() == 6)
|
||||
{
|
||||
htmltext = "34413-09.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MATHIAS:
|
||||
{
|
||||
if (qs.getCond() == 2)
|
||||
{
|
||||
htmltext = "31340-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 3)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q10445_AnImpendingThreat");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
htmltext = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31340-03.html";
|
||||
}
|
||||
}
|
||||
else if (qs.getCond() == 4)
|
||||
{
|
||||
htmltext = "31340-04.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BRUENER:
|
||||
{
|
||||
if (qs.getCond() == 4)
|
||||
{
|
||||
htmltext = "33840-01.html";
|
||||
}
|
||||
else if (qs.getCond() == 5)
|
||||
{
|
||||
final QuestState st = player.getQuestState("Q00778_OperationRoaringFlame");
|
||||
if ((st != null) && st.isCompleted())
|
||||
{
|
||||
qs.setCond(6, true);
|
||||
htmltext = "33840-04.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "33840-03.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if (qs.isNowAvailable())
|
||||
{
|
||||
qs.setState(State.CREATED);
|
||||
htmltext = "34413-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Penny:<br>
|
||||
I don't understand why someone like you is interested in this mission?<br>
|
||||
(Only characters above Lv.97-99.)
|
||||
</body></html>
|
@@ -72,6 +72,8 @@ import quests.Q00588_HeadOnCrash.Q00588_HeadOnCrash;
|
||||
import quests.Q00589_ASecretChange.Q00589_ASecretChange;
|
||||
import quests.Q00590_ToEachTheirOwn.Q00590_ToEachTheirOwn;
|
||||
import quests.Q00593_BasicMissionPaganTemple.Q00593_BasicMissionPaganTemple;
|
||||
import quests.Q00594_BasicMissionDimensionalRift.Q00594_BasicMissionDimensionalRift;
|
||||
import quests.Q00595_SpecialMissionRaidersCrossroads.Q00595_SpecialMissionRaidersCrossroads;
|
||||
import quests.Q00600_KeyToTheRefiningProcess.Q00600_KeyToTheRefiningProcess;
|
||||
import quests.Q00618_IntoTheFlame.Q00618_IntoTheFlame;
|
||||
import quests.Q00620_FourGoblets.Q00620_FourGoblets;
|
||||
@@ -261,8 +263,6 @@ import quests.not_done.Q00504_CompetitionForTheBanditStronghold;
|
||||
import quests.not_done.Q00585_CantGoAgainstTheTime;
|
||||
import quests.not_done.Q00586_MutatedCreatures;
|
||||
import quests.not_done.Q00591_GreatAmbitions;
|
||||
import quests.not_done.Q00594_BasicMissionDimensionalRift;
|
||||
import quests.not_done.Q00595_SpecialMissionRaidersCrossroads;
|
||||
import quests.not_done.Q00596_SpecialMissionDefeatBaylor;
|
||||
import quests.not_done.Q00599_DemonsAndDimensionalEnergy;
|
||||
import quests.not_done.Q00655_AGrandPlanForTamingWildBeasts;
|
||||
@@ -398,8 +398,8 @@ public class QuestMasterHandler
|
||||
Q00590_ToEachTheirOwn.class,
|
||||
Q00591_GreatAmbitions.class, // TODO: Not done.
|
||||
Q00593_BasicMissionPaganTemple.class,
|
||||
Q00594_BasicMissionDimensionalRift.class, // TODO: Not done.
|
||||
Q00595_SpecialMissionRaidersCrossroads.class, // TODO: Not done.
|
||||
Q00594_BasicMissionDimensionalRift.class,
|
||||
Q00595_SpecialMissionRaidersCrossroads.class,
|
||||
Q00596_SpecialMissionDefeatBaylor.class, // TODO: Not done.
|
||||
Q00599_DemonsAndDimensionalEnergy.class, // TODO: Not done.
|
||||
Q00600_KeyToTheRefiningProcess.class,
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00594_BasicMissionDimensionalRift extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34413;
|
||||
|
||||
public Q00594_BasicMissionDimensionalRift()
|
||||
{
|
||||
super(594);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.not_done;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Q00595_SpecialMissionRaidersCrossroads extends Quest
|
||||
{
|
||||
private static final int START_NPC = 34413;
|
||||
|
||||
public Q00595_SpecialMissionRaidersCrossroads()
|
||||
{
|
||||
super(595);
|
||||
addStartNpc(START_NPC);
|
||||
addTalkId(START_NPC);
|
||||
addCondMinLevel(Config.PLAYER_MAXIMUM_LEVEL, getNoQuestMsg(null));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user