Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<html><body>Trader Vladimir:<br>
|
||||
The world is very unsettled these days. Would you be interested in a unique kind of power?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31302-01.html">Quest</Button>
|
||||
<html><body>Trader Vladimir:<br>
|
||||
Sir, can I talk to you for a second? You know the world has gotten so dangerous these days that honing your own strength is your best protection.<br>
|
||||
I'd like to help you to get a new power. Are you interested?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31302-01.html"> "What kind of power is it?" </Button>
|
||||
</body></html>
|
@@ -1,4 +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>
|
||||
<html><body>Trader Vladimir:<br>
|
||||
You need more training before we can talk.<br>
|
||||
(This quest may only be undertaken by a character of level 60 or above.)
|
||||
</body></html>
|
@@ -1,3 +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.
|
||||
<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>
|
@@ -1,3 +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.
|
||||
<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>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Hierarch:<br>
|
||||
What are you doing here? We don't let just anybody in here!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31517-01.html">Vladimir sent me.</Button>
|
||||
<html><body>Hierarch:<br>
|
||||
What are you doing here? We don't let just anybody in here!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31517-01.html">"Vladimir sent me."</Button>
|
||||
</body></html>
|
@@ -1,3 +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.
|
||||
<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>
|
@@ -1,4 +1,4 @@
|
||||
<html><body>Mysterious Necromancer:<br>
|
||||
What business do you have here? What do you want from me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31518-01.html">I want to change my ways.</Button>
|
||||
<html><body>Mysterious Necromancer:<br>
|
||||
What business do you have here? What do you want from me?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00015_SweetWhispers 31518-01.html">"I want to change my ways."</Button>
|
||||
</body></html>
|
@@ -1,4 +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.
|
||||
<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>
|
@@ -1,3 +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.
|
||||
<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>
|
@@ -1,147 +1,131 @@
|
||||
/*
|
||||
* 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.Q00015_SweetWhispers;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
final String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "31302-01.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "31518-01.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
qs.setCond(2);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "31517-01.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
addExpAndSp(player, 350531, 28204);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
final int npcId = npc.getId();
|
||||
switch (qs.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 (qs.isCond(1))
|
||||
{
|
||||
htmltext = "31302-01a.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case M_NECROMANCER:
|
||||
{
|
||||
final int cond = qs.getCond();
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "31518-00.html";
|
||||
}
|
||||
else if (cond == 2)
|
||||
{
|
||||
htmltext = "31518-01a.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case HIERARCH:
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "31517-00.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* 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.Q00015_SweetWhispers;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Sweet Whispers (15)
|
||||
* @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;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 60;
|
||||
|
||||
public Q00015_SweetWhispers()
|
||||
{
|
||||
super(15);
|
||||
addStartNpc(VLADIMIR);
|
||||
addTalkId(VLADIMIR, HIERARCH, M_NECROMANCER);
|
||||
addCondMinLevel(MIN_LEVEL, "31302-00a.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final 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))
|
||||
{
|
||||
addExpAndSp(player, 714215, 171);
|
||||
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.CREATED:
|
||||
if (npcId == VLADIMIR)
|
||||
{
|
||||
htmltext = "31302-00.htm";
|
||||
}
|
||||
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;
|
||||
case State.COMPLETED:
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user