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,4 @@
<html><body>Eva's Knight Lionel Hunter:<br>
The powers you possess may be to die for to the common folk, but they are nothing to me. But Lady Eva chooses, not I. With her favor, you deserve to at least hear me out. Well, listen well.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10461_TappingThePowerWithin 33907-02.htm">"Uh oh."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Eva's Knight Lionel Hunter:<br>
Who do you think are the ones who live on in history? Noble are their souls, and their strength is unhindered by bodily limits.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10461_TappingThePowerWithin 33907-03.htm">"Oh. Uh, I knew that. Anyway, go on."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Eva's Knight Lionel Hunter:<br>
Well then, how do you measure up? Perhaps slightly greater than others in strength, but nowhere close to a legendary hero. But Lady Eva has chosen you, and I bow to her choice. I will help you if you wish to take the next step in strengthening yourself. Are you willing?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10461_TappingThePowerWithin 33907-04.htm">"Yes."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Eva's Knight Lionel Hunter:<br>
Very well. If you wish to tap the power within you, listen to my words, and listen carefully. I need your full conviction that you want this, before allowing you to choose the class which will bring about this new power.<br><br>
<font color="LEVEL">(This quest only rewards either the main or dual class. Please switch to the class for which you want rewards before proceeding with the quest.)</font>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Eva's Knight Lionel Hunter:<br>
Are you ready? Ready to bring out your hidden power? As the first step, I will give you <font color="LEVEL">Skill Points</font> so that you can acquire <font color="LEVEL">Ability Points</font> with them.<br>
<font color="LEVEL">(In this quest, you get skill points required to get the 1st Ability Point.Please switch to the class for which you want rewards before proceeding with the quest. If your character already has AP, you may be unable to acquire the 1 AP with the SP awarded.)</font><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10461_TappingThePowerWithin 33907-06.html">"I'd like to receive rewards for the current class."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Eva's Knight Lionel Hunter:<br>
Very well. You are ready. Whether this leads to glory or suffering is for you to decide. Eva be with you!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Eva's Knight Lionel Hunter:<br>
I only serve Lady Eva and Innadril. If you have no business with me, be gone.<br>
(Only Noblesse or Exalted characters Lv. 99 or above can perform this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Eva's Knight Lionel Hunter:<br>
I see that there is nothing I can teach you that you do not already know yourself.
</body></html>

View File

@@ -0,0 +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.Q10461_TappingThePowerWithin;
import com.l2jmobius.gameserver.enums.ChatType;
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;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jmobius.gameserver.network.serverpackets.ability.ExShowAPListWnd;
/**
* Tapping The Power Within (10461)
* @author Gladicek
*/
public final class Q10461_TappingThePowerWithin extends Quest
{
// NPCs
private static final int LIONEL_HUNTER = 33907;
// Misc
private static final int MIN_LEVEL = 99;
public Q10461_TappingThePowerWithin()
{
super(10461);
addStartNpc(LIONEL_HUNTER);
addTalkId(LIONEL_HUNTER);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = event;
switch (event)
{
case "33907-02.htm":
case "33907-03.htm":
{
htmltext = event;
break;
}
case "33907-04.htm":
{
qs.startQuest();
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.DOES_YOUR_FATE_NOT_WEIGH_UPON_YOU);
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2text\\QT_025_ability_01.htm", TutorialShowHtml.LARGE_WINDOW));
break;
}
case "33907-06.html":
{
if (!player.isSubClassActive() || (player.isDualClassActive()))
{
showOnScreenMsg(player, NpcStringId.OPEN_THE_ABILITY_SCREEN_IN_THE_CHARACTER_INFORMATION_SCREEN_NPRESS_ADJUST_POINTS_TO_ADJUST_THE_ACQUIRED_SP_AND_ABILITY_POINTS, ExShowScreenMessage.TOP_CENTER, 5000);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THIS_IS_JUST_THE_BEGINNING);
player.sendPacket(ExShowAPListWnd.STATIC_PACKET);
addExpAndSp(player, 0, 250_000_000);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (qs == null)
{
return htmltext;
}
switch (qs.getState())
{
case State.CREATED:
{
if (((player.getLevel() >= MIN_LEVEL) && player.isNoble()))
{
htmltext = "33907-01.htm";
break;
}
htmltext = "33907-07.html";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "33907-05.html";
}
break;
}
case State.COMPLETED:
{
htmltext = "33907-08.html";
break;
}
}
return htmltext;
}
}