Some quest additions.
Contributed by hlwrave.
This commit is contained in:
144
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/Q10386_MysteriousJourney.java
vendored
Normal file
144
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/Q10386_MysteriousJourney.java
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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.Q10386_MysteriousJourney;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author hlwrave
|
||||
* @URL https://l2wiki.com/Mysterious_Journey
|
||||
*/
|
||||
public class Q10386_MysteriousJourney extends Quest
|
||||
{
|
||||
// Npcs
|
||||
private static final int TOPOI = 30499;
|
||||
private static final int HESET = 33780;
|
||||
private static final int BERNA = 33796;
|
||||
// Misc
|
||||
public static final int MIN_LEVEL = 93;
|
||||
|
||||
public Q10386_MysteriousJourney()
|
||||
{
|
||||
super(10386, Q10386_MysteriousJourney.class.getSimpleName(), "Mysterious Journey");
|
||||
addStartNpc(TOPOI);
|
||||
addTalkId(TOPOI, HESET, BERNA);
|
||||
addCondMinLevel(MIN_LEVEL, "nolevel.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "accepted.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "acceptedHeset.html":
|
||||
{
|
||||
qs.setCond(3);
|
||||
break;
|
||||
}
|
||||
case "acceptedBerma.html":
|
||||
{
|
||||
qs.setCond(4);
|
||||
break;
|
||||
}
|
||||
case "endquest.html":
|
||||
{
|
||||
addExpAndSp(player, 27244350, 2724435);
|
||||
giveAdena(player, 58707, true);
|
||||
giveItems(player, 17526, 1);
|
||||
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
qs.exitQuest(QuestType.ONE_TIME, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case TOPOI:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "start.htm";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "completed.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case HESET:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "hesetCond1.html";
|
||||
}
|
||||
else if (qs.isCond(4))
|
||||
{
|
||||
htmltext = "collected.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "completed.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case BERNA:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "berna.html";
|
||||
}
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "completed.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/accepted.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/accepted.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>tapas:<br>
|
||||
Alas, but I do not know about that, they say that the Heceta Island shower knows something about it, but not the fact that tell you something, try something there, good luck!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/acceptedBerma.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/acceptedBerma.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Bern:<br>
|
||||
Go with God .. oh .. this Heceta
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/acceptedHeset.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/acceptedHeset.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Heceta:<br>
|
||||
Bern is located at the Altar Normil, you must be met for it, so it knows everything, hehe ..
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/berna.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/berna.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Bern:<br>
|
||||
Oh, let guess you sent me to this wonderful Heceta? All he knows only very few people trust you ... I know this will not ask for much, tell him to "cats come in the summer," and he will answer all your questions ..<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10386_MysteriousJourney acceptedBerma.html">"Thank you!"</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/collected.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/collected.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Heceta:<br>
|
||||
What people looked to us .. you want me to say something ...?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10386_MysteriousJourney endquest.html">"Cats come in the summer!"</button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/completed.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/completed.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>
|
||||
(Quest is already completed.)<br>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/endquest.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/endquest.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Heceta:<br><br>
|
||||
I agree with that ... now listen ...<br>
|
||||
<font color="LEVEL"> 30 minutes later </font><br>
|
||||
I hope everything is clear, go with God, here's a reward for what you do not tell anyone our secret word.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/hesetCond1.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/hesetCond1.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Heceta:<br>
|
||||
What? Sorry but you just tell me? You do not know ha ha! I do not quite understand, bring a translation Bernie, I beg of you and waste my precious time.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10386_MysteriousJourney acceptedHeset.html">"Where is she?"</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/nolevel.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/nolevel.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
You have not inspire me enough confidence. I can not charge you a job. Someday you will be able to help us, but that time has not come yet.<br>
|
||||
(This quest is available after the 93th level.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/start.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10386_MysteriousJourney/start.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>tapas:<br>
|
||||
No not even tell you ... come .. because you have something important to know, and it's something related to the norm! Am I right oink-oink?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10386_MysteriousJourney accepted.html">"Yes, it's awesome!"</button>
|
||||
</body></html>
|
Reference in New Issue
Block a user