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

@@ -1,4 +1,4 @@
<html><body>Grand Magister Winonin:<br>
Hum, has the time come? Your name is quite well-known throughout these parts. They say your star is rising, and that we can entrust you with our clan's future. Those that are an a new stage normnally seek new strength. It is time you demonstrated that you are worthy of such expectations.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-02.htm">"I'm ready!"</button>
<html><body>Grand Magister Winonin:<br>
Ah... I've heard a lot about you! I've heard that you're the future of our race! That's quite a weight to bear - I hope the pressure doesn't bury you. In fact, I would like you support you and guide you to more power.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-02.htm">"Yeah, I'd like to further myself."</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Grand Magister Winonin:<br>
I have been given a divine revelation of a new destiny for all who are qualified to represent the Mystic Guild. I judge you to be qualified in all aspects.<br>
The Mystic Guild is in a dire situation, and we need more candidates like you if we are to redeem ourselves for following the Goddess of Destruction. If you are ready to receive new powers and restore honor to our clan, accept this mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-03.htm">"What's the mission?"</button>
<html><body>Grand Magister Winonin:<br>
I received a revelation! I must spread the Gospel of Einhasad, and endow new powers on those that have a chance to excel. You are one of those, friend, so I have a mission that I would like to assign to you.<br>
First though, you must agree to it! What do you think?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-03.htm">"What's the mission?"</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Grand Magister Winonin:<br>
You have surely heard of the Seal of Shilen, near to Aden Castle? The Goddess or Destruction has opened her evil eyes, and is strengthening her dark powers. She has already filled that place with evil energy, and her spirits are looking for an opportunity to take over Aden Castle.<br>
The Vanguard went to the underground lair where they believe the Spirits are coming from, but nothing has been heard from them in days. We are about to deploy a search team, and we would like you to accept the mission.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-04.htm">"I accept with pride."</button>
<html><body>Grand Magister Winonin:<br>
You're probably aware of the Seal of Shilen region located in the outskirts of Aden Castle. However, you might not be aware that Shilen's minions are now preparing to attack this Aden Castle.<br>
We found where the minions were gathering, and, hoping to catch them unawares, sent a party to attack them before they had left. As you probably guessed... we haven't heard anything from them. We need someone... you... to find them.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-04.htm">"I accept, with pride."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Grand Magister Winonin:<br>
A person of your abilities, I don't doubt that you are well suited for this mission. From here, head toward the Seal of Shilen and the Cemetery, and look for the vanguard near the Evil Incubator. Don't forget that every step you take could change the future of our clan.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-05.html">"Count me in."</button>
<html><body>Grand Magister Winonin:<br>
If you accept the mission, you'll need to find the Quartermaster who left for the Evil Incubator on the outskirts of the Cemetary. Talk to him, help him if necessary, and return safely.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-05.htm">"No problem!"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Magister Winonin:<br>
I will explain your task one more time. You must go to the Evil Incubator on the outskirts of the Cemetary and find the Quartermaster we sent there. He'll explain the rest.<br1>
Good luck!
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>Grand Magister Winonin:<br>
I'll explain again about the mission. First, go to Shilen's Seal and the Cemetary, find the vanguard, and help them. The quartermaster will probably be waiting for you.
</body></html>

View File

@@ -1,6 +1,4 @@
<html><body>Grand Magister Winonin:<br>
Adolph has told me all about you. You were truly a sight to behold, I see. Well, it's time for you to be granted a new path, perhaps.<br>
I'll tell you more if you wish. Otherwise, I have a gift for you.<br>
<!-- <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate transfer_info">"Yeah, I do want to know more."</Button> -->
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-07.html">"No no, just give me the stuff, and I'll transfer."</Button>
<html><body>Grand Magister Winonin:<br>
I will explain your task one more time. You must go to the Evil Incubator on the outskirts of the Cemetary and find the Quartermaster we sent there. He'll explain the rest.<br1>
Good luck!
</body></html>

View File

@@ -1,4 +1,6 @@
<html><body>Grand Magister Winonin:<br>
So, you are ready? Absolutely sure?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-08.html">"I'm ready."</Button>
<html><body>Grand Magister Winonin:<br>
Adolph had told me all about your feats! It seems that Einhasad looks over your path -- you're ready to walk a new path!<br>
If you're curious, I can tell you more about it. Oh, and I have gifts for you too!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate nextClassInfo">"Yeah, I do want to know more."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 30856-08.html">"No no, just give me the stuff, and I'll transfer."</Button>
</body></html>

View File

@@ -1,3 +1,4 @@
<html><body>Grand Magister Winonin:<br>
New destiny will open up your path.
<html><body>Grand Magister Winonin:<br>
So, you are ready? Absolutely sure?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate classTransfer">"I'm ready."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><head><body>Grand Magister Winonin:<br>
As representative of the Elves and great teachers, I, Grand Magister Winonin hereby certify that you have started your new path under the blessing of Eva!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Grand Magister Winonin:<br>
In order to complete this mission properly, return in your original class.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Magister Winonin:<br>
I can only help those who are fully qualified to withstand the trial of fate successfully. Please return when you feel you are sufficiently qualified.<br>
(This quest may only be undertaken by Temple Knights, Swordsingers, Plane Walkers, Silver Rangers, Spellsingers, Elemental Summoners, and Elders who are level 76 or above and have completed the second class transfer.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Grand Magister Winonin:<br>
There is nothing more I can do for you right now.<br>
(You have already completed this quest.)
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Aden Vanguard Member:<br>
High priest Orven, sent you to help, right? Great. The Captain ordered me to direct you to the underground crypt when you arrived. The soldiers are already there, battling monsters. Please hurry, they're going to need all the help they can get.<br>
Powerfull monsters are encamped there right now. So let me teleport you there. Otherwise, it would be too dangerous.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest IncubatorOfEvil enter_instance">"Enter"</button>
<html><body>Aden Vanguard Member:<br>
Grand Master Oltran sent you to help, right? Great. The Captain ordered me to direct you to the underground crypt when you arrived. The soldiers are already there, battling monsters. Please hurry, they're going to need all the help they can get.<br>
Powerful monsters are encamped there right now. So let me teleport you there. Otherwise, it would be too dangerous.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest EvilIncubator enterInstance">"I won't keep him waiting."</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Quartermaster:<br>
Finally I've been waiting for Aden to send me backup for ages. Captain Adolph and his soldiers all went to the underground Evil Incubator to see about the monsters that have been flooding out of it, and I need help.<br>
Can you help?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 33407-02.html">"That's what I'm here for."</button>
<html><body>Quartermaster:<br>
Finally! I've been waiting for Aden to send me backup for ages. Captain Adolph and his soldiers all went to the underground Evil Incubator to see about the monsters that have been flooding out of it, and I need help.<br>
Can you help?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 33407-02.html">"That's what I'm here for."</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Quartermaster:<br>
So many monsters have broken through our lines, Captain Adolph and his men have pushed them back through a valiant fight, but casualties were unavoidable.<br>
We must pay the dead the respect of bringing their personal possessions back to their families, but we have no numbers to spare. Please, could you bring back 4 keepsakes from the bodies of Aden Vanguard Members in the Cemetary?<br>
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners or the square guarded by the Grave Guards. It's between the Seal or Shilen and the Cemetary.
<html><body>Quartermaster:<br>
So many monsters have broken through our lines. Captain Adolph and his men have pushed them back through a valiant fight, but casualties were unavoidable.<br>
We must pay the dead the respect of bringing their personal possessions back to their families, but we have no numbers to spare. Please, could you bring back 4 keepsakes from the bodies of Aden Vanguard Members in the Cemetary?<br1>
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Quartermaster:<br>
Many Aden Vanguard Members have died at the Cemetary. Please bring back 4 keepsakes from their bodies.<br>
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your be bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
<html><body>Quartermaster:<br>
Many Aden Vanguard Members have died at the Cemetary. Please bring back 4 keepsakes from their bodies.<br1>
It's horrible, but we haven't been able to retrieve the bodies. They're scattered all over the Cemetary, but your best bet would be to check the corners of the square guarded by the Grave Guards. It's between the Seal of Shilen and the Cemetary.
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Quartermaster:<br>
Yes, these are our fallen comrades' dog tags. Thank you. I'm sure the families will appreciate your hard work. Our heroes deserve to be remembered.<br>
Now, I don't think there's much else for you to do here. I'm worried about captain Adolph and the soldiers that went ahead to the monsters' base. I'm sure they could use some help there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 33407-05.html">"I'll find the captain."</button>
<html><body>Quartermaster:<br>
Yes, these are our fallen comrades' dog tags. Thank you. I'm sure the families will appreciate your hard work. Our heroes deserve to be remembered.<br>
Now, I don't think there's much else for you to do here. I'm worried about captain Adolph and the soldiers that went ahead to the monsters' base. I'm sure they could use some help there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate 33407-05.html">"I'll find the captain."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Quartermaster:<br>
Captain Adolph's team is in the underground crypt near the Cemetery, fighting monsters that resurrected through Shilen. Go and help him if you can. Powerful creatures are blocking the entrance to the crypt, so you'd better teleport through the Aden Vanguard Member standing behind me.<br>
Good luck, warrior of Aden.
<html><body>Quartermaster:<br>
Captain Adolph's team is in the underground crypt near the Cemetery, fighting monsters that resurrected through Shilen. Go and help him if you can. Powerful creatures are blocking the entrance to the crypt, so you'd better teleport through the Aden Vanguard Member standing behind me.<br>
Good luck, warrior of Aden.
</body></html>

View File

@@ -1,350 +1,111 @@
/*
* 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.Q10342_DayOfDestinyElvenFate;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.cache.HtmCache;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.events.EventType;
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerLevelChanged;
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.serverpackets.ExQuestNpcLogList;
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
/**
* Day of Destiny: Elven Fate (10342)
* @author Mobius
*/
public class Q10342_DayOfDestinyElvenFate extends Quest
{
// NPCs
private static final int WINONIN = 30856;
private static final int QUARTERMASTER = 33407;
private static final int DEAD_SOLDIER_1 = 33166;
private static final int DEAD_SOLDIER_2 = 33167;
private static final int DEAD_SOLDIER_3 = 33168;
private static final int DEAD_SOLDIER_4 = 33169;
private static final int VANGUARD_MEMBER = 33165;
// Items
private static final int DEAD_SOLDIER_TAGS = 17749;
// Rewards
private static final int STEEL_DOOR_GUILD_COIN = 37045;
private static final int M_SOULSHOT_S = 22576;
private static final int M_SPIRITSHOT_S = 22607;
// Requirement
private static final int MIN_LEVEL = 76;
public Q10342_DayOfDestinyElvenFate()
{
super(10342, Q10342_DayOfDestinyElvenFate.class.getSimpleName(), "Day of Destiny: Elven Fate");
addStartNpc(WINONIN);
addTalkId(WINONIN, QUARTERMASTER, DEAD_SOLDIER_1, DEAD_SOLDIER_2, DEAD_SOLDIER_3, DEAD_SOLDIER_4, VANGUARD_MEMBER);
registerQuestItems(DEAD_SOLDIER_TAGS);
addCondMinLevel(MIN_LEVEL, "no_level.html");
addCondRace(Race.ELF, "no_race.html");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30856-02.htm":
case "30856-03.htm":
case "30856-04.htm":
case "30856-06.html":
case "30856-07.html":
{
htmltext = event;
break;
}
case "30856-05.html":
{
qs.startQuest();
qs.setCond(2); // arrow hack
qs.setCond(1);
htmltext = event;
break;
}
case "33407-02.html":
{
if (qs.isCond(1))
{
qs.setCond(2, true);
htmltext = event;
}
break;
}
case "dead_collect.html":
{
if (qs.isCond(2))
{
if (qs.get("" + npc.getId()) == null)
{
qs.set("" + npc.getId(), 1);
giveItems(player, DEAD_SOLDIER_TAGS, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
final int count = qs.getMemoState() + 1;
if (count >= 4)
{
qs.setCond(3, true);
qs.unset("" + DEAD_SOLDIER_1);
qs.unset("" + DEAD_SOLDIER_2);
qs.unset("" + DEAD_SOLDIER_3);
qs.unset("" + DEAD_SOLDIER_4);
htmltext = "dead_complete.html";
}
else
{
qs.setMemoState(count);
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
log.addItem(DEAD_SOLDIER_TAGS, count);
player.sendPacket(log);
htmltext = event;
}
}
break;
}
case "33407-05.html":
{
if (qs.isCond(3))
{
takeItems(player, DEAD_SOLDIER_TAGS, -1);
qs.setCond(4, true);
htmltext = event;
}
break;
}
case "transfer_info":
{
if (qs.isCond(13))
{
switch (player.getClassId().getId())
{
// TODO: Return detail htmls.
}
}
break;
}
case "30856-08.html":
{
if (qs.isCond(13))
{
switch (player.getClassId().getId())
{
case 20:
{
// Temple Knight -> Eva's Templar
player.setBaseClassId(99);
player.setClassId(99);
break;
}
case 21:
{
// Sword Singer -> Sword Muse
player.setBaseClassId(100);
player.setClassId(100);
break;
}
case 23:
{
// Plains Walker -> Wind Rider
player.setBaseClassId(101);
player.setClassId(101);
break;
}
case 24:
{
// Silver Ranger -> Moonlight Sentinel
player.setBaseClassId(102);
player.setClassId(102);
break;
}
case 27:
{
// Spellsinger -> Mystic Muse
player.setBaseClassId(103);
player.setClassId(103);
break;
}
case 28:
{
// Elemental Summoner -> Elemental Master
player.setBaseClassId(104);
player.setClassId(104);
break;
}
case 30:
{
// Elven Elder -> Eva's Saint
player.setBaseClassId(105);
player.setClassId(105);
break;
}
}
rewardItems(player, STEEL_DOOR_GUILD_COIN, 87);
rewardItems(player, M_SOULSHOT_S, 1);
rewardItems(player, M_SPIRITSHOT_S, 1);
addExpAndSp(player, 2050000, 0);
player.broadcastUserInfo();
qs.exitQuest(false, true);
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.STARTED:
{
switch (npc.getId())
{
case WINONIN:
{
if (qs.isCond(1))
{
htmltext = "30856-05.html";
}
else if (qs.isCond(13))
{
htmltext = "30856-06.html";
}
break;
}
case QUARTERMASTER:
{
switch (qs.getCond())
{
case 1:
{
htmltext = "33407-01.html";
break;
}
case 2:
{
htmltext = "33407-03.html";
break;
}
case 3:
{
htmltext = "33407-04.html";
break;
}
case 4:
{
htmltext = "33407-05.html";
break;
}
}
break;
}
case DEAD_SOLDIER_1:
case DEAD_SOLDIER_2:
case DEAD_SOLDIER_3:
case DEAD_SOLDIER_4:
{
if (qs.isCond(2))
{
if (qs.get("" + npc.getId()) != null)
{
htmltext = "dead_collect.html";
}
else
{
htmltext = "dead_soldier.html";
}
}
else if (qs.isCond(3))
{
htmltext = "dead_complete.html";
}
break;
}
case VANGUARD_MEMBER:
{
if ((qs.getCond() > 3) && (qs.getCond() < 13))
{
htmltext = "33165-01.html";
}
break;
}
}
break;
}
case State.CREATED:
{
if ((npc.getId() == WINONIN) && !player.isSubClassActive() && !player.isDualClassActive() && (player.getClassId().level() == 2))
{
htmltext = "30856-01.htm";
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
@RegisterType(ListenerRegisterType.GLOBAL)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
if ((player.getLevel() >= MIN_LEVEL) && (player.getRace() == Race.ELF))
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
final NpcHtmlMessage html = new NpcHtmlMessage();
html.setHtml(HtmCache.getInstance().getHtm(player.getHtmlPrefix(), "scripts/quests/Q10342_DayOfDestinyElvenFate/announce.html"));
player.sendPacket(html);
}
}
}
/*
* 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.Q10342_DayOfDestinyElvenFate;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.ThirdClassTransferQuest;
/**
* Day of Destiny: Elven Fate (10342)
* @author St3eT
*/
public final class Q10342_DayOfDestinyElvenFate extends ThirdClassTransferQuest
{
// NPC
private static final int WINONIN = 30856;
// Misc
private static final int MIN_LEVEL = 76;
private static final Race START_RACE = Race.ELF;
public Q10342_DayOfDestinyElvenFate()
{
super(10342, MIN_LEVEL, START_RACE);
addStartNpc(WINONIN);
addTalkId(WINONIN);
addCondMinLevel(MIN_LEVEL, "30856-11.html");
addCondRace(START_RACE, "30856-11.html");
addCondInCategory(CategoryType.THIRD_CLASS_GROUP, "30856-12.html");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "30856-02.htm":
case "30856-03.htm":
case "30856-04.htm":
case "30856-08.html":
{
htmltext = event;
break;
}
case "30856-05.htm":
{
st.startQuest();
st.set("STARTED_CLASS", player.getClassId().getId());
htmltext = event;
break;
}
default:
{
htmltext = super.onAdvEvent(event, npc, player);
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (npc.getId() == WINONIN)
{
if (st.getState() == State.CREATED)
{
htmltext = "30856-01.htm";
}
else if (st.getState() == State.STARTED)
{
if (st.isCond(1))
{
htmltext = "30856-06.html";
}
else if (st.isCond(13))
{
htmltext = "30856-07.html";
}
}
}
return (!htmltext.equals(getNoQuestMsg(player)) ? htmltext : super.onTalk(npc, player, isSimulated));
}
}

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Elemental Master ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E306_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
Elemental Masters' servitor buffs have no rival. They can boost the servitors' magic stats or general stats to maximize battle prowess, and also undo the opponents' buffs, making them a fearsome sight in PvP.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Eva's Saint ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E307_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
As an extension of the Elder class, Eva's Saints are healers who cast defensive buffs and refill teammates' MP, increasing efficiency of group hunts.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Eva's Templar ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E301_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
Eva's Templars have become stronger tanks with increased resistance to abnormal states and higher defenses. Though their attack damage is low, their formidable defenses and speed can make them fearsome PvP opponents, depending on player skill.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Moonlight Sentinel ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E304_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
Moonlight Sentinels' deadly speed and attack damage make them second to none in PvP. Their strengths are amplified in open fields where they can slow down opponent speed, but their low defense requires them to keep a distance from their enemies at all times.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Mystic Muse ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E305_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
Powerful damage dealers, Mystic Muses now have an enlarged arsenal of spells at their disposal. Their use of water and holy magic is amplified by swift casting speed, which gives them a crucial edge in PvP.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Sword Muse ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E302_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
As secondary buffers in a group, Sword Muses' enchant skills are now more useful than ever, going on to prove beneficial in PvP as well. Their damage-dealing is average, requiring strategic hit-and-run.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -0,0 +1,29 @@
<html><body scroll="no">
<!-- Decoration Table -->
<table border="0" cellpadding="0" cellspacing="0" width="288" height="355" background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td>
<table border="0" cellpadding="2" cellspacing="0">
<tr><td height="12"><!-- Empty Space --></td></tr>
<tr><td height="20" align="center"><font style="subtitle">[ Wind Rider ]</font></td></tr>
<!-- Image -->
<tr><td align="center" height="166">
<table border="0" cellpadding="6" cellspacing="1">
<tr><td width="268" height="156" align="center"><img src="L2ClassGuide.Elf.E303_001" width="256" height="150"></td></tr></table>
</td></tr>
<!-- Description -->
<tr><td height="8"><!-- Empty Space --></td></tr>
<tr><td align="center">
<table border="0" width="270" cellpadding="3" cellspacing="0"><tr><td>
<font style="subtitle">Characteristics</font><br1>
Following in the footsteps of Plainswalkers, Wind Riders are a step up in terms of survivability when outnumbered. They have a number of lethal tricks up their sleeve, and considering their speed, opponents will do well to watch their backs in PvP.<br1>
</td></tr></table>
<!-- Previous and Next buttons -->
<center><table border=0 cellpadding=1 cellspacing=0>
<tr><td>
<button width=100 height=28 action="bypass -h Quest Q10342_DayOfDestinyElvenFate" value="Back" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td></tr>
</table></center>
</td></tr></table>
</td></tr>
</table><!-- Decoration Table End -->
</body></html>

View File

@@ -1,3 +0,0 @@
<html><body>I don't talk to youngsters. Come back when you've grown up a bit more.<br>
(This quest can only be taken by a character of level 76 or above.)
</body></html>

View File

@@ -1 +0,0 @@
<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>

View File

@@ -1,6 +1,6 @@
<html><body>Grand Magister Winonin:<br>
So the Goddess of Death has opened her malicious eyes, at last. Shilen's vile creatures are rampaging all over Aden Castle. I heard a vanguard force from Aden Castle set out to eradicate those monsters and found an underground lair near the <font color="LEVEL">Seal of Shilen</font>. But the problem is that we haven't heard anything from them since then. So we're arranging to send a search party after them, and I hope you who of renown could help us with this mission. If you do, I'll help you gain greater powers.<br>
I shall be waiting for you in the <font color="LEVEL">Dark Elf Guild</font> in the <font color="LEVEL">Town of Aden</font>. Do not be led astray from your fated duty.<br>
(When your level is <font color="LEVEL">76</font> or higher, you can complete the <font color="LEVEL">third class transfer</font>)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate close_window">Close Window.</Button>
<html><body>Grand Magister Winonin:<br>
So the Goddess of Death has opened her malicious eyes, at last. Shilen's vile creatures are rampaging all over Aden Castle. I heard a vanguard force from Aden Castle set out to eradicate those monsters and found an underground lair near the <font color="LEVEL">Seal of Shilen</font>. But the problem is that we haven't heard anything from them since then. So we're arranging to send a search party after them, and I hope you who of renown could help us with this mission. If you do, I'll help you gain greater powers.<br>
I shall be waiting for you in the <font color="LEVEL">Mystic Guild</font> in the <font color="LEVEL">Town of Aden</font>. Do not be led astray from your fated duty.<br>
(When your level is <font color="LEVEL">76</font> or higher, you can complete the <font color="LEVEL">third class transfer</font>)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close Window.</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Aden Vanguard Corpse:<br>
(It looks like this is one of the fallen soldiers the Vanguard quartermaster was talking about.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate dead_collect.html">Collect his belongings</button>
<html><body>Aden Vanguard Corpse:<br>
(It looks like this is one of the fallen soldiers the Vanguard Quartermaster was talking about.)<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10342_DayOfDestinyElvenFate collectTag">Collect his belongings</Button>
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Aden Vanguard Corpse:<br>
(You collected the dog tag from this soldier.)
<html><body>Aden Vanguard Corpse:<br>
(You collected the dog tag from this soldier.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Aden Vanguard Corpse 1:<br>
Already collected.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Aden Vanguard Corpse:<br>
(You collected a dog tag from the corpse. You now have all you need and can return to the Aden Supplier.)
<html><body>Aden Vanguard Corpse:<br>
(You collected a dog tag from the corpse. You now have all you need and can return to the Aden Supplier.)
</body></html>