This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Trader Vladimir:<br>
The world is very unsettled these days. Would you be interested in a unique kind of power?<br>
<a action="bypass -h Quest Q00015_SweetWhispers 31302-01.html">Quest</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Vladimir:<br>
I think it is too early for you to help me. Come back after you have gained some more experience.<br>
<font color="LEVEL">(Quest for characters level 60 and above.)</font>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Vladimir:<br>
Excellent, I'll tell you what to do. Find the <font color="LEVEL">mysterious Necromancer</font> at the entrance to the <font color="LEVEL">Valley of Saints</font>. He'll help you test your fate. Look for someone from my guild if you should need help.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Vladimir:<br>
Find the <font color="LEVEL">mysterious Necromancer</font> at the entrance to the <font color="LEVEL">Valley of Saints</font>. He'll help you test your fate.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Hierarch:<br>
What are you doing here? We don't let just anybody in here!<br>
<a action="bypass -h Quest Q00015_SweetWhispers 31517-01.html">Vladimir sent me.</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Hierarch:<br>
Oh, he sent you! Fine! We'll be working together then! Your first task will only be a test. After I assess your ability, I'll assign you a mission that's more appropriate for you. Come back later.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mysterious Necromancer:<br>
What business do you have here? What do you want from me?<br>
<a action="bypass -h Quest Q00015_SweetWhispers 31518-01.html">I want to change my ways.</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Mysterious Necromancer:<br>
Ah! You're looking for the elder too, aren't you? Lots of folks looking for him these days... This is getting old! Do I look like a street sign to you?<br>
Anyway, past the Entrance of the Saints, you'll see the valley. Go to the deepest part of the valley and enter the cave. You'll find the elder there.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Mysterious Necromancer:<br>
Hmmph! I've already told you where to look for him! Past the Entrance of the Saints you'll see the valley. Go to the deepest part of the valley and enter the cave there. You'll find the elder that you seek.
</body></html>

View File

@@ -0,0 +1,131 @@
/*
* Copyright (C) 2004-2014 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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.Q00015_SweetWhispers;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Sweet Whisper (15)<br>
* Original jython script by disKret.
* @author nonom
*/
public class Q00015_SweetWhispers extends Quest
{
// NPCs
private static final int VLADIMIR = 31302;
private static final int HIERARCH = 31517;
private static final int M_NECROMANCER = 31518;
public Q00015_SweetWhispers()
{
super(15, Q00015_SweetWhispers.class.getSimpleName(), "Sweet Whispers");
addStartNpc(VLADIMIR);
addTalkId(VLADIMIR, HIERARCH, M_NECROMANCER);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
final QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
switch (event)
{
case "31302-01.html":
st.startQuest();
break;
case "31518-01.html":
if (st.isCond(1))
{
st.setCond(2);
}
break;
case "31517-01.html":
if (st.isCond(2))
{
st.addExpAndSp(350531, 28204);
st.exitQuest(false, true);
}
break;
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
final int npcId = npc.getId();
switch (st.getState())
{
case State.COMPLETED:
htmltext = getAlreadyCompletedMsg(player);
break;
case State.CREATED:
if (npcId == VLADIMIR)
{
htmltext = (player.getLevel() >= 60) ? "31302-00.htm" : "31302-00a.html";
}
break;
case State.STARTED:
switch (npcId)
{
case VLADIMIR:
if (st.isCond(1))
{
htmltext = "31302-01a.html";
}
break;
case M_NECROMANCER:
switch (st.getCond())
{
case 1:
htmltext = "31518-00.html";
break;
case 2:
htmltext = "31518-01a.html";
break;
}
break;
case HIERARCH:
if (st.isCond(2))
{
htmltext = "31517-00.html";
}
break;
}
break;
}
return htmltext;
}
}